Posts

Showing posts with the label python question and answer

Python Quiz-4

PYTHON QUIZ ONLINE Basic python quiz which includes questions on python operators, datatypes like list , loops , conditional statements.The answers for the question is shown below. 1. Which of the following operation can be used in a string ? + - / % See Answer Option A 2. ____ operator is used to find whether a character is present in a string ? not as in or See Answer Option C 3. Find the length of the string , "apple" . 4 5 1 0 See Answer Option B

Python Quiz-3

Python Quiz-3 PYTHON QUIZ ONLINE This python quiz contains a list of questions with hidden answers. This quiz is on the topics string,built-in functions, Python basics, operators, conditional statement and loop. 1. Which of the following is not true about ‘if' ? It is a conditional statement 'If’ should always accompany with ‘else' At the end of 'if' condition there is a colon Both A and C See Answer Option B 2. Pick the conditional operators from the given options ? + > * / See Answer Option B 3. A ____ variable can be used to let one part of y

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