Python Basic Quiz


Python Quiz



PYTHON QUIZ ONLINE




1. Python is a ------- language
  1. Scripting
  2. High level
  3. Commanding
  4. Sequential
2. What is the output for − 'python ' [-3]?
  1. 't'
  2. 'n'
  3. 'h'
  4. 'o'
3. A string is immutable in Python. True or false ?
  1. True
  2. False
4. Which among the following is not a datatype in python ?
  1. list
  2. array
  3. dictionary
  4. Set
5. Which of the following prints the output to the console?
  1. echo
  2. print
  3. console
  4. write
6. Which of the following is not correctly matched?
  1. integer - int
  2. decimal - float
  3. string - str
  4. character - char
7. Python is an object oriented programming language . True or false ?
  1. False
  2. True
8. A variable name can be used as a keyword . True or false ?
  1. False
  2. True
9. In python how many whitespaces are used for indentation?
  1. 1
  2. 2
  3. 3
  4. 4
10. Which of the following is used to write a a single line comment?
  1. *This is a comment*
  2. // This is a comment//
  3. #This is a comment
  4. /*This is a comment*/

Comments

Popular posts from this blog

Finding the percentage in python - HackerRank solution

HackerRank challenges with solutions (Rearrangement, Formula, Word sorting, Numbers, Sentence)

What's your name, Tuple - HackerRank solution in python