CIT 101 Practical 04 Final
CIT 101 Practical 04 Final
CIT 101 Practical 04 Final
Built-in Module
In any language you will have a set of short pre-written codes for the programmers
to use whenever they need. They are readily available and they are built into the
core of the Compiler/Interpreter.
Page 1 of 4
Bachelor of Applied Information Technology
Module Code CIT101
Module Title: Fundamentals of Programming
'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning',
'PermissionError', 'ProcessLookupError', 'RecursionError', 'ReferenceError', 'ResourceWarning',
'abs', 'all', 'any', 'ascii', 'bin', 'bool', 'breakpoint', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod',
'compile', 'complex', 'copyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'exec', 'exit',
'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int',
'isinstance', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next',
'object', 'oct', 'open', 'ord', 'pow', 'print', 'property', 'quit', 'range', 'repr', 'reversed', 'round', 'set', 'setattr',
'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars', 'zip']
Therefore READ & UNDERSTAND Lesson 6 & Associated Videos as much as you could.
Practical 4 Submission
You have to submit all your workings to LMS clearly in a .pdf file by putting the file name as
follows. (Delete all error messages)
Page 2 of 4
Bachelor of Applied Information Technology
Module Code CIT101
Module Title: Fundamentals of Programming
Practical 4:
1. Using built-in functions (without import) in Python perform the following in the interactive mode.
Note: Use meaningful variable names, beautiful input prompts, and output descriptions.
Example:
Input a real (+ or – integer/floating point) number and display its absolute value.
d) Input your mail address and display the user name and the domain separately.
f) Input five integers and display the maximum and the minimum numbers separately.
g) Input two integers and find the quotient and the remainder.
h) Input an uppercase letter and display its ASCII code. (E.g. 'A' 65)
2. Example:
Input a real number and display the difference between its ceiling value and floor value.
Page 3 of 4
Bachelor of Applied Information Technology
Module Code CIT101
Module Title: Fundamentals of Programming
a) Input three integers and display their GCD (Greatest Common Divisor).
b) Input three integers and display their LCM (Least Common Denominator).
d) Input the length of the hypotenuse of an isosceles right-angled triangle and display the
length of a side rounded to two decimal places.
e) A pipe repairman uses adhesive tape to repair cracks in some cylindrical pipes of
different diameters. Write a program to calculate the length of the tape needed as he
enters the diameter and the number of turns to cover each pipe
End of Practical 4
Page 4 of 4