Semester : S1 and S2
Year : 2019
Term : DECEMBER
Branch : MECHANICAL ENGINEERING
Scheme : 2015 Full Time
Course Code : BE 101-05
Page:1
D A192010 Pages: 2
Reg No.: Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FIRST SEMESTER B.TECH DEGREE EXAMINATION(S), DECEMBER 2019
Course Code: BE101-05
Course Name: INTRODUCTION TO COMPUTING AND PROBLEM SOLVING
Max. Marks: 100 Duration: 3 Hours
PART A
Answer all questions, each carries2 or 3 marks. Marks
1 What is cache memory? (3)
2 What is a bus? What are the functions of system and expansion buses? (3)
3 What is an algorithm? Give the basic properties of an algorithm. (3)
4 Draw a flowchart to find the factorial of a number. (3)
5 Write the output for the following program segment:
for i in range(2,8,1):
if i==5:
continue (2)
print (i, end)
print “Done”
What will be the output if continue statement is replaced with a break statement?
6 Give the output for the following expression evaluation in Python:
(i) -4**2 رنیم 2 (111) 45%0 (3)
7 Write a Python code using function to find the quadrant of a given point (x, y) (3)
8 Write a Python function to find the sum of all even numbers in a set of n (3)
numbers, entered by the user.
9 What will be the output of the given code?
>>>values = ‘“‘Apple, orange, grapes”
(2)
>>>list = values.split(“,”)
>>>print(“list:”, list)
10 Write a Python program to reverse the first half and second half of an even
lengthed string separately. (Eg: if the string is ‘“gooddays output should be (3)
“doogsyad’’)
11 Write a Python program to remove the characters at odd index positions in a (3)
string.
12 What is pickling? How is it implemented in Python? (3)
13 Let rl and 12 be the objects of the class rank. Give the output of the following
code:
(3)
>>> rl=rank()
Page 1 of 2