
lastpy

Quiz
•
Computers
•
Professional Development
•
Hard
HASAN YIGIT
Used 1+ times
FREE Resource
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'>
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Programming - Screening Test

Quiz
•
3rd Grade - Professio...
15 questions
Javascript Datatypes and Variables(Kushal Das)

Quiz
•
Professional Development
10 questions
c program -basic

Quiz
•
Professional Development
12 questions
python loop practice

Quiz
•
Professional Development
10 questions
Demo C programming

Quiz
•
Professional Development
12 questions
flow charts

Quiz
•
Professional Development
10 questions
8255 PPI

Quiz
•
Professional Development
15 questions
Repaso de Python

Quiz
•
5th Grade - Professio...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development