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

TECHTRIX2025 BUGHUNT SET4

Quiz
•
Other
•
University
•
Hard
Sarmistha Moharer
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
11
12
10
Undefined behavior
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Arrays

Quiz
•
University
15 questions
Technoquiz..3

Quiz
•
University
15 questions
Quiz on Object Oriented Programming and Java

Quiz
•
University
25 questions
C Programming

Quiz
•
12th Grade - University
20 questions
Type Conversions and Computation

Quiz
•
University
25 questions
round 2

Quiz
•
University
24 questions
Round 3: Coding Round

Quiz
•
University
15 questions
ICT Quiz Bees

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade