Python Basics Quiz 12 by RK

Python Basics Quiz 12 by RK

11th Grade

25 Qs

quiz-placeholder

Similar activities

Python

Python

11th Grade

20 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

Python Basics

Python Basics

8th - 12th Grade

23 Qs

Bài kiểm tra giữa kì 2

Bài kiểm tra giữa kì 2

9th - 12th Grade

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Quiz1_7A

Quiz1_7A

2nd Grade - Professional Development

20 Qs

Python - lists,loops,basics

Python - lists,loops,basics

9th - 11th Grade

20 Qs

Python outputs

Python outputs

7th - 11th Grade

20 Qs

Python Basics Quiz 12 by RK

Python Basics Quiz 12 by RK

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Reshma Kamthe

Used 14+ times

FREE Resource

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"

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?