 
			 
			MCQOPTIONS
 Saved Bookmarks
				This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
| 1. | What is the output of the following code : print 5//2 | 
| A. | 2 | 
| B. | 2.5 | 
| C. | 2.0 | 
| D. | Error | 
| E. | |
| Answer» B. 2.5 | |
| 2. | Which of these are keyword? | 
| A. | in | 
| B. | is | 
| C. | assert | 
| D. | All of the above | 
| Answer» E. | |
| 3. | Which of the following is a valid variable? | 
| A. | var@ | 
| B. | 32var | 
| C. | class | 
| D. | abc_a_c | 
| Answer» E. | |
| 4. | Which of the following statment is False? | 
| A. | Variable names can be arbitrarily long. | 
| B. | They can contain both letters and numbers. | 
| C. | Variable name can begin with underscore. | 
| D. | Variable name can begin with number. | 
| Answer» E. | |
| 5. | All keyword in python are in | 
| A. | Lowercase | 
| B. | Uppercase | 
| C. | Both uppercase & Lowercase | 
| D. | None of the above | 
| Answer» D. None of the above | |
| 6. | What is the maximum length of an identifier in python? | 
| A. | 32 | 
| B. | 31 | 
| C. | 63 | 
| D. | None of the above | 
| Answer» E. | |
| 7. | How many keywords are there in python 3.7? | 
| A. | 32 | 
| B. | 33 | 
| C. | 31 | 
| D. | 30 | 
| Answer» C. 31 | |
| 8. | Which of the following will give error? | 
| A. | a=b=c=1 | 
| B. | a,b,c=1 | 
| C. | a,b,c=1, python, 1.5 | 
| D. | None of the above | 
| Answer» C. a,b,c=1, python, 1.5 | |
| 9. | Which of the following is incorrect regarding variables in Python? | 
| A. | Variable names in Python cannot start with number. However, it can contain number in any other position of variable name. | 
| B. | Variable names can start with an underscore. | 
| C. | Data type of variable names should not be declared | 
| D. | None of the above | 
| Answer» E. | |
| 10. | Which of the following is not valid variable name in Python? | 
| A. | _var | 
| B. | var_name | 
| C. | var11 | 
| D. | 11var | 
| Answer» E. | |
| 11. | Which one of the following is correct way of declaring and initialising a variable, x with value 5? | 
| A. | int x | 
| B. | =5 | 
| C. | int x=5 | 
| D. | x=5 | 
| E. | declare x=5 | 
| Answer» D. x=5 | |