
Coding Golf Event 2
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Sunny Saxena
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of inserting an element at the beginning of an array in Python?
O(1)
O(log n)
O(n)
O(n log n)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Java, what happens when you try to access an index beyond the array size?
Compilation error
Returns null
Throws ArrayIndexOutOfBoundsException
Undefined behavior
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure can be used to solve the maximum sliding window problem efficiently?
Stack
Queue
Set
Linked List
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct output of this Python code: a = [1, 2, 3] print(a[-1])
1
2
3
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++, which of the following declares a static array of size 10?
int arr[10];
int arr = new int[10];
vector
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following array problems is best solved using prefix sum?
Finding duplicates
Reversing the array
Range sum queries
Sorting
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which built-in function in Python returns the length of a list?
count()
len()
size()
length()
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
QUIZ PRODI DAY
Quiz
•
University
15 questions
MAGAZINE
Quiz
•
2nd Grade - University
10 questions
EcoS5 QuizzA
Quiz
•
University
17 questions
Upper Limb 🦾
Quiz
•
University
15 questions
Personal finance 1
Quiz
•
University
19 questions
Midterm Exam sa SosLit
Quiz
•
University
10 questions
POST-TEST OLAH GERAK, TANDA SELAR, DAN GENERAL ARRANGEMENT
Quiz
•
University
10 questions
Refresh
Quiz
•
University
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 Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
