| | | | MCQ Tutorial - Python->Core Data Types | | | | 1.) Which of these in not a core datatype? | | Options are: | | A.) Lists
| | B.) Dictionary
| | C.) Class
| | D.) Tuples
| | Correct Option: C | | | | | | | 2.) Given a function that does not return any value, What value is thrown by default when executed in shell. | | Options are: | | A.) int
| | B.) bool
| | C.) void
| | D.) None
| | Correct Option: D | | | | | | | 3.) Following set of commands are executed in shell, what will be the output?
>>>str="hello" >>>str[:2] >>>str | | Options are: | | A.) llo
| | B.) he
| | C.) hello
| | D.) hel
| | Correct Option: C | | | | | | | 4.) Which of the following will run without error? | | Options are: | | A.) round(463.123,2,1)
| | B.) round()
| | C.) round(6352.898,2)
| | D.) round 654.342,2
| | Correct Option: C | | | | | | | 5.) What is the return type of function id? | | Options are: | | A.) float
| | B.) bool
| | C.) dict
| | D.) int
| | Correct Option: D | | | | | | | | | | | |