- Get link
 - X
 - Other Apps
 
Posts
- Get link
 - X
 - Other Apps
 
 DAY 2  select the correct option     what part of an if statement should be indented?  All of it  The first line  The statement within it  indentation is not require   which statement ends the current iteration and continues with the next one?  break  for  continue  while   what is the result of this code??       >>>nums=list(range(5))   >>print(nums(4))  4  1,2,3,4,5  5  0,1,2,3,4   What is the output of the following code?  >>>while 4 == 4:                print('4')  4 is printed once  4 is printed four times  4 is printed infinitely until program closes  Syntax error   What is the output of the following code? >>>if None:         print(“Hello”)   Nothing will be printed  Hello  hello  Syntax Eror   In Python, for and while loop can have optional else statement?  Only for loop can have optional else statement  Only while loop can have optional else statement  Both loops can have optional else statement  Loops cannot have else statement in Pyt...
Python Quiz:day 1
- Get link
 - X
 - Other Apps
 
     Python Quiz: Day 1  Nihareeka IT Club day 1 quiz........  Python training............       Which of the following statements is true?   Python is a high level programming language.  Python is an interpreted language.  Python is an object-oriented language.  All of the above.  What is used to define a block of code (body of loop, function etc.) in Python?   Curly braces  Parenthesis  Indentation  Quotation  Which of the following is correct?   Comments are for programmers for better understanding of the program.  Python Interpreter ignores comment.  You can write multi-line comments in Python using triple quotes, either ''' or """.  All of the above  Which of the following is correct?   Variable name can start with an underscore.  Variable name can start with a digit.  Keywords cannot be used as a variable name.  Variable name can have symbols like: @, #, $ etc. Next  In the following code, n is a/an _______?  >>> n='5'   integer  string...