Search Header Logo

python q1

Authored by rancho labs

Computers

12th Grade

Used 3+ times

python q1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

28 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

What is the result of the following expression?
x = 5
y = 2
z = x % y
print(z)

2.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following is a data type in Python? Select multiple answers.

int

words

string

decimals

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a core data type in Python programming?

a) Tuples

b) Lists

c) Class

d) Dictionary

4.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

Find output of this code-

age=15

if age < 18:

print("Cannot vote")

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Mention the other name for Iterative statements.

Loops

Algorithm

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

i = 1

while True:

if i%7 == 0:

break

print(i)

i += 1

123456

1234567

error

none

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Name the two types of loops.

For,While

While,if

For,if

if,if else

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?