Coding Contest Quiz

Coding Contest Quiz

30 Qs

quiz-placeholder

Similar activities

C Language

C Language

12th Grade

30 Qs

CODETRONICS WORKSHOP TEST

CODETRONICS WORKSHOP TEST

Professional Development

30 Qs

Nail Technology 8 Edition CHAPTER 13 Quiz Game

Nail Technology 8 Edition CHAPTER 13 Quiz Game

KG - University

25 Qs

COMPROG - IWAMOTO

COMPROG - IWAMOTO

KG - University

25 Qs

Unit 1 Lesson 1 Quiz Review

Unit 1 Lesson 1 Quiz Review

KG - University

25 Qs

Chapter 05 2021 UPC

Chapter 05 2021 UPC

KG - University

25 Qs

First Round

First Round

KG - University

25 Qs

Coding Contest Quiz

Coding Contest Quiz

Assessment

Quiz

others

Hard

Created by

venkat viswa

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?