Access over 20 million homework & study documents

Python revision tour

Content type
User Generated
Rating
Showing Page:
1/582

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/582

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/582

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 582 pages?
Access Now
Unformatted Attachment Preview
PYTHON REVISION TOUR - 1 MCQ BY - ANAND SIR , CODEITUP AND TEAM CODEITUP 1 1. Which of the following is a valid identifier: i. 9type ii. _type iii. Same-type iv. True MCQ BY - ANAND SIR , CODEITUP AND TEAM CODEITUP 2 2. Which of these in not a core data type? a) Lists b) Dictionary c) Tuples d) Class MCQ BY - ANAND SIR , CODEITUP AND TEAM CODEITUP 3 3. Given a function that does not return any value, What value is thrown by default when executed in shell. a) int b) bool c) void d) None MCQ BY - ANAND SIR , CODEITUP AND TEAM CODEITUP 4 4. Following set of commands are executed in shell, what will be the output? >>>str="hello" >>>str[:2] >>> a) he b) lo c) olleh d) hello MCQ BY - ANAND SIR , CODEITUP AND TEAM CODEITUP 5 5. Which of the following will run without errors? a) round(45.8) b) round(6352.898,2,5) c) round() d) round(7463.123,2,1) MCQ BY - ANAND SIR , CODEITUP AND TEAM CODEITUP 6 6. What is the return type of function id ? a) int b) float c) bool d) dict MCQ BY - ANAND SIR , CODEITUP AND TEAM CODEITUP 7 7. In python we do not specify types,it is directly interpreted by the compiler, so consider the following operation to be performed. >>>x = 13 ? 2 objective is to make sure x has a integer value, select all that apply (python 3.xx) a) x = 13 // 2 b) x = int(13 / 2) c) x = 13 % 2 d) All of the mentioned MCQ BY - ANAND SIR , CODEITUP AND TEAM CODEITUP 8 8. What error occurs when you execute? apple = mango a) SyntaxError b) NameError c) Va ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Nice! Really impressed with the quality.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Documents