Python Basic Quiz-2
Python Quiz-2 PYTHON QUIZ ONLINE 1. Which of the following datatype is immutable ? String List Tuple Both A and C See Answer Option D 2. Which among the following is true regarding variable names in python ? A variable can start with a number A variable can have spaces in between Case doesn’t matter i.e. num and Num are same A variable can contain underscores See Answer Option D 3. Which one is not true about for loops ? The word “for” must be in lower case The first line must end with a semi colon Statements to be repeated must be indented It may have nested loops See Answer Option B 4. The range function can have almost ____ parameters . 3 2 1 4 See Answer Option A