Professional Documents
Culture Documents
Semester: I Batch:2022F
Max. Marks 10
Instructions:
Question 1
(a) Differentiate between a compiler and an interpreter. (1)
(b) Differentiate between AND operator and OR operator with example. (1)
Question 2
(a) What are the rules required to be followed while naming a variable in Python. (1)
(b) Differentiate between Integer and Float datatypes with example. (1)
Question 3
What are the different paradigms of programming languages? List some advantages and disadvantages (2)
of Procedural Programming Languages and Object-Oriented Programming Language
Question 4
(a) What are the parameters of print() function explain with example (1)
(b) (1+3) ^ 2 −2(4−7) + (4*2) ^ 2 *(16/4) solve it according to the operator precedence. (1)
Question 5
Write a python program which take two numbers as an input from the user and perform multiplication, (2)
division, addition, subtraction and also print their square and floor division.