Ch3

Ch3

University

6 Qs

quiz-placeholder

Similar activities

[Python for all] Quiz 3 - Strings

[Python for all] Quiz 3 - Strings

University

10 Qs

Workshop 2 Review

Workshop 2 Review

University

10 Qs

Intro to Programming Quiz

Intro to Programming Quiz

University

10 Qs

Lec8

Lec8

University

10 Qs

CLASS 9 AI -  VIVA 2024-25

CLASS 9 AI - VIVA 2024-25

9th Grade - University

10 Qs

04 - Python - Lists

04 - Python - Lists

University - Professional Development

10 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Flask

Flask

University

11 Qs

Ch3

Ch3

Assessment

Quiz

Computers

University

Hard

Created by

Norita Ahmad

Used 2+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In a Python program, a control structure:

Dictates what happens before the program starts and after it terminates.

Directs the order of execution of the statements in the program.

Manages the input and output of control characters.

Defines program-specific data structures.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which one of the following if statements will not execute successfully:

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What signifies the end of a statement block or suite in Python?

A comment

A line that is indented less than the previous line

end

colon

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the code snippet:

1

2

4

4

1

2

3

4

It doesn't generate any output

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This if/elif/else statement will raise a KeyError exception

True

False

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the value of this expression:

'axb'

'axyb'

'ax'

'ab'