Practical Exercise 02 Python

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

UNIVERSITY OF FUJAIRAH

COLLEGE OF INFORMATION TECHNOLOGY

PRACTICAL EXERCISE 02

BNS 1323 I NTRODUCTION TO PROGRAMMING

Section 01

DUE DATE : May 04, 2023


11:59 PM

DR. YOUSEF QAWQZEH


CLO No. of Weighted
CLO Description Type of Examinations Points Score
# Items mark(s)
Evaluate control structures and their
3 performance in a computer program. Programming Exercise 1 2 2
2
Release critical thinking of students in
solving
4 Programming Exercise 1 3 3
problems using customized computer
program. 3
 The maximum mark is 5. TOTAL 5

Instructions:
 This assignment contains 2 pages including the cover page.
 Upload your answer to the online portal.

Student’s ID:
Signature:
Student’s Name:

READ THE INSTRUCTIONS AND PROVIDE YOUR RESPONSES

BNS 1323 INTRODUCTION T O PROGRAMMING


1
CLO3:
1. W RITE A PROGRAM TO EXTRACT EACH DIGIT FROM AN INTEGER IN THE REVERSE ORDER . FOR EXAMPLE,
IF THE GIVEN INTEGER IS 7536, THE OUTPUT SHALL BE “6 3 5 7”, WITH WHITE SPACE SEPARATING THE
DIGITS (2 MARKS)

CLO4:
2. WRITE A PROGRAM (FUNCTION!) THAT TAKES A LIST AND RETURNS A NEW LIST THAT CONTAINS ALL THE
ELEMENTS OF THE FIRST LIST MINUS ALL THE DUPLICATES . (3 M ARKS )

Good Luck!

BNS 1323 INTRODUCTION T O PROGRAMMING


2

You might also like