11 Final Test

Quiz
•
Computers
•
11th Grade
•
Medium
Standards-aligned
Rustam Nortadzhiev
Used 4+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a variable?
Variables are those which delete programs
A variable is an entity which stores some values
Values stored in a variable can't be changed
A variable is something used to repeat steps
Answer explanation
Variables are entities which store values.
Values stored in a variable can be changed.
Tags
Variables
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
"def" keyword is used in python to-
def is a variable
define a new conditional variable
use conditional
define a new function
Answer explanation
def is used to define a new function
Syntax for a new function definition is-
def functionName(attribute):
<functionDefinition>
return <returnValue>
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
enemy = hero.findNearestEnemy( )
What is findNearestEnemy( ) ?
It is a null function
It is a function of the object hero called "method"
a variable
function definition
Answer explanation
findNearestEnemy( ) is the function defined to be used by the "hero" object.
Functions defined for the objects are called "methods".
findNearestEnemy( ) is a method.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
enemy = hero.findNearestEnemy( )
in the variable enemy what is being stored?
The name of the nearest enemy if present
The nearest enemy object if present
it is a conditional to check if enemy is present
hero.findNearestEnemy( ) is a method to find the nearest enemy
Answer explanation
hero.findNearestEnemy( ) is the method of the hero object which stores the name of the nearest enemy(a string) if found in the "enemy" variable.
example:
>> enemy = hero.findNearestEnemy( )
>> print(enemy)
>> Jazz #This is the name of the enemy which is a string
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following symbols is used in the beginning of a line to create a single line comment in Python?
&&
@
*
#
Answer explanation
The "#" symbol is used in the beginning of a line to create a single line comment in Python.
Example:-
# hi there, today is a wonderful day
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Choose the correct alternative out of the following
while loops can be used to create infinite loops only
Python if else conditionals cannot be used to compare values
Python is nothing but english
The inputs to the functions or methods are called arguments
Answer explanation
Python functions or method of objects may or may not require inputs.
When the function is called, the input they require is called an "argument".
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code snippet? <please ignore the parenthesis>
name1 = "jazz"
name 2 = "madonna"
if name1 != name2:
print("No")
else:
print("Yes")
No
madonna
Yes
Compilation Error
Answer explanation
The output will be "no" as the strings are not equal.
Create a free account and access millions of resources
Similar Resources on Quizizz
33 questions
2.1.1 CSE Transitioning from Block to Text Coding

Quiz
•
9th - 12th Grade
28 questions
Python Functions Review Quiz

Quiz
•
9th - 12th Grade
30 questions
Python Review 1

Quiz
•
9th Grade - University
25 questions
Introduction to Python

Quiz
•
KG - University
25 questions
GCSE Computer Science: Programming (Python)

Quiz
•
9th - 12th Grade
27 questions
Turtle Python Quiz 1

Quiz
•
10th - 12th Grade
25 questions
CONDITIONAL STATEMENTS

Quiz
•
11th - 12th Grade
32 questions
class 11 PYTHON BASICS quiz -1

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University