Multiple Choice Questions-Brief Overview python

Description

Quiz on Multiple Choice Questions-Brief Overview python, created by Aparna Dhirde on 03/13/2020.
Aparna Dhirde
Quiz by Aparna Dhirde, updated more than 1 year ago
Aparna Dhirde
Created by Aparna Dhirde over 4 years ago
26
0

Resource summary

Question 1

Question
User Define name called ……….
Answer
  • Identifier
  • constant
  • syntax
  • expression

Question 2

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

Question 3

Question
Correcting the program code:
Answer
  • Testing
  • Syntax error
  • Runtime error
  • Debugging

Question 4

Question
Designing the problem
Answer
  • Testing
  • Debugging
  • logical error
  • Algorithm

Question 5

Question
Algorithm when translated into a programming language is called......
Answer
  • Flowchart
  • Identifier
  • Code
  • debugging

Question 6

Question
Which is mapping data type
Answer
  • list
  • tuple
  • string
  • dictionary

Question 7

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

Question 8

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

Question 9

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

Question 10

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

Question 11

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

Question 12

Question
The __________ data type allows only True/False values
Answer
  • boo
  • boolean
  • Boolean
  • None

Question 13

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

Question 14

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

Question 15

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

Question 16

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

Question 17

Question
for loop in python are work on
Answer
  • range
  • iteration
  • Both of the above
  • None of the above

Question 18

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

Question 19

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

Question 20

Question
To continue the infinite loop , which keyword we use ?
Answer
  • continue
  • break
  • exit
  • none of the above
Show full summary Hide full summary

Similar

Geography Quiz
PatrickNoonan
Breaking Bad
PatrickNoonan
BIOLOGY B1 2
x_clairey_x
USA and Vietnam (1964-1975) - Part 1
Lewis Appleton-Jones
B2, C2, P2
George Moores
Computing Hardware - CPU and Memory
ollietablet123
GCSE AQA Biology 1 Adaptations, Competition & Environmental Change
Lilac Potato
AQA GCSE Physics Unit 3 Mindmap
Gabi Germain
Animal Farm CONTEXT
Lydia Richards2113
Acids and Bases quiz
Derek Cumberbatch
1PR101 2.test - Část 12.
Nikola Truong