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