solution - Data Structures and Algorithms : Basic (Test 1)

Question : What is a Data Structure?

Solution :
938520260601020805 Correct Answer : A way of organizing and storing data

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which of the following is a linear data structure?

Solution :
620220260601020658 Correct Answer : Array

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : What is an Algorithm?

Solution :
810120260601020540 Correct Answer : A finite sequence of instructions to solve a problem

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which characteristic is NOT required for an algorithm?

Solution :
600620260601020428 Correct Answer : Ambiguity

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : What does a pointer store?

Solution :
792720260601020331 Correct Answer : Address of a memory location

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which symbol is used to declare a pointer in C?

Solution :
835220260601020248 Correct Answer : *

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which ADT follows LIFO order?

Solution :
438820260601020157 Correct Answer : Stack

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which ADT follows FIFO order?

Solution :
449720260601020053 Correct Answer : Queue

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which notation represents the upper bound of an algorithm?

Solution :
930920260601020001 Correct Answer : O

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which of the following is NOT a data structure?

Solution :
153220260601015903 Correct Answer : Compiler

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : What is the time complexity of accessing an element in an array?

Solution :
623020260601015812 Correct Answer : O(1)

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which asymptotic notation gives the lower bound?

Solution :
519920260601015728 Correct Answer : Ω(n)

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which asymptotic notation gives both upper and lower bounds?

Solution :
338020260601015642 Correct Answer : Θ

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : What will be the value of x?

int x = 10;
int *p = &x;

Solution :
392420260601015537 Correct Answer : 10

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which operator is used to obtain the address of a variable?

Solution :
51020260601014913 Correct Answer : &

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which operation is generally NOT part of Stack ADT?

Solution :
126020260601014828 Correct Answer : Sort

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which operation inserts an element into a Queue?

Solution :
319320260601014531 Correct Answer : Enqueue

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which operation removes an element from a Queue?

Solution :
891120260601014451 Correct Answer : Dequeue

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : What is the complexity of linear search in the worst case?

Solution :
575120260601014408 Correct Answer : O(n)

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which data structure uses pointers extensively?

Solution :
893420260601014313 Correct Answer : Linked List

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : If an algorithm has complexity O(n²), then for n=100, approximately how many operations may occur?

Solution :
815320260601014235 Correct Answer : 10,000

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which notation best describes the average-case complexity?

Solution :
309020260601014158 Correct Answer : None specifically

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : What is a dangling pointer?

Solution :
817520260601014032 Correct Answer : Pointer pointing to deleted memory

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : What is a NULL pointer?

Solution :
22220260601013951 Correct Answer : Pointer that points no where

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which of the following is an Abstract Data Type?

Solution :
462720260601013800 Correct Answer : Stack

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : ADT(Abstract Data Type) mainly specifies:

Solution :
131020260601013721 Correct Answer : Operations and behavior

Description -

Data Structures and Algorithms : Basic (Test 1)

Question :
int x = 5;
int *p = &x;
*p = 20;

Value of x becomes:

Solution :
958020260601013545 Correct Answer : 20

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which complexity grows fastest?

Solution :
312920260601013317 Correct Answer : O(n²)

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Which of the following is NOT an ADT (Abstract Data Type)?

Solution :
455120260601013227 Correct Answer : RAM

Description -

Data Structures and Algorithms : Basic (Test 1)

Question : Why is asymptotic analysis important?

Solution :
279120260601013101 Correct Answer : Evaluates algorithm growth independent of hardware

Description -

Data Structures and Algorithms : Basic (Test 1)