Search Header Logo

Python Day 4

Authored by Ninitha C

Computers

University

Python Day 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To test whether one number is greater than or equal to another, you would use the ​------- conditional operator.

>=
<=
>
<

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Python assignment statement?

x = 3
x := 3
x == 3
x <- 3

3.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Media Image

Find output of this code- (Type with proper casing)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The result of this program: Friday = False if Friday: print "Jeans day!" else: print "Uniform day"

Jeans day
Today is Friday
Uniform day
Not Friday

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output?

Level 3 Level 1
Level 3
Level 3 Level 1 Nil
Level 3 Level 2 Level 1 Nil

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The ‘else’ statement is optional in Python

True
False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following comparison operator “!=” represent in Python programming?

Equal to
Assignment
Allocation
Not equal to.

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?

Discover more resources for Computers