Python Basics Quiz 12 by RK

Quiz
•
Computers
•
11th Grade
•
Hard
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
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
name = "Bob"
if name == "Bob":
print ("Hello " + name)
else:
print ("I dont 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
Similar Resources on Wayground
25 questions
CSP Python Review

Quiz
•
9th - 12th Grade
20 questions
Basic Python Review 228

Quiz
•
9th - 12th Grade
30 questions
Python Beginner

Quiz
•
6th - 12th Grade
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
20 questions
Python Recap

Quiz
•
7th Grade - University
22 questions
Python тілінде циклдар

Quiz
•
9th - 12th Grade
22 questions
CodeHS AP CSP Unit 3 Review

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade