Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Year/Sem : I / I
Subject : Python programming
1. Who developed Python Programming Language? a) Wick van Rossum b) Rasmus Lerdorf c) Guido van Rossum d) Niene Stom Answer: c 2. Which type of Programming does Python support? a) object-oriented programming b) structured programming c) functional programming d) all of the mentioned Answer: d 3. Is Python case sensitive when dealing with identifiers? a) no b) yes c) machine dependent d) none of the mentioned Answer: b 4. Which of the following is the correct extension of the Python file? a) .python b) .pl c) .py d) .p Answer: c 5. Is Python code compiled or interpreted? a) Python code is both compiled and interpreted b) Python code is neither compiled nor interpreted c) Python code is only compiled d) Python code is only interpreted Answer: a 6. All keywords in Python are in _________ a) Capitalized b) lower case c) UPPER CASE d) None of the mentioned Answer: d 7. What will be the value of the following Python expression? 4+3%5 a) 7 b) 2 c) 4 d) 1 Answer: a 8. Which of the following is used to define a block of code in Python language? a) Indentation b) Key c) Brackets d) All of the mentioned Answer: a 9. Which keyword is used for function in Python language? a) Function b) def c) Fun d) Define Answer: b 10. Which of the following character is used to give single-line comments in Python? a) // b) # c) ! d) /* Answer: b