
lastpy
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
HASAN YIGIT
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of the code ?
name = "John"
age = 30
greeting = name + age
TypeError
KeyError
IndentationError
ValueError
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of the code ?
my_list = [1, 2, 3, 4, 5]
index = my_list.index(10)
IndexError
TypeError
ValueError
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of the code ?
def square(x):
return x * x
result = square()
ValueError
IndexError
TypeError
KeyError
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of the code ?
user_info = { "name": "Jane", "address": { "street": "123 Main St." } } print(user_info["address"]["city"])
ValueError
IndexError
TypeError
KeyError
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of the code ?
fruits = ["apple", "banana", "kiwi"]
for i in range(len(fruits) + 1):
print(fruits[i])
IndexError
KeyError
TypeError
ValueError
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank
data = {"name": "John", "age": 30, "job": "Software Engineer"}
for key, value in data----:
print(f"{key}: {value}")
.keys()
.items()
.values()
.pairs()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the print statement?
def my_function(n):
result = [i * 2 for i in range(n + 1)]
return result
print(type(my_function(5)))
<class 'range'>
<class 'str'>
<class 'list'>
<class 'int'>
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
System and network support and management
Quiz
•
11th Grade - Professi...
10 questions
CEH Pre Assessment
Quiz
•
Professional Development
10 questions
NHANH TAY, NHANH MẮT
Quiz
•
Professional Development
10 questions
Microsoft 365 for Teachers
Quiz
•
Professional Development
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
15 questions
SEC+ Ch.8 Review Test
Quiz
•
Professional Development
13 questions
Excel evaluación
Quiz
•
Professional Development
20 questions
ICT ວິຊາຊີບຄູ ເຄມີປີ 3
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
