101 suraq.  (by Dias Bolat)

101 suraq. (by Dias Bolat)

University

101 Qs

quiz-placeholder

Similar activities

MicroBio

MicroBio

University

100 Qs

商業基本概念測驗

商業基本概念測驗

10th Grade - University

96 Qs

Part 3 Gened Self Review

Part 3 Gened Self Review

University

100 Qs

Компьютерлік сауаттылық тесті

Компьютерлік сауаттылық тесті

University

100 Qs

FRIDAY WEEKLY EXAM (13/06/2025)

FRIDAY WEEKLY EXAM (13/06/2025)

University

100 Qs

Midterm in CED108 (BSEDE-B)

Midterm in CED108 (BSEDE-B)

University

100 Qs

VSEPR and Lewis Structures

VSEPR and Lewis Structures

University

96 Qs

D27 MASTER THE DAY

D27 MASTER THE DAY

University

102 Qs

101 suraq.  (by Dias Bolat)

101 suraq. (by Dias Bolat)

Assessment

Quiz

Education

University

Practice Problem

Medium

Created by

Диас Болат

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

101 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

. What is the output of the following code?

text = "Python"

for letter in text:

print(letter, end=",")

a) P,y,t,h,o,n

b) P y t h o n

c) Python

d) P,y,t,h,o,n

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `input()` function do in Python?

Prints output to the console

b) Reads input from the user

Imports modules

Performs mathematical operations

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? ```python

x = 10

while x > 0:

print(x) x -= 2

a) 10 8 6 4 2

b) 10 9 8 7 6 5 4 3 2 1

) 10 8 6 4 2 0

d) 10 8 6 4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct Python syntax for an if statement?

if x = 5:

`if x == 5`

`if x equals 5:`

`if x == 5 then:`

`if x == 5:

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, the break statement can only be used within loops.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `range(3, 10, 2)` function in Python represent?

A range from 3 to 10 with a step of 2

A range from 3 to 9 with a step of 2

) A range from 3 to 10 with a step of 1

A range from 3 to 11 with a step of 2

A range from 2 to 10 with a step of 3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to define a variable in Python?

variable_name = value

value = variable_name

var = value

value = var

) All of the above

Create a free account and access millions of resources

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?