Deck 2: Data Structures and Programming
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/17
Play
Full screen (f)
Deck 2: Data Structures and Programming
1
Queue is a _____________ list.
A)lifo
B)lilo
C)filo
D)fifo
A)lifo
B)lilo
C)filo
D)fifo
fifo
2
The statement print f ("%d", 10 ? 0 ? 5 : 1 : 12); will print?
A)10
B)0
C)12
D)1
A)10
B)0
C)12
D)1
1
3
To represent hierarchical relationship between elements, which data structure is suitable?
A)priority
B)tree
C)dqueue
D)all of the above
A)priority
B)tree
C)dqueue
D)all of the above
tree
4
Which of the following data structure is linear type?
A)strings
B)queue
C)lists
D)all of the above
A)strings
B)queue
C)lists
D)all of the above
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
5
The statement printf("%c", 100); will print?
A)prints 100
B)print garbage
C)prints ascii equivalent of 100
D)none of the above
A)prints 100
B)print garbage
C)prints ascii equivalent of 100
D)none of the above
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
6
The _______ memory allocation function modifies the previous allocated space.
A)calloc
B)free
C)malloc
D)realloc
A)calloc
B)free
C)malloc
D)realloc
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
7
Number of binary trees formed with 5 nodes are
A)30
B)36
C)108
D)42
A)30
B)36
C)108
D)42
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
8
The "C" language is
A)context free language
B)context sensitive language
C)regular language
D)none of the above
A)context free language
B)context sensitive language
C)regular language
D)none of the above
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
9
The worst case time complexity of AVL tree is better in comparison to binary search tree for
A)search and insert operations
B)search and delete operations
C)insert and delete operations
D)search, insert and delete operations
A)search and insert operations
B)search and delete operations
C)insert and delete operations
D)search, insert and delete operations
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
10
In which tree, for every node the height of its left subtree and right subtree differ almost by one?
A)binary search tree
B)avl tree
C)threaded binary tree
D)complete binary tree
A)binary search tree
B)avl tree
C)threaded binary tree
D)complete binary tree
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
11
C is ______ Language?
A)low level
B)high level
C)assembly level
D)machine level
A)low level
B)high level
C)assembly level
D)machine level
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
12
The Default Parameter Passing Mechanism is called as
A)call by value
B)call by reference
C)call by address
D)call by name
A)call by value
B)call by reference
C)call by address
D)call by name
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
13
What is Dequeue?
A)elements can be added from front
B)elements can be added to or removed from either the front or rear
C)elements can be added from rear
D)none of the above
A)elements can be added from front
B)elements can be added to or removed from either the front or rear
C)elements can be added from rear
D)none of the above
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
14
In which linked list last node address is null?
A)doubly linked list
B)circular list
C)singly linked list
D)none of the above
A)doubly linked list
B)circular list
C)singly linked list
D)none of the above
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
15
Which is the correct syntax to declare constant pointer?
A)int *const constptr;
B)*int constant constptr;
C)const int *constptr;
D)a and c both
A)int *const constptr;
B)*int constant constptr;
C)const int *constptr;
D)a and c both
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
16
The smallest individual units of c program
A)the basic element
B)ecognized by the compiler
C)the largest individual units of program
D)a & b both
A)the basic element
B)ecognized by the compiler
C)the largest individual units of program
D)a & b both
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
17
int constant var =10;
A)int
B)const var = 10;
C)const int var = 10;
D)b & c both
A)int
B)const var = 10;
C)const int var = 10;
D)b & c both
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck