Day 4 Python Quiz Flow controls

Day 4 Python Quiz Flow controls

University

10 Qs

quiz-placeholder

Similar activities

Pop Quiz #2 Topic 2

Pop Quiz #2 Topic 2

University

10 Qs

Cuestionario UD8 Apdo 4

Cuestionario UD8 Apdo 4

University

10 Qs

TEST ORESOL POM2

TEST ORESOL POM2

University

10 Qs

cpp-while-loop

cpp-while-loop

University

10 Qs

TOEFL Structure (Problems with Passive Verbs)

TOEFL Structure (Problems with Passive Verbs)

9th Grade - Professional Development

10 Qs

Simulador 1 atención y concentración

Simulador 1 atención y concentración

University

10 Qs

Quiz 1- DEC20012

Quiz 1- DEC20012

University

10 Qs

Management Game

Management Game

University

10 Qs

Day 4 Python Quiz Flow controls

Day 4 Python Quiz Flow controls

Assessment

Quiz

Education

University

Medium

Created by

Oshi Maga

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1. Which of the following is not used as loop in Python?
A. for loop
B. while loop
C. do-while loop
D. None of the above

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

2. Which one of the following is a valid Python if statement :
A. if a>=2
B. if (a >= 2)
C. if (a => 22)
D. if a >= 22

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

3. Which of following is not a decision-making statement.
A. if statement
B. if-elif statement
C. for statement
D. if -else statement

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

4. Point out the correct statement?
A. Break will execute a loop while a condition is true
B. The if/else statement conditionally evaluates two statements
C. Blocks are evaluated until a new line is entered after the closing brace
D. Single statements are evaluated when a new line is typed at the start of the syntactically complete statement

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

5. The order of statement execution in the form. of top to bottom, is known _____ as construct.
A. flow
B. selection
C. repetition
D. sequence

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

6. What does ~~~~~~5 evaluate to ??
A. +5
B. -5
C. +11
D. -11

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

7. Which is the correct operator for power(xy)?
A. X^y
B. X**y
C. X^^y
D. None of the mentioned

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?