Search Placementyogi.com
 

Python Objective Questions and Answers

  :: Topics ::

1

Python is a __________ language.

A.

Scripting

B.

Object Oriented

C.

Object Oriented Scripting

D.

Procedural

See Answer & Explanation Lets Discuss
Correct answer is : C
Explanation

Python is a general purpose programming language that  blends procedural, functional and object oriented paradigms. 

Source: Learning Python by Mark Lutz

 
2

What would len(2 ** 1000000) print in python?

A.

Stack Overflow

B.

print the value

C.

count the digits in the result

See Answer & Explanation Lets Discuss
Correct answer is : C
Explanation

Python automatically provides extra precision for large integers hence no overflow occurs.

 
3

What are the keys to scroll and get the previous command executed in python interactive shell on Windows and Linux?

A.

Alt + P

B.

Alt + L

C.

Ctrl + P

D.

Crtl + L

See Answer & Explanation Lets Discuss
Correct answer is : A
Explanation

Alt + P fetches the previous command

 
4

What is the key to scroll forward in the command history on Windows and Linux?

A.

Alt + F

B.

Ctrl + F

C.

Ctrl + N

D.

Alt + N

See Answer & Explanation Lets Discuss
Correct answer is : D
Explanation

Alt + N lets you move to the next command while going through the command history in the python interactive shell.

 
5

What are Frozen Binary Executables?

A.

Compiled python code i.e. bytecodes

B.

Immutable python files

C.

Compiled python code + python interpreter

D.

None of the Above

See Answer & Explanation Lets Discuss
Correct answer is : C
Explanation

Frozen Binary Executables are packages that combine bytecodes and a PVM (interpreter) and do not require a python installation to run on the target system.

py2exe and py2app are common Frozen Binary Executables generators.

 
 

Banner to LogicGuns.com

Hide Page Information

Python Objective Questions and Answers

Here you can find python objective questions and answers with explanation from some leading books references which will help you in learning python

Why are python Multiple Choice Questions important?

Multiple Choice Questions checks your concepts in a short time and also helps you to remember key points.

Where can I find Python Objective Questions?

Placementyogi.com provides a lot of objective questions on python for practice and to understand the python programming language.