PYTHON QUIZ
1 .
Which of the following keyword is a valid placeholder for body of the function ?

Correct Answer : Option (D)

pass
  Show Answer
2 .
Which of the following is correct?

Correct Answer : Option (A)

Variable name can start with an underscore. 
  Show Answer
3 .
Which of the following statements is NOT true about Python?

Correct Answer : Option (B)

Python’s syntax is much like PHP
  Show Answer
4 .
What is the return value of trunc() ?

Correct Answer : Option (A)

int 
  Show Answer
5 .
What is the need of :
if __name__ == "__main__":
 somemethod()

Correct Answer : Option (C)

Run python module as main program 
  Show Answer
6 .
Which operator is used to compare two numbers for equality?

Correct Answer : Option (B)

==
  Show Answer
7 .
In python which is the correct method to load a module ?

Correct Answer : Option (B)

import math
  Show Answer
8 .
Which function is used to open the file for reading in python ?

Correct Answer : Option (D)

open(filename, mode)
  Show Answer
9 .
Which of the following function checks in a string that all characters are numeric?

Correct Answer : Option (A)

isnumeric()
  Show Answer
10 .
In python 3 what does // operator do ?

Correct Answer : Option (B)

Integer division
  Show Answer