Coding Golf Event 2

Coding Golf Event 2

University

15 Qs

quiz-placeholder

Similar activities

Lógica

Lógica

University

10 Qs

Phúc lợi FPT

Phúc lợi FPT

University

10 Qs

GESTION DE CALIDAD

GESTION DE CALIDAD

University

15 Qs

Passé composé

Passé composé

University

17 Qs

Conexionismo de Thorndike

Conexionismo de Thorndike

University

10 Qs

MATHBOT CODES

MATHBOT CODES

University

10 Qs

MINIGAME - BUỔI 2: DƯỢC LÂM SÀNG VÀ THỬ NGHIỆM LÂM SÀNG

MINIGAME - BUỔI 2: DƯỢC LÂM SÀNG VÀ THỬ NGHIỆM LÂM SÀNG

1st Grade - University

10 Qs

Data Structures Prelimes

Data Structures Prelimes

University

16 Qs

Coding Golf Event 2

Coding Golf Event 2

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

Sunny Saxena

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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 arr(10);

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?