MCQ quiz on Python multiple choice questions and answers on Python MCQ questions quiz on Python objectives questions with answer test pdf.

Python MCQ Questions and Answers Quiz

1. Python was released publicly in

  1. 1941
  2. 1971
  3. 1981
  4. 1991

2. Who created python ?

  1. Guido Van Rossum
  2. James Gosling
  3. Denis Ritchie
  4. Tom Cruise

3. Python is said to be easily

  1. readable language
  2. writable language
  3. bug-able language
  4. script-able language

4. Which of the following function convert a string to a float in python?

  1. int(x [,base])
  2. long(x [,base] )
  3. foat(x)
  4. str(x)

5. Is there a do while loop in python ?

  1. Yes
  2. No

6. Which of the following function convert a string to a frozen set in python?

  1. set(x)
  2. dict(d)
  3. frozenset(s)
  4. chr(x)

7. Which of the following keyword is a valid placeholder for body of the function ?

  1. break
  2. continue
  3. body
  4. pass

8. Which of the following operator in python evaluates to true if it does not finds a variable in the specified sequence and false otherwise?

  1. **
  2. //
  3. is
  4. not in

9. In python 3 what does // operator do ?

  1. Float division
  2. Integer division
  3. returns remainder
  4. same as a**b

10. In Python, which of the following function checks in a string that all characters are digits?

  1. shuffle(lst)
  2. capitalize()
  3. isalnum()
  4. isdigit()
Tags

MCQ Multiple Choice Questions and Answers on Python

Python Question and Answer