Pructor Python Quiz 1 by anupmaurya June 12, 2021 written by anupmaurya 0 comment 112 views Welcome to your Pructor Python Quiz 1 1. What is the first step in write a program? a) Run Code b) Write Code c) Edit Code d) Check the Code 1 out of 14 2. Logical solution is a ____and clear _____procedure to solve the problem, known as _____. Add description here! a) problem description , step-by-step , flowchart b) expression , assignment statement , identifier c) finite , step-by-step , Algorithm d) finite , assignment statement , algorithm 2 out of 14 3. Python is a/an___________ language (unlike C, C++, Java). a) Logical programming b) Interpreted programming c) Compiled programming d) Complex programming 3 out of 14 4. What is the extension of a python file? a) .cpp b) .py c) .java d) .c 4 out of 14 5. In Python variables can be thought of as ______. a) labels b) containers c) boxes d) tumblers 5 out of 14 6. Which function is used to get a string in Title Cases (First letter of each word in capital) ? a) pint() b) title() c) strip() d) lstrip() 6 out of 14 7. A Python Program is a sequence of ___ and ___. a) data and information b) classes and objects c) strings and arrays d) definitions and commands 7 out of 14 8. Which function is used to get rid of the blank spaces on the left? a) strip() b) left() c) rstrip() d) lstrip() 8 out of 14 9. What will be the output of : type(3.5) ? a) class int b) class float c) class double d) class char 9 out of 14 10. What will be the output of : int(2.5) ? a) 2 b) 3 c) 4 d) 1 10 out of 14 11. Any input that you take in Python is of ___ data type. a) int b) float c) str d) double 11 out of 14 12. What is the output of the following : 4//5 ? a) 1 b) 0.8 c) 0 d) 8 12 out of 14 13. What will be the value stored in y? : x, y, z = 1, 2, 3 a) 1 b) 2 c) 3 d) 0 13 out of 14 14. Which of the following is a valid identifier or variable? well&1 well 1 well_1 @well 14 out of 14 Time is Up! Time's up Share 0 FacebookTwitterLinkedinRedditWhatsappTelegramEmail anupmaurya Hey there, My name is Anup Maurya. I was born with love with programming and works at TCS. One of best global (IT) services and consulting company as System Administrator . I also love graphics designing. It's my pleasure to have you here. previous post Pructor Python Quiz 7 next post Pructor Python Quiz 7 Leave a Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment. * By using this form you agree with the storage and handling of your data by this website.