




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Name of the Chapter - Python Revision Tour Question No Question Content Learning Objective (if Provided)
C. It is free and open source language D. None of the above
17 Question:Which of the following is not the feature of python language? (A) Python is proprietary software. (B) Python is not case-sensitive. (C) Python uses brackets for blocks and nested blocks. (D) All of the above Understanding, 18 Question:By default, the Python scripts are saved with ___________ ___ extension. (A) .pyp (B) .pys (C) .py (D) None of the above Understanding, 19 Question:Which of the following is String literal? (A) “ABC” (B) “123” (C) Both of the above (D) None of the above Understanding 20 Question:print(“I” + “am” + “in” + “school”) display (A) I am in school (B) I Am In School (C) Iaminschool (D) iaminschool Application 21 Question:print(“I” , “am” , “in” , “school”) display (A) I am in school (B) I Am In School (C) Iaminschool (D) iaminschool Application 22 Question:Which of the following is parameter of print( ) function? (A) sep (B) end (C) Both of the above Evaluation
(B) \t (C) \n (D) \b (^29) Question:Which of the following functions print the output to the console? (A) Output( ) (B)Print( ) (C)Echo( ) (D)print( ) Knowledge, (^30) Question:The default separator character of print( ) is ………. (A) tab (B)space (C)newline (D)dot Understanding 31 Which of the following is correct about python? a. Python is an open source language. b. Python is not based on ABC language. c. Python is not a case sensitive d. All of the above Knowledge
(^32) Which two languages contributed to Python as a Programming Language?
**1. C++ and ABC language
(^38) What is the output after executing the following code: Print(“Hello World!”) a. >>>Hello World! b. Hello World c. Hello World! d. Error Evaluation 39 **What is the result after executing the following:
print(20/4 5+8-10) a. 1 b. 23 c. 23. d. 24* Evaluation (^40) What will be the output of the following code? print(“150+300”) (i) 450 (ii) 150300 (iii) 150+ (iv) 300 Evaluation
(^41) What do we use to define a block of code in Python language?
**1. Key
(^48) All keywords in python except TRUE and FALSE are in ________? (A) Lower case (B) Upper case (C) Capitalized (D) None of the above Knowledge 49 Which of the following can not be a variable name? (A) init (B) in (C) it (D) on Knowledge 50 Which of the following operators is the correct option for power(a,b)? (A) a^b *(B) a b (C) a ^^b (D) a^b Knowledge, Understand
(^51) Who developed the Python language? (A) Zim Den (B) Guido van Rossum (C) Niene Stom (D) Wick van Rossum Knowledge 52 In which year was the python language developed? (A) 1995 (B) 1972 (C) 1989 (D) 1981 Knowledge 53 Which one of the following is the correct extension of the python file? (A) .py (B) .p (C) .python (D) .pyt Knowledge
(^57) **Which one of these is the floor division operator? (A) / (B) // (C) % (D) *** Knowledge (^58) Which of the following has the highest precedence in python? (A) Exponential (B) Additin (C) Parenthesis (D) Division Knowledge 59 **What will be the output of the following statement?
a+bc (A) a (B) b (C) ab (D) abc** Analysis
(^60) What is math.factorial(4.0)? (A) 20 (B) 24 (C) 16 (D) 64 Evaluation 61 Which of the following belongs to integer datatype A) - B) 4. C) 3+4J D) -2. Knowledge 62 Which of the following belongs to float datatype A) - B) -14. C) 3+4J D) 4 Knowledge
_______is a sequence of items separated by commas and the items are enclosed in paranthesis () A) LIST B) DICTIONARY C) STRING D) TUPLE Application 67 _______holds data items in key-value pairs. A) LIST B) DICTIONARY C) STRING D) TUPLE Application 68 _______is a sequence of items separated by commas and the items are enclosed in paranthesis () A) LIST B) DICTIONARY C) STRING D) TUPLE Application
_________ is an unordered collection of items separated by commas and the items are enclosed in curly brackets { } A) LIST B) SETS C) STRING D) TUPLE Application 70 None is a special data type with a single value. It is used to signify the absence of value in a situation A) TRUE B) FALSE C) NONE D) NULL knowlegde 71 Datatype conversion can happen : A) ONLY EXPLICITY B) ONLY IMPLICITY C) BOTH EXPLICITLY AND IMPLICITLY D) NONE OF THE ABOVE Understanding