Search Header Logo

Python Basics Quiz 12 by RK

Authored by Reshma Kamthe

Computers

11th Grade

Used 16+ times

Python Basics Quiz 12 by RK
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Why did Guido van Rossum call his programming language Python?

He thinks Pythons were cool

He couldn't think of anything else

A friend suggested it

He loves Monty Python

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of the following?


a = True

b = False

c = False


if a or (b and c):

print("GEEKSFORGEEKS")

else:

print("geeksforgeeks")

geeksforgeeks

GEEKSFORGEEKS

error

no output

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What does INT means in python?

Decimal Numbers
Whole Number
Text
Floating Point Number

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will the following code do? 
name = "Bob"
if name == "Bob": 
     print ("Hello " + name) 
else:  
     print ("I dont know you")

prints bob
prints Hello Bob
nothing syntax error
prints I don't know you

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is used to define a block of code (body of loop, fuction etc.) in Python?

Curly braces

Parenthesis

Indentation

Quotation

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How to insert comments in Python ?

# this is a comment

// this is a comment

/* this is a comment */

7.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

How to create a numeric variable age with a value of 10

age = 10

age = int(10)

age = "10"

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?