Multiple Choice Questions-Brief Overview python

Descripción

Test sobre Multiple Choice Questions-Brief Overview python, creado por Aparna Dhirde el 13/03/2020.
Aparna Dhirde
Test por Aparna Dhirde, actualizado hace más de 1 año
Aparna Dhirde
Creado por Aparna Dhirde hace casi 6 años
33
0

Resumen del Recurso

Pregunta 1

Pregunta
User Define name called ……….
Respuesta
  • Identifier
  • constant
  • syntax
  • expression

Pregunta 2

Pregunta
If we overcome the rules of the programming language, we get.........
Respuesta
  • Runtime error
  • Syntax error
  • Logical error
  • None of the above

Pregunta 3

Pregunta
Correcting the program code:
Respuesta
  • Testing
  • Syntax error
  • Runtime error
  • Debugging

Pregunta 4

Pregunta
Designing the problem
Respuesta
  • Testing
  • Debugging
  • logical error
  • Algorithm

Pregunta 5

Pregunta
Algorithm when translated into a programming language is called......
Respuesta
  • Flowchart
  • Identifier
  • Code
  • debugging

Pregunta 6

Pregunta
Which is mapping data type
Respuesta
  • list
  • tuple
  • string
  • dictionary

Pregunta 7

Pregunta
Leading white space at the beginning of each statement, which is used to determine the group of statement.
Respuesta
  • Testing
  • debugging
  • indentation
  • None of the above

Pregunta 8

Pregunta
It is a combination of Operators, Operands and Constants.
Respuesta
  • Identifier
  • Expression
  • Syntax
  • Task

Pregunta 9

Pregunta
Which operations result in 8?
Respuesta
  • 65 // 8
  • 17 % 9
  • 2 * * 4
  • 64 * * 0.5

Pregunta 10

Pregunta
If the value of a = 20 and b = 20, then a+=b will assign ________ to a
Respuesta
  • 40
  • 30
  • 20
  • 10

Pregunta 11

Pregunta
The ____________ operator is used to find out if division of two number yields any remainder
Respuesta
  • /
  • +
  • %
  • //

Pregunta 12

Pregunta
The __________ data type allows only True/False values
Respuesta
  • boo
  • boolean
  • Boolean
  • None

Pregunta 13

Pregunta
What will be the output of the following Python code snippet? not(10<20) and not (10>30)
Respuesta
  • true
  • false
  • error
  • no output

Pregunta 14

Pregunta
Which of the following is a valid for loop in Python?.
Respuesta
  • for(i=0; i < n; i++)
  • for i in range(0,5):
  • for i in range(0,5)
  • for i in range(5)

Pregunta 15

Pregunta
A while loop in Python is used for what type of iteration?.
Respuesta
  • indefinite
  • discriminant
  • definite
  • indeterminate

Pregunta 16

Pregunta
When does the else statement written after loop executes?.
Respuesta
  • When break statement is executed in the loop
  • When loop condition becomes false
  • Else statement is always executed
  • None of the above

Pregunta 17

Pregunta
for loop in python are work on
Respuesta
  • range
  • iteration
  • Both of the above
  • None of the above

Pregunta 18

Pregunta
To break the infinite loop , which keyword we use ?
Respuesta
  • continue
  • break
  • exit
  • none of the above

Pregunta 19

Pregunta
Which of the following is the loop in python ?
Respuesta
  • for
  • while
  • do while
  • Both a and b

Pregunta 20

Pregunta
To continue the infinite loop , which keyword we use ?
Respuesta
  • continue
  • break
  • exit
  • none of the above
Mostrar resumen completo Ocultar resumen completo