
for_students

Quiz
•
Information Technology (IT)
•
11th Grade
•
Medium
nuris nurus
Used 4+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def palindrome(s):
return s == s[::-1]
print(palindrome("level"))
print(palindrome("world"))
True, True
True, False
False, True
False, False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def find_max(lst):
if not lst:
return None
max_value = lst[0]
for num in lst:
if num > max_value:
max_value = num
return max_value
print(find_max([3, 1, 4, 2, 5]))
print(find_max([]))
5, None
3, Error
4, 0
None, None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def countdown(n):
if n <= 0:
return []
return [n] + countdown(n - 1)
print(countdown(3))
[3, 2, 1]
[3, 2, 1, 0]
[0, 1, 2, 3]
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def reverse_list(lst):
return lst[::-1]
print(reverse_list([1, 2, 3, 4, 5]))
[1, 2, 3, 4, 5]
error
[5, 4, 3, 2, 1]
[5, 3, 1]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def square_numbers(lst):
return [x**2 for x in lst if x % 2 != 0]
print(square_odd_numbers([1, 2, 3, 4, 5]))
[1, 4, 9, 16, 25]
Error
[2, 4]
[1, 9, 25]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def factorial(n):
if n < 0:
return "Undefined"
if n == 0 or n == 1:
return 1
return n * factorial(n - 1)
print(factorial(5))
print(factorial(-1))
120, Error
120, Undefined
1, Undefined
0, Undefined
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def square(n):
return n * n
def process_list(lst):
return [square(x) for x in lst]
print(process_list([1, 2, 3, 4]))
[1, 2, 3, 4]
[1, 4, 9, 16]
[1, 8, 9, 16]
Error
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
KUIS TIK

Quiz
•
9th Grade - University
20 questions
ข้อสอบ Canva

Quiz
•
9th - 12th Grade
19 questions
кэгэ информатика

Quiz
•
11th Grade
17 questions
Kiểm Tra Môn Tin Học 10

Quiz
•
10th Grade - University
23 questions
Grade 11 - IT - Quiz 1 - Mrs. Dina Mohamed

Quiz
•
11th Grade
20 questions
Grade 11(Quiz 1)

Quiz
•
11th Grade
20 questions
ASESMEN DIAGNOSTIK INFORMATIKA KELAS 9

Quiz
•
9th Grade - University
25 questions
Comp Sci Primitive Types

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University