Python operators and conditional statements

Python operators and conditional statements

Professional Development

10 Qs

quiz-placeholder

Similar activities

Fundamentals I. Final de módulo

Fundamentals I. Final de módulo

Professional Development

15 Qs

Clase_5

Clase_5

Professional Development

14 Qs

Driver Installations

Driver Installations

Professional Development

10 Qs

Batch 1

Batch 1

Professional Development

10 Qs

04 - Python - Lists

04 - Python - Lists

University - Professional Development

10 Qs

OWA Part 1

OWA Part 1

Professional Development

8 Qs

Python Training Day-3 Quiz-3

Python Training Day-3 Quiz-3

Professional Development

10 Qs

DevNet Express

DevNet Express

10th Grade - Professional Development

11 Qs

Python operators and conditional statements

Python operators and conditional statements

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Vimal Kumar

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?