C Multiple Choice Questions
1. Representation of data structure in memory is known as
- Recursive
- Abstract data type (Ans)
- Storage structure
- File structure
2. Which of the following search algorithm requires a sorted array?
- Linear search
- Hash search
- Binary search (Ans)
- All of these
3. The largest element of an array index is called its
- Lower bound
- Upper bound (Ans)
- Range
- All of the above
4. Which of the following is a Compound assignment operators?
- +=
- *=
- /=
- All the above (Ans)
5. What will be the output of 5.0 / 2?
- 2
- 3
- 0
- 2.5 (Ans)
6. What is %f, %d, %s and %c?
- Number Specifier
- Format Specifier (Ans)
- Access Specifier
- None of the above
7. Which of the following is correct set of keywords?
- unsigned, external, typedef, signed
- unsigned, volatile, typedef, every
- unsigned, volatile, typedef, sizeof (Ans)
- None of the above
8. The keywords are also called
- Safe words
- Static words
- Reserved words (Ans)
- Reused words
- Every C Program must have one function called?
- switch()
- main() (Ans)
- struct()
- for()
- Which is the correct syntax to declare constant pointer?
- int *const constPtr;
- *int constant constPtr;
- const int *constPtr;
- A and C both (Ans)
- In which linked list last node address is null?
- Doubly linked list
- Circular list
- Singly linked list (Ans)
- None of the above
- What is Dequeue?
- Elements can be added from front
- Elements can be added to or removed from either the front or rear (Ans)
- Elements can be added from rear
- None of the above
- The Default Parameter Passing Mechanism is called as
- Call by Value (Ans)
- Call by Reference
- Call by Address
- Call by Name
- C is ______ Language?
- Low Level
- High Level (Ans)
- Assembly Level
- Machine Level
- In which tree, for every node the height of its left subtree and right subtree differ almost by one?
- Binary search tree
- AVL tree (Ans)
- Threaded Binary Tree
- Complete Binary Tree
- The worst case time complexity of AVL tree is better in comparison to binary search tree for
- Search and Insert Operations
- Search and Delete Operations
- Insert and Delete Operations
- Search, Insert and Delete Operations (Ans)
- The "C" language is
- Context free language (Ans)
- Context sensitive language
- Regular language
- None of the above
- Number of binary trees formed with 5 nodes are
- 30
- 36
- 108
- 42 (Ans)
- The _______ memory allocation function modifies the previous allocated space.
- calloc
- free
- malloc
- realloc (Ans)
- The statement printf("%c", 100); will print?
- prints 100
- print garbage
- prints ASCII equivalent of 100 (Ans)
- None of the above
- Which of the following data structure is linear type?
- Strings
- Queue
- Lists
- All of the above (Ans)
- To represent hierarchical relationship between elements, which data structure is suitable?
- Priority
- Tree (Ans)
- Dqueue
- All of the above
- The statement print f ("%d", 10 ? 0 ? 5 : 1 : 12); will print?
- 10
- 0
- 12
- 1 (Ans)
- Queue is a _____________ list.
- LIFO
- LILO
- FILO
- FIFO (Ans)


No comments:
Post a Comment