Aparna Dhirde
Quiz by , created more than 1 year ago

Quiz on Multiple Choice Questions-Brief Overview python, created by Aparna Dhirde on 03/13/2020.

28
0
0
Aparna Dhirde
Created by Aparna Dhirde over 4 years ago
Close

Multiple Choice Questions-Brief Overview python

Question 1 of 20

1

User Define name called ……….

Select one of the following:

  • Identifier

  • constant

  • syntax

  • expression

Explanation

Question 2 of 20

1

If we overcome the rules of the programming language, we get.........

Select one of the following:

  • Runtime error

  • Syntax error

  • Logical error

  • None of the above

Explanation

Question 3 of 20

1

Correcting the program code:

Select one of the following:

  • Testing

  • Syntax error

  • Runtime error

  • Debugging

Explanation

Question 4 of 20

1

Designing the problem

Select one of the following:

  • Testing

  • Debugging

  • logical error

  • Algorithm

Explanation

Question 5 of 20

1

Algorithm when translated into a programming language is called......

Select one of the following:

  • Flowchart

  • Identifier

  • Code

  • debugging

Explanation

Question 6 of 20

1

Which is mapping data type

Select one of the following:

  • list

  • tuple

  • string

  • dictionary

Explanation

Question 7 of 20

1

Leading white space at the beginning of each statement, which is used to
determine the group of statement.

Select one of the following:

  • Testing

  • debugging

  • indentation

  • None of the above

Explanation

Question 8 of 20

1

It is a combination of Operators, Operands and Constants.

Select one of the following:

  • Identifier

  • Expression

  • Syntax

  • Task

Explanation

Question 9 of 20

1

Which operations result in 8?

Select one of the following:

  • 65 // 8

  • 17 % 9

  • 2 * * 4

  • 64 * * 0.5

Explanation

Question 10 of 20

1

If the value of a = 20 and b = 20, then a+=b will assign ________ to a

Select one of the following:

  • 40

  • 30

  • 20

  • 10

Explanation

Question 11 of 20

1

The ____________ operator is used to find out if division of two number
yields any remainder

Select one of the following:

  • /

  • +

  • %

  • //

Explanation

Question 12 of 20

1

The __________ data type allows only True/False values

Select one of the following:

  • boo

  • boolean

  • Boolean

  • None

Explanation

Question 13 of 20

1

What will be the output of the following Python code snippet?
not(10<20) and not (10>30)

Select one of the following:

  • true

  • false

  • error

  • no output

Explanation

Question 14 of 20

1

Which of the following is a valid for loop in Python?.

Select one of the following:

  • for(i=0; i < n; i++)

  • for i in range(0,5):

  • for i in range(0,5)

  • for i in range(5)

Explanation

Question 15 of 20

1

A while loop in Python is used for what type of iteration?.

Select one of the following:

  • indefinite

  • discriminant

  • definite

  • indeterminate

Explanation

Question 16 of 20

1

When does the else statement written after loop executes?.

Select one of the following:

  • When break statement is executed in the loop

  • When loop condition becomes false

  • Else statement is always executed

  • None of the above

Explanation

Question 17 of 20

1

for loop in python are work on

Select one of the following:

  • range

  • iteration

  • Both of the above

  • None of the above

Explanation

Question 18 of 20

1

To break the infinite loop , which keyword we use ?

Select one of the following:

  • continue

  • break

  • exit

  • none of the above

Explanation

Question 19 of 20

1

Which of the following is the loop in python ?

Select one of the following:

  • for

  • while

  • do while

  • Both a and b

Explanation

Question 20 of 20

1

To continue the infinite loop , which keyword we use ?

Select one of the following:

  • continue

  • break

  • exit

  • none of the above

Explanation