Python MCQ

Python MCQ | Freshers & Experienced

  • Sharad Jaiswal
  • 13th Feb, 2021

We have listed here the best Python MCQ Questions for your basic knowledge of Python MCQ. This Python MCQ Test contains 15 multiple Choice Questions. You have to select the right answer to every question.

Python MCQ Questions

1) Who is created Python

  • A. Tom Cruise
  • B.James Gosling
  • C.Denis Ritchie
  • D.Guido Van Rossum

2) In which language is Python written?

  • A. PHP
  • B.JAVA
  • C.C
  • D.None of the above

3) Python in which year release Publicly?

  • A. 1990
  • B.1991
  • C.1992
  • D.1993

4) Which of the following symbols are used for comments in python?

  • A. /**/
  • B.//
  • C.**
  • D.#

5) Where is function defined?

  • A. class
  • B.Another Function
  • C.Module
  • D.All of the above

6) Which keyword is use for function?

  • A. def
  • B.define
  • C.fun
  • D.function

7) Which of the following precedance?

  • A. ()
  • B.""
  • C.::
  • D.<>

8) Is Python code compiled or interpreted?

  • A. Python code is only compiled
  • B.Python code is only interpreted
  • C.Python code is neither compiled nor interpreted
  • D.Both A & B

9) Function converts a string to all uppercase?

  • A. uppercase()
  • B.upper()
  • C.upper.case()
  • D.None of the above

10) What is the type of inf?

  • A. Integer
  • B.Float
  • C.Boolean
  • D.Complex

11) What will be the output of 7^10?

  • A. 70
  • B.21
  • C.13
  • D.700

12) Select the reserved keywords

  • A. import
  • B.continue
  • C.continue
  • D.All of the above

13) Which one of the following is not a python's predefined data type?

  • A. String
  • B.Class
  • C.return
  • D.All of the above

14) Python allows string slicing?

  • A. slice() Constructor
  • B.Extending Indexing
  • C.Both A and B
  • D.none of the above

15) Mathematical operations can be performed on a string, Where True or False

  • A. True
  • B.False

16) which one of the following has the highest precedence in the expression?

  • A. float
  • B.String
  • C.Parentheses
  • D.List

17) which one of the following has the highest precedence in the expression?

  • A. float
  • B.String
  • C.Parentheses
  • D.List

18) What do we use to define a block of code in Python language?

  • A. Indentation
  • B.List
  • C.Classes
  • D.entities

19) The Format Function, when applied on a string returns;

  • A. int
  • B.str
  • C.bool
  • D.llist

20) 19% 2 in Python

  • A. 1
  • B.2
  • C.9
  • D.38

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Feb
React JS MCQ
01st
Feb
Angular Js MCQ
01st
Feb
Angular 2 MCQ
01st
Feb
JSON MCQ
01st
Feb
PHP MCQ