Search Header Logo

Quiz

Authored by Vikash Ranwa

Computers

University

Used 2+ times

Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Worst- case time complexity of Linear search is

O(1)

O(n)

O(n log n)

O(log n)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the sizeof operator in C return?

Size of a variable in bytes

Size of a variable in bits

Number of elements in an array

Length of a string

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm has the worst-case time complexity of O(n^2)?

All of them

Quick Sort

Bubble Sort

Insertion Sort

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following C code?

1020

2010

2020

Compiler Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which traversal method visits the root node, then the left subtree, and finally the right subtree?

Preorder traversal

Inorder traversal

Postorder traversal

Level order traversal

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which year was the C programming language invented?

1968

1971

1972

1973

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a binary tree, what is the maximum number of nodes at level 'k'?

2^(k+1) - 1

k + 1

k

2^k

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?