Search Header Logo

TECHTRIX2025 BUGHUNT SET4

Authored by Sarmistha Moharer

Other

University

Used 1+ times

TECHTRIX2025 BUGHUNT SET4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the time complexity of searching for an element in an unordered array of n elements?

O(1)

O(log n)

O(n)

O(n²)

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Python code? x = "Hello" y = x[0] = "M" print(x)

"Mello"

"Hello"

Error

None

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following JavaScript snippet? console.log(2 + "2" - 1);

21

3

"21"

22

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which data structure follows First In First Out (FIFO) principle?

Stack

Queue

Heap

Tree

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will happen if you try to access an array index out of bounds in C?

Compilation error

Runtime error

Undefined behavior

Program terminates gracefully

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Identify the error in the following Java statement: int x = 10.5;

Syntax error

Logical error

No error

Runtime error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following C code? #include int main() { int x = 5; printf("%d", x++ + ++x); return 0; }

11

12

10

Undefined behavior

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?