Python Mock Test 02 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. The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same. Deselect Answer False True 2. What is the maximum possible length of an identifier? Deselect Answer 69 characters 79 characters 31 characters 63 characters 3. The part of a Machine level instruction, which tells the central processor what has to be done, is Deselect Answer An operation code opcode An address An operand None of the above 4. What will be the output of the following python expression if x=22.197 print("%5.2f”%x) Deselect Answer 22.1900 22.00000 22.20 22.19 5. What will be the output of the following Python code snippet? Deselect Answer False True True True False False True False 6. What will be the output of the following Python function? min(max(False,-3,-4), 2,7) Deselect Answer -3 False 2 -4 7. Leading white space at the beginning of each element, which is used to determine the group of statement Deselect Answer Debugging Testing Indentation None of the above 8. What will be the output of the following Python code? x="abcdef” while I in x: print(I, end=” ”) Deselect Answer a b c d e f abcdef !!!!!!!......... Error 9. Deselect Answer 10. Which of the following is the truncation division operator in Python? Deselect Answer % / | // 11. Deselect Answer 12. The error that can be pointed out by the compiler Deselect Answer None of the above Logical Errors Syntax Errors Semantics Errors 13. Set of statements is executed based upon conditional test. Deselect Answer Selective Looping Sequence None of these 14. What will be the output of the following Python code? l=[1, 0, 2, 0, 'hello', '', []] list(filter(bool, l)) Deselect Answer [1, 0, 2, ‘hello’, ”, []] Error [1, 2, ‘hello’] [1, 0, 2, 0, ‘hello’, ”, []] 15. Which of the following expressions results in an error? Deselect Answer float('10.8') int('10.8') int('10') float('10') 16. The Compexity of linear search algorithm is Deselect Answer O (log n) O (n log n) O (n2) O (n) 17. Which return the % operator? Deselect Answer Multiplication Remainder Divisor Quotient 18. Two main measures for the efficiency of an algorithm are- Deselect Answer processor and memory Data and Space Times and space Complexity and capacity 19. Which keyword used in python language? Python Deselect Answer lambda finally All of Above while 20. A sequence sequence of instruction, in a computer language, to get the desired result is known as ___. Deselect Answer A decision table An Algorithm A program None of the above 21. It refers to the ability of an application to run on different plateforms with or without minimal changes. Deselect Answer Error Reliability Flexibility Portability 22. If we not see the rules of programming language, we get ? Deselect Answer Logical Error Syntax Error None of the above Runtime Error 23. The word comes form the name of a Persian mathematician Abu Ja'far Mohammed ibn-i Musa al khowarizami is a called? Deselect Answer Algorithm Flowchart Flow syntax 24. Which of the following functions is a built-in function in python? Deselect Answer sqrt() seed() factorial() print() 25. What is the extension of Python Program? Deselect Answer .py .run python .execute python .python 1 out of 1 Please fill in the comment box below.