
Tce Code War
Quiz
•
Engineering
•
University
•
Practice Problem
•
Hard
Neela G
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the code ?
def f(x, y=[]):
y.append(x)
return y
print(f(1))
print(f(2))
[1] [2]
[1] [1, 2]
[1, 2] [2]
Error
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the code?
x = [1, 2, 3]
y = x[:]
y[0] = 99
print(x[0], y[0])
1 99
99 1
99 99
Error
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of code ?
def func(a, b=2, c=3):
print(a, b, c)
func(5, c=10)
5 2 10
5 2 3
5 2 5
error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the code below?
a = [1, 2, 3]
print(a * 2)
[1, 2, 3, 1, 2, 3]
[2, 4, 6]
[1, 2, 3, 2]
Error
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Choose the output for the code below
print([i for i in range(3)])
print((i for i in range(3)))
[0, 1, 2] [0, 1, 2]
0 1 2
[0, 1, 2] <generator object>
[1 2]
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code?
x = [1, 2, 3]
print(x is x[:])
True
False
Error
1 2 3
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Choose the output for the code
a = ([])
for i in range(3):
a.append(i)
print(a)
[1 2 3]
[0 1]
[0, 1, 2]
0 1 2
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
Already have an account?
Similar Resources on Wayground
16 questions
Altos hornos
Quiz
•
10th Grade - University
20 questions
QUIZ 1 SESI II 2024/2025 ECD 2603 ASSET & PROPERTY MANAGEMENT
Quiz
•
University
15 questions
Quiz Pemahaman Peramalan (Forecasting)
Quiz
•
University
10 questions
Quiz on IPR
Quiz
•
University
20 questions
Pembangkit Tenaga Listrik
Quiz
•
University
20 questions
Quiz on Sensors and Transducers
Quiz
•
University
10 questions
Oblique shock and Expansion wave CO3
Quiz
•
University
10 questions
Metodología de la Programación P1P2
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Engineering
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
