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