PYTHON MOCK TEST-1 1 / 30 What is cyclic reference? Making reference count zero An object refers to itself Maintaining reference count same throughout the program Garbage collector refers to itself 2 / 30 Who developed the Python language? Zim Den Niene Stom Guido van Rossum Wick van Rossum 3 / 30 Which of the following concepts is not a part of Python? Pointers Dynamic Typing Loops All of the above 4 / 30 What is Syntax? Syntax is a set of rules that defines how a Python program will be written and interpreted. Syntax does not define the structure of the Program Syntax is a group of rules only The syntax is nothing but following indentation while writing a program. 5 / 30 IDLE is an abbreviation of? Integrated Deployment Learning Environment Integrated Distributed License Environment Installer Development Learning Education Integrated Development and Learning Environment 6 / 30 It converts the byte code instructions into machine code. Using correct Syntax Using Exception handling in program No need to handle runtime errors Runtime errors can be handled while compilation 7 / 30 What is struct? Struct is a Python Object In C, struct is a custom data type that groups together different data types Struct is data type in Python struct is nothing but structure of an object. 8 / 30 How to check whether Python installed on your system or not? Open CMD -> Type Python -> Hit Enter Open notebook Jupyter -> Type Python Open Powershell -> Hit Enter Open CMD -> Type Python.exe 9 / 30 When to use gc module in Python? To perform Mathematical Operations For scientific calculation on has to import gc module While performing Garbage Collection There is no module called gc in Python 10 / 30 Visual Studio Code is a free and open-source code editor TRUE Partially True FALSE Partially False 11 / 30 Python was founded in which year ? Feb 20th 1991 March 29th, 2006 Feb 20th, 1980 Jan 1st, 2000 12 / 30 How to assign a single value to multiple variables? (Optimised way) x=y=z=100 x-y+z=100 x+z=y=100 x-z-y=100 13 / 30 Which Python library is used for game development? Pycharm Seaborn PyGame Keras 14 / 30 What are the three allocation domains in Python memory management? Raw domain, Memory domain and Object domain Raw domain, Memory domain and Sub domain Raw domain only Memory domain, Object domain and Class domain 15 / 30 What will be the output of the following Python code snippet? [‘h’, ‘e’, ‘l’, ‘l’, ‘o’] 'hello' ['hello'] Hello 16 / 30 What are the three areas of memory management? Program/Application, Hardware and Software level Hardware, Software and OS Level Hardware and Software levels only Hardware, Operating System and Program/Application 17 / 30 Importing Built-in Library save a lot of space and time? TRUE FALSE 18 / 30 Is Python code compiled or interpreted? Python code is both compiled and interpreted Python code is only compiled Python code is neither compiled nor interpreted Python code is only interpreted 19 / 30 Which of the following is used to define a block of code in Python language? Indentation Brackets Key All of the mentioned 20 / 30 What is the role of Python Virtual Machine (PVM)? It converts programs to output. It converts the program to bytecode. It executes the Python Program only. It converts the byte code instructions into machine code. 21 / 30 What are the various ways to run a Python Code? Using only IDE and IDLE Using only CMD Using only text editor, IDE, IDLE using CMD, IDE, IDLE 22 / 30 What is the significance of Reference counting? Counts how many times an object is referenced by other objects counts number of objects created for the class reference counting becomes 99 when objects are dereferenced Reads objects created in class and its subclass 23 / 30 PIP stands for ? Python Inbuilt Package Preferred Installer Program Package Management System Python Installer Package 24 / 30 What is a Compiler? Compiler is a robot Compiler is a converter between two programming languages. Compiler is a special program Compiler is one of the flavors of Python. 25 / 30 Triple qtntes are used for multiline comments. TRUE FALSE 26 / 30 What is the size of each byte code instruction? 1 byte or 8 bits 1020 bytes 64 bits 1 bit 27 / 30 Arena,Pools and Blocks are the components of ? Python J Python Memory allocation Java C Python Memory allocation 28 / 30 Which of the following are Python implementations running on a variety of virtual machines? Only CPython garbage Collector CPython, JPython and IronPython JVM 29 / 30 Most of the syntaxes in Python are derived from which languages? C and Java C and C++ Only Java C and ABC 30 / 30 What are the types of virtual memory? Static memory and Dynamic memory allocation Stack and heap allocation Dynamic memory allocation and heap allocation Static and stack allocation Your score isThe average score is 26% 0% Restart quiz