
innofesta2k24
Quiz
•
Computers
•
University
•
Hard
Devamithra Devamithra
Used 4+ times
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Python code?
x = [1, 2, 3, 4]
y = x
y[0] = 10
print(x)
A) [10, 2, 3, 4]
B) [1, 2, 3, 4]
C) [10, 10, 10, 10]
D) [10, 2, 4]
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
def func(x, y=[]):
y.append(x)
return y
print(func(1))
print(func(2, []))
print(func(3))
A) [1], [2], [3]
B) [1], [2], [1, 3]
C) [1], [2]
D) [1], [2], [1, 2, 3]
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the result of this code?
x = {1, 2, 3}
y = {3, 4, 5}
print(x & y)
A) {1, 2, 3, 4, 5}
B) {3}
C) {1, 2, 3}
D) {4, 5}
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the following code snippet?
a = [1, 2, 3]
b = a
b += [4, 5]
print(a)
A) [1, 2, 3, 4, 5]
B) [1, 2, 3]
C) [4, 5]
D) [1, 2, 3] and [4, 5]
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
x = 7
y = 3
print(x % y)
A. 2
B. 3
C. 1
D. 0
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following code print?
def multiply(a, b=2):
return a * b
print(multiply(5))
A. 7
B. 10
C. 25
D. 5
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
def func(x, y=[]):
y.append(x)
return y
print(func(1))
print(func(2, []))
print(func(3))
A. [1], [2], [3]
B. [1], [2], [1, 3]
C. [1], [2], [2, 3]
D. [1], [2, 3], [1, 2, 3]
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
Evaluasi DIKLAT Model IPO
Quiz
•
University
10 questions
Abhyudaya coding class - Grade 7
Quiz
•
6th Grade - University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
10 questions
Information systems concepts
Quiz
•
University
13 questions
Quiz Aplikasi perkantoran mapel Informatika kelas X
Quiz
•
9th Grade - University
10 questions
Bab 2 | Latihan Pengukuhan II
Quiz
•
12th Grade - University
11 questions
Workshop_1
Quiz
•
University
10 questions
Web-II-Loop and Function
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University