Coding Contest Quiz

Coding Contest Quiz

•

30 Qs

quiz-placeholder

Similar activities

Grammar 5 Entrance Test

Grammar 5 Entrance Test

KG - University

•

27 Qs

Medieval Medicine Quiz

Medieval Medicine Quiz

9th Grade

•

29 Qs

Final Exam: Part 1 Review

Final Exam: Part 1 Review

9th - 12th Grade

•

25 Qs

NS3: Naval Knowledge: Importance Of Seapower

NS3: Naval Knowledge: Importance Of Seapower

12th Grade

•

25 Qs

Infinitive/ The -ing form

Infinitive/ The -ing form

KG - University

•

25 Qs

Year 7 Assessment - Tudors 2025

Year 7 Assessment - Tudors 2025

KG - University

•

26 Qs

Coding Contest Quiz

Coding Contest Quiz

Assessment

Quiz

•

others

•

•

Practice Problem

•

Hard

Created by

venkat viswa

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the following C code print? printf("%d", sizeof(int));

2
4
8
Compiler Error

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following python code?

num_list = [1, 2, 3, 4, 5]

print(num_list[1:-1])

[2, 3, 4]
[2, 3, 4, 5]
[1, 2, 3, 4]
[1, 2, 3, 4, 5]

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following code? int x = 5; printf("%d", x++);

5
6
4
Error

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which data structure uses LIFO (Last In, First Out) order?

Queue
Stack
Linked List
Tree

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code?
char str[] = "Hello, World!";
printf("%s", str);

Hello, World!

H

Compiler Error

Undefined Behavior

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the malloc() function in C?

To allocate memory dynamically
To deallocate memory
To calculate the size of memory
To declare a pointer variable

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which sorting algorithm has the best average-case time complexity?

Bubble Sort
Selection Sort
Merge Sort
Insertion Sort

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?