Semester : S1 and S2
Year : 2018
Term : DECEMBER
Branch : MECHANICAL ENGINEERING
Scheme : 2015 Full Time
Course Code : BE 101-05
Page:1
D R1909
Reg No.: Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FIRST SEMESTER B.TECH DEGREE EXAMINATION, DECEMBER 2018
Course Code: BE101-05 8
Course Name: INTRODUCTION TO COMPUTING AND PROBLEM SOLVING
Max. Marks: 100 Duration: 3 Hours
PART A
Answer all questions. Marks
| Differentiate between digital computers and analog computers. (3)
2 What is high level language? Give four examples. (3)
3 Explain the concept of top down design for solving a problem. (3)
4 Write an algorithm to check whether a number is odd or even. (3)
5 Differentiate between int () and round() functions in python (3)
6 Write a Python program to compute the sum 1+1/2+1/3+...+1/n. Display the (3)
result in float with 2 decimal positions.
7 Write the output of the following program fragment. (2)
def check(x,y):
if y==0
print “error”
return
else:
return(x/y)
a,b=2,4
print check(a,b)
8 Explain type coercion with an example (2)
9 Write an user define function in Python to print a newline. (2)
10 What will be the output of the given code? (2)
>>>str="*”
>>>list=[“hello”,’world”]
>>>print(str.join(list))
1] Let fruits = {‘apple’:5,’orange’:2,’banana’:10}. Write the python expressions (3)
for the following operations:
7 To add the key value pair (‘mango’:8)
Page 1 of 3