Python operators and conditional statements

Python operators and conditional statements

Professional Development

10 Qs

quiz-placeholder

Similar activities

IC101

IC101

Professional Development

10 Qs

Cloud Computing Model Exam-IV PART-B

Cloud Computing Model Exam-IV PART-B

Professional Development

15 Qs

Name that App/Site

Name that App/Site

Professional Development

10 Qs

Computer Programming - Intro

Computer Programming - Intro

Professional Development

12 Qs

SDT1

SDT1

Professional Development

10 Qs

Microsoft 365 for Teachers

Microsoft 365 for Teachers

Professional Development

10 Qs

Introduction to AI - Healthcare & Business

Introduction to AI - Healthcare & Business

University - Professional Development

10 Qs

Java Strings and lops

Java Strings and lops

Professional Development

10 Qs

Python operators and conditional statements

Python operators and conditional statements

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Vimal Kumar

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

  1. Pick out the correct output of the following python command:


print(0 and 100)


100

True

0

False

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one of the following is not a valid operator in python?

==

=!

**

//

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is not a valid operator in python?

<

or

 is

=>

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

  1. What will be the updated value of x if  x = 9:

  x //= 3


6

9

3

None of the above

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

   In python what is the default type of input data taken using input() function?


Integer

Object

Decimal

String

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Is there any limit of statements that can appear under an if block?

Yes, up to 10

No

Yes, up to 5

Can’t say

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What keyword would you use to add an alternative condition to an if statement?

elif

else if

elseif

None of the above

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?