Lec3: Decisions

Lec3: Decisions

University

•

48 Qs

quiz-placeholder

Similar activities

Review Exam Day 2

Review Exam Day 2

University

•

45 Qs

BAC1054 Final Exam MCQ

BAC1054 Final Exam MCQ

University

•

50 Qs

MatSci Prelims

MatSci Prelims

University

•

50 Qs

Tes Wawasan Kebangsaan LPDP 2021

Tes Wawasan Kebangsaan LPDP 2021

University

•

50 Qs

ORTOPRÓTESIS MIEMBRO SUPERIOR

ORTOPRÓTESIS MIEMBRO SUPERIOR

University

•

51 Qs

9º ANO - QUIZIZZ EEBA

9º ANO - QUIZIZZ EEBA

8th Grade - University

•

50 Qs

Ilmu Asas Technical Analysis Saham

Ilmu Asas Technical Analysis Saham

University

•

50 Qs

Quiz Manajemen Proyek - Kelompok 11

Quiz Manajemen Proyek - Kelompok 11

University - Professional Development

•

45 Qs

Lec3: Decisions

Lec3: Decisions

Assessment

Quiz

•

Other

•

University

•

Practice Problem

•

Hard

Created by

Salwa Abougamila

FREE Resource

AI

Enhance your content in a minute

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

48 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

42 is of which data type in Python?

String

Integer

Float

Boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of: print("3" + "4")?

34

7

Error

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a valid variable assignment in Python?

x = 5

5 = x

x == 5

x := 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does input("Enter a number: ") do?

It displays a message and waits for the user to enter a value.

It prints a number to the screen.

It adds two numbers together.

It exits the program.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, # is used to:

Define a function

Indicate a comment

Start a loop

End a program

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The purpose of an if statement is:

to repeat a block of code multiple times

to make decisions based on conditions

to define a function

to store data in variables

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is a string in Python?

42

3.14

'hello'

True

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?