Python Mock Test 01 This mock test is specially designed for you. There are 50 questions in this mock test, for which 45 minutes time has been given, here you will get the same questions which are often asked in the exam, so read the test comfortably. If you have any problem then please tell in comment box. Abhay Excel Computer-Your Own Family To start the mock test, enter your email id and your name and get ready to do better. Gmail Name 1. What does pip stand for python? Deselect Answer Preferred Installer Program All of the mentioned Pip Installs Python Pip Installs Packages None 2. Flowcharts and algorithms are used for Deselect Answer Better programming Efficient coding Easy testing and debugging All of the Above None 3. A flowchart that outlines the main segment of a program. Deselect Answer Union processing rectangle Decision Macro oval start/end Micro input/output Queue None 4. What is the name of the operator ** in Python? Deselect Answer Modulus % None of the these Exponentiation ** Floor division // None 5. In Python, which of the following functions is a built-in function? Deselect Answer val ( ) None of these print ( ) func_k ( ) None 6. Python supports the creation of anonymous functions at runtime, using a construct called Deselect Answer none of the mentioned anonymous pi lambda None 7. Which of the following is true for variable names? Deselect Answer Ampersand can be used in its name Limited length Unlimited length None of the Above None 8. Python is a .………….object-oriented programming language. Deselect Answer Medium level programming language Special purpose General purpose All of the mentioned above None 9. Method which uses a list of well defined instructions to complete a task starting from a given initial state to end state is called as---------- Deselect Answer Both A and C Program Algorithm Flowchart None 10. Which of the following is used to define a block of code in Python language? Deselect Answer Indentation Brackets Key All of the mentioned None 11. Who developed Python Programming Language? Deselect Answer Niene Stom Wick van Rossum Rasmus Lerdorf Guido van Rossum None 12. Which is not a feature of Python language? Deselect Answer Interpreted language High level language Case Insensitive Portable None 13. Which are the application areas of Python programming? Deselect Answer Game Development All of the above Web Development Artificial Intelligence and Machine Learning None 14. ---------------------- scans the entire program and translates it as a whole into machine code. Deselect Answer None of Above Debugger Compiler Interpreter None 15. Which of the following functions can help us to find the version of python that we are currently working on? Deselect Answer sys.version ( ) sys.version ( 1 ) sys.version ( 0 ) sys.version None 16. What will be the value of the following Python expression? 4+3%5 Deselect Answer 1 4 2 7 None 17. Actual instructions in flowcharts are represented in ----- Deselect Answer Boxes Line Circles Arrows None 18. Each module should also be divided into sub modules according software engineering to and programming style. Deselect Answer Top down Method Bottom up Method Coding None of Mentioned None 19. Algorithm when transalated into a programming language is called. Deselect Answer Flowchart code Identifier Debugging None 20. list, tuple dictionary are which types of Data Types. Deselect Answer Sequence Types Binary Types Boolean Types None of the above None 21. What is the output in python language? Round(.4)-Round(-.5) Deselect Answer 0 9 2 1 None 22. Which statement will move file pointer 10 bytes backward from current position? Deselect Answer None of above f.seek(-10,1) f.seek(10,0) f.seek(-10,0) None 23. Which types of logical operators in Python? Deselect Answer All of the above OR NOT AND None 24. What will be the output of the following Python code snippet if x=1? x<<2 Deselect Answer 1 8 2 4 None 25. What is the data type of following object? A = [5,’abc’,3,2,6] Deselect Answer Tuple Dictionary List Array None 26. Python is a case sensitive language when dealing with identifiers. Deselect Answer True Sometimes False Never None 27. What will be the output of the following code snippet? print(2**3+(5+6)**(1+1)) Deselect Answer 8 129 121 None of the above. None 28. The action performed by a -------structure must eventually cause the loop to terminate. Deselect Answer Sequence Process Repetition Case None 29. NumPy stands for Deselect Answer None of these Numerical Python Number in Python Numbering Python None 30. The examination of changing values of variables is called stepping Deselect Answer May be Can’t s say False True None 31. What keyword would you use to add an alternative condition to an if statement? Deselect Answer elif else if None of the above else None 32. What is the output for − 'python ' [-3]? Deselect Answer 'o' 'h' 't' Negative index error. None 33. Which statement will check if a is equal to b? Deselect Answer if a == b: if a === c: if a = b: if a == b None 34. What is the order of precedence in python? Deselect Answer Parentheses, Exponential, Multiplication, Division, Subtraction, Addition Exponential, Parentheses, Division, Multiplication, Addition, Subtraction Exponential, Parentheses, Multiplication, Division, Addition, Subtraction Parentheses, Exponential, Multiplication, Division, Addition, Subtraction None 35. Which of the following is the correct extension of the Python file? Deselect Answer .python .pl .py .p None 36. Which type of Programming does Python support? Deselect Answer all of the mentioned functional programming structured programming object-oriented programming None 37. Is Python code compiled or interpreted? Deselect Answer Python code is only compiled Python code is only interpreted Python code is both compiled and interpreted Python code is neither compiled nor interpreted None 38. What is Numeric Types of Data Types ? Deselect Answer Int- a=5 ,b=1234568 All of the above Complex a+bj Float a=5.0 None 39. Which keyword is used for function in Python language? Deselect Answer Function Define Fun def None 40. Designing the problem? Deselect Answer logical error Testing Algorithm Debugging None 41. What is the output of the following code? 4+2**5//10 Deselect Answer 0 3 7 77 None 42. - -------- is a connector showing the relationship between the representative shapes. Deselect Answer Process Arrow Box Line None 43. Which of the following is the use of function in python? Deselect Answer All of mentions Functions are reusable pieces of programs You cannot also create your own functions Functions do not provide better modularity for your application None 44. Which of the following character is used to give single-line comments in Python? Deselect Answer ! /* # // None 45. If a is a dictionary with some key-value pairs, what does a.popitem() do? Deselect Answer Removes the key-value pair for the key given as an argument Removes an arbitrary element Invalid method for dictionary Removes all the key-value pairs None 46. What will be the output of the following code snippet? example = ["Sunday", "Monday", "Tuesday", "Wednesday"]; print(example[-3:-1]) Deselect Answer ['Monday', 'Tuesday'] ['Wednesday', 'Monday'] ['Sunday', 'Monday'] ['Tuesday', 'Wednesday'] None 47. All keywords in Python are in _________ Deselect Answer None of the mentioned UPPER CASE lower case Capitalized True ,False ,None None 48. Which of the following is true for variable names in Python? Deselect Answer all private members must have leading and trailing underscores underscore and ampersand are the only two special characters allowed unlimited length none of the mentioned None 49. Which mode creates a new line file if the file does not exist? Deselect Answer Write mode Append mode None of the these Both A & B None 50. What is output in python? print(r"\nhi") Deselect Answer error new line and hi hi \nhi None 1 out of 50 Please fill in the comment box below.