NEW
Font size
WorksheetsData Structures ( Module 1 )
Total questions: 20
Worksheet time: 10mins
Sparse matrix has _____
More zero's than one's
More one's than zero's
Equal number of one's and zero's
Only one's
Primitive data structures are built into _____
Operating System
Memory
Compiler
Computer
union student{ char usn[10]; int age; float marks;}; What is the size of the union?
12 Bytes
14 Bytes
10 Bytes
16 Bytes
Which is not a data structure operation?
Inserting
Deleting
Masking
Merging
Which is not a non-primitive data structure?
Stack
Queue
Pointer
Linked list
What is the size of a 2 x 4 integer array in which only two elements are stored in a 16 bit system?
4 Bytes
8 Bytes
12 Bytes
16 Bytes
Visiting each element of the data structure is called _____
Merging
Traversing
Masking
Searching
Data Structures is the _____
Classification of data in memory
Organization of data in memory
Allocation of memory for data
Normalization of data in memory
int *p, a=10; p=&a; If p is printed what is displayed?
Address of p
10
NULL
Address of a
Arrays are _____
Homogenous collection of data
Sequential arrangement of data
Accessed using indices
All the options
malloc(10*sizeof(char)+2)
22 Bytes
32 Bytes
12 Bytes
42 Bytes
Which is not a memory related function?
Malloc
Dealloc
Realloc
Calloc
Which of the following is not a disadvantage to the usage of array?
Fixed size
here are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size
Insertion based on position
Accessing elements at specified positions
In a stack, if a user tries to remove an element from an empty stack it is called _________
Underflow
Empty collection
Overflow
Garbage Collection
Which of the following is not the application of stack?
A parentheses balancing program
Tracking of local variables at run time
Compiler Syntax Analyzer
Data Transfer between two asynchronous process
What is the value of the postfix expression 6 3 2 4 + – *?
1
40
74
-18
Which of the following is non-liner data structure?
Stacks
List
Strings
Trees
The postfix form of the expression (A+ B)*(C*D- E)*F / G is?
AB+ CD*E – FG /**
AB + CD* E – F **G /
AB + CD* E – F G /
AB + CDE – F *G /
The postfix form of A*B+C/D is?
*AB/CD+
AB*CD/+
A*BC+/D
ABCD+/*
What is the result of the expression sizeof(int*) in C, assuming an int pointer on a typical system?
4
8
2
1
