Day 4 Python Quiz Flow controls

Day 4 Python Quiz Flow controls

University

10 Qs

quiz-placeholder

Similar activities

Games B

Games B

University

15 Qs

Internet

Internet

University

11 Qs

Pengajian Am Kenegaraan Sem 1

Pengajian Am Kenegaraan Sem 1

University

10 Qs

A2 Etkinlik-6

A2 Etkinlik-6

KG - University

10 Qs

VIII.ASB PENDIDIKAN PANCASILA

VIII.ASB PENDIDIKAN PANCASILA

7th Grade - University

10 Qs

1499EDN Week 3 Cognitive Development

1499EDN Week 3 Cognitive Development

University

11 Qs

"6 Thinking Hats" Method

"6 Thinking Hats" Method

University

10 Qs

COVID 19 AWARENESS QUIZ

COVID 19 AWARENESS QUIZ

University

12 Qs

Day 4 Python Quiz Flow controls

Day 4 Python Quiz Flow controls

Assessment

Quiz

Education

University

Practice Problem

Medium

Created by

Oshi Maga

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?