Hello Friends !!! I am from quickstudyhelper.com. In today’s post, we are going to see very important ‘Basic Computer Engineering MCQs’ which help you in your examination. If you are preparing for a competition exam, board exam, and engineering exam then you can read these MCQs.
In this post, you will see some Algorithms MCQs, Data Structure MCQs, and C Programming MCQs.
Basic Computer Engineering MCQs (Algorithms MCQs, Data Structure MCQs, and C Programming MCQs)
Q1. Why is an array used?
- can store very large numbers of records efficiently
- used to store a collection of data
- is a step-by-step procedure for calculations
- none of these
Answer: – 2) used to store a collection of data
Q2. A data structure that follows the FIFO principle.
- Queue
- Link list
- Stack
- Union
Answer :- 1) Queue
Q3. Another name for 1-D arrays.
- Linear arrays
- Lists
- Horizontal array
- Vertical array
Answer:- 1) Linear arrays
Q4. When an algorithm is written in the form of a programming language, it becomes a _________
- flowchart
- program
- pseudo code
- syntax
Answer:- 2) program
Q5 The time that depends on the input: an already sorted sequence that is easier to sort.
- Process
- Evaluation
- Running
- Input
Answer:- 3) Running
Q6 This characteristic often draws the line between what is feasible and what is impossible.
- Performance
- System Evaluation
- Modularity
- Reliability
Answer:- 1) Performance
Q7Which of the following comment is correct when a macro definition includes arguments
- The opening parenthesis should immediately follow the macro name.
- There should be at least one blank between the macro name and the opening parenthesis.
- There should be only one blank between the macro name and the opening parenthesis.
- All the above comments are correct.
Answer:- 1) The opening parenthesis should immediately follow the macro name.
Q8What is required in each C program?
- The program must have at least one function.
- The program does not require any function.
- Input data
- Output data
Answer:- 1) The program must have at least one function.
Q9What is a lint?
- C compiler
- Interactive debugger
- Analyzing tool
- C interpreter
Answer:- 3) Analyzing tool
Q10 Why is a macro used in place of a function?
- It reduces execution time.
- It reduces code size.
- It increases execution time.
- It increases code size
Answer:- 2) It reduces code size.
Q11 In the C language, the constant is defined _______.
- Before main
- After main
- Anywhere, but starting on a new line.
- None of the these
Answer:- 3) Anywhere but starting on a new line.
Q12 Which one of the following is a loop construct that will always be executed once?
- For
- While
- Switch
- Do while
Answer:- 4) Do while
Q13 Which of the following best describes the ordering of destructor calls for stack-resident objects in a routine?
- The first object created is the first object destroyed; last created is last destroyed.
- The first object destroyed is the last object destroyed; last created is first destroyed.
- Objects are destroyed in the order they appear in memory, the object with the lowest memory address is destroyed first.
- The order is undefined and may vary from compiler to compiler.
Answer:- 2)The first object destroyed is the last object destroyed; the last created is first destroyed.
Q14 Directives are translated by the
- Pre-processor
- Compiler
- Linker
- Editor
Answer:- 1) Pre-processor
Q15 What feature makes C++ so powerful?
- Easy implementation
- Reusing the old code
- Easy memory management
- All of the above
Answer:- 4) All of above
Q16 Each instance of a class has a different set of
- Class interfaces
- Methods
- Return types
- Attribute values
Answer:- 4) Attribute values
Q17 How many instances of a class can be declared?
- 1
- 10
- As per required
- None of the these
Answer:- 3) As per required
Q18 Which of the following statement is not true?
- A pointer to an int and a pointer to a double are of the same size.
- A pointer must point to a data item on the heap (free store).
- A pointer can be reassigned to point to another data item.
- A pointer can point to an array.
Answer 2) A pointer must point to a data item on the heap (free store).
Q19Which of the following SLT template class is a container adaptor class?
- Stack
- List
- Deque
- Vector
Answer:- 1) Stack
Q20 What kinds of iterators can be used with vectors?
- Forward iterator
- Bi-directional iterator
- Random access iterator
- All of the above
Answer:- 4) All of above
Q21The following statements are about EOF. Which of them is true?
- Its value is implementation dependent
- Its value can be negative
- Its value should not equal the integer equivalent of any character
- All of these
Answer:- 4) All of these
Q16Who invented C Language.?
- Charles Babbage
- Grahambel
- Dennis Ritchie
- Steve Jobs
Answer:- 3) Dennis Ritchie
Q17High level language is a .?
- Human readable like language.
- language with small program size.
- language with big program size.
- language which is difficult to understand and not human readable.
Answer:- 1) Human-readable like language
Q18 Which of the following is not an operating system?
- Windows
- Linux
- Oracle
- DOS
Answer:- 3) Oracle
Q19 What is the maximum length of the filename in DOS?
- 4
- 5
- 8
- 12
Answer:- 3) 8
Q20 When was the first operating system developed?
- 1948
- 1949
- 1950
- 1951
Answer:- 3) 1950
Q21 When were MS windows operating systems proposed?
- 1994
- 1990
- 1992
- 1985
Answer :- 4) 1985
Q22What is the full name of FAT?
- File attribute table
- File allocation table
- Font attribute table
- Format allocation table
Answer:- 2) File allocation table
Q23 BIOS is used?
- By operating system
- By compiler
- By interpreter
- By application software
Answer:- 1) By operating system
Q24 When does page fault occur?
- The page is present in memory.
- The deadlock occurs.
- The page does not present in memory.
- The buffering occurs.
Answer:- 3) The page does not present in memory.
Q25 When you delete a file on your computer, where does it go?
- Recycle bin
- Hard disk
- Taskbar
- None of these
Answer:- 1) Recycle bin
Q26 Where are placed the list of processes that are prepared to be executed and waiting?
- Job queue
- Ready queue
- Execution queue
- Process queue
Answer:- 2) Ready queue
Q27 Who among the following can block the running process?
- Fork
- Read
- Down
- All of these
Answer:- 4) All of these
Q28 What is the Microsoft window?
- Operating system
- Graphics program
- Word Processing
- Database program
Answer:- 1) Operating system
Q29 Which of the following is a group of programs?
- Accessories
- Paint
- Word
- All of above
Answer:- 1) Accessories
Q30 Which of the following is an example of a Real-Time Operating System?
- MAC
- MS-DOS
- Windows 10
- Process Control
Answer:- 4) Process Control
Q31 Which type of commands is required to perform various tasks in DOS?
- Internal commands
- External commands
- Valuable commands
- Primary commands
Answer:- 2) External commands
Q32 Which of the following is system software?
- Operating system
- Compiler
- Utilities
- All of the above
Answer:- 4) All of the above
Q33 Full From of CPU?
- Control Processing unit
- Processing unit
- Central processing unit
- None of these
Answer :- 3) Central processing unit
Q34 Main Types of operating system?
- 3
- 4
- 6
- 5
Answer:- 2) 4
Q35 how many types of inheritance?
- 2
- 3
- 4
- 5
Answer:- 4) 5
Q36 Which inheritance is java does not support?
- Multilevel inheritance
- Single inheritance
- Multiple inheritance
- None of these
Answer:- 3) Multiple inheritance
Q37 POP work on the concept?
- Top down
- Bottom up
- Left right
- Right left
Answer :- 1) Top-down
Q38 Which type of variable does not inherit in another class?
- Public variable
- Private variable
- Numerical variable
- All of these
Answer:- 2) Private variable
Q39 What is class?
- Predefined data type
- User defined Data type
- A Keyword
- None of these
Answer:- 2) User-defined data type
Q40Keyword is?
- Predefined word
- User defined word
- Both
- None of these
Answer:- 1) Predefined word
Q41C Language support inheritance?
- Multiple inheritance
- Multilevel inheritance
- Single inheritance
- No inheritance
Answer:- 4) No inheritance
Q42 Which type of files generate C and C++ language?
- .exe files
- .class files
- .doc files
- None of these
Answer:- 1).exe files
Q43 Which types of files are generated by Java?
- .exe files
- .class files
- .doc files
- None of these
Answer:- 2) .class files
Q44 How many keywords are supported by Java?
- 63
- 32
- 56
- 50
Answer:- 4) 50
Q45 C++ developed by
- Bjarne stroustrup
- Dennis Ritchie
- JaynesGosling
- None of these
Answer:- 1) Bjarne Stroustrup
Q46. Which of the following is not correct for virtual function in C++ ?.
- Virtual function can be static.
- Virtual function should be accessed using pointers
- Virtual function is defined in base class
- Must be declared in public section of class
Answer:- 1) Virtual function can be static.
Q47. How many specifiers are present in access specifiers in class?
- 1
- 2
- 3
- 4
Answer:- 3) 3
Q48. Which of these following members are not accessed by using direct member access operator?
- Public
- Private
- Protected
- Both 1 & 2
Answer:- 4) Both 1 & 2
Q49. Which is also called as abstract class?
- Virtual function
- Derived class
- Pure virtual function
- None of them
Answer:- 3) Pure virtual function
Q50. Guess the output of following C++ program
#include<iostream>
using namespace std;
class Empty { };
int main( )
{
cout << sizeof( Empty );
return 0;
}
- A non-zero value
- 0
- Compiler Error
- Runtime Error
Answer:- 1) A non-zero value
Q51. A member function can always access the data in ____
- The object of which it is a member
- The class of which it is member
- The public part of its class
- The private part of its class
Answer:- 2) The class of which it is member
Q52. What does a class in C++ holds?
- Data
- Function
- Arrays
- Both 1 & 2
Answer:- 4) Both 1 & 2
Q53. Which of the following is a valid class declaration?
- class A { int x; };
- class B { }
- public class A { }
- object A { int x; };
Answer:- 1) class A { int x; };
Q54. Which among the following best describes member functions?
- Functions which are defined within the class
- Functions belonging a class
- Functions in public access of a class
- Functions which are private to class
Answer:- 2) Functions belonging a class
Q55. How many types of member functions are generally there in C++?
- 2
- 3
- 4
- 5
Answer:- 4) 5
Q56. Member functions of a generic class are ____
- Not generic
- Automatically generic
- To be made generic explicitly
- Given default type as double
Answer:- 2) Automatically generic
Q57. A member function can _____ of the same class.
- Call only private member functions
- Call only static member functions
- Call only constant member functions
- Call other member functions
Answer:- 4) Call other member functions
Q58. Only the ____ can have access to private members and private functions
- data functions
- inline functions
- member functions
- member variables
Answer:- 3) member functions
Q59. A __ can only be called by another function that is a member of its class.
- constant member function
- private member function
- static member function
- friend function
Answer:- 3) private member function
Q60. If a member function does not alter any data in the class, that may be declared as ___
- constant member function
- private member function
- static member function
- friend function
Answer:- 1) constant member function
Q61. Which of the following is the correct syntax to add the header file in the C++ program?
- #include<userdefined>
- #include “userdefined.h”
- <include> “userdefined.h”
- Both A & B
Answer:- 4) Both A & B
Q62. Which of the following is the correct syntax for declaring the array?
- init array []
- int array [5];
- Array[5];
- None of the above
Answer:- 2) int array [5];
Q63. Which of the following gives the 4th element of the array?
- Array[0];
- Array[0];
- Array[3];
- None of the above
Answer:- 3) Array[3];
Q64. Which types of arrays are always considered as linear arrays?
- Single-dimensional
- Multi-dimensional
- Both A and B
- None of the above
Answer:- 1) Single-dimensional
Q65. Which of the header file is used for array type manipulation?
- <array>
- <type_traits>
- <iostream>
- std namespace
Answer:- 4) std namespace
Q66. What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
int main( )
{
Cout<<extent<remove_all_extents<string [10] [20] [30]>: : type> : : v
return 0 ;
}
- 20
- 10
- 0
- Error
Answer:- 3) 0
Q67. Which of the following functions/types of function cannot have default parameters?
- Member function of class
- Main( )
- Member function of structure
- Both B and C
Answer:- 2) Main( )
Q68. Which of the following in Object-Oriented Programming is supported by Function overloading and default arguments features of C++.
- Inheritance
- Polymorphism
- Encapsulation
- None of these
Answer:- 2) Polymorphism
Q69. Which of the following is the default return value of functions in C++?
- int
- char
- float
- void
Answer:- 1) int
Q70. An inline function is expanded during ___
- never expanded
- run-time
- compile-time
- end of the program
Answer:- 3) compile-time
Q71. Which of the following is important in a function?
- Return type
- Function name
- The return type, function name and parameter list
- Both return type and function name
Answer:- 4) Both return type and function name
Q72. Unary scope resolution operator is denoted by
- ! !
- % %
- :
- : :
Answer:- 4) : :
Q73. Which is the pointer which denotes the object calling the member function?
- Variable pointer
- This pointer
- Null pointer
- Zero pointer
Answer:- 2) This pointer
Q74. This pointer _____
- Are modifiable
- Can be assigned any value
- Are made variables
- Are non-modifiable
Answer:- 2) Can be assigned any value
Q75. Which among the following is/are type(s) of this pointer?
- const
- volatile
- const or volatile
- int
Answer:- 3) const or volatile
Q76. A pointer can be initialized with
- Null
- Zero
- Address of an object of same type
- All of the above
Answer:- 4) All of the above
Q77. How many types of constructors are there in C++?
- 1
- 2
- 3
- 4
Answer:- 3) 3
Q78. When destructors are called?
- when a program ends
- when a function ends
- when a delete operator is used
- all of the above
Answer:- 4) all of the above
Q79. Which of the following gets called when an object is being created?
- Constructor
- Virtual Function
- Destructors
- Main
Answer:- 1) Constructor
Q80. When the inheritance is private, the private methods in the base class are ____ in the derived class (in C++)
- Accessible
- Inaccessible
- Protected
- Public
Answer:- 2) Inaccessible
Q81. Does inheritance allow in C++ programs?
- Class Re-usability
- Creating a hierarchy of classes
- Extendibility
- All of the above
Answer:- All of the above
Q82. Which symbol is used to create multiple inheritance?
- .
- ,
- &
- %
Answer:- 2) ,
Q83. Which type of inheritance leads to the diamond problem?
- Single level
- Multi-level
- Multiple
- Hierarchical
Answer:- 3) Multiple
Q84. Which is the correct example of a binary operator?
- ++
- —
- Dereferencing operator(*)
- +
Answer:- 4) +
Q85. Which is the correct example of a unary operator?
- &
- ==
- —
- /
Answer:- 3) —
Q86. Which is called ternary operator?
- ?:
- &&
- |||
- ===
Answer:- 1) ?:
Q87. Which of the following operators cannot be overloaded
- Member Access or Dot operator
- Ternary or Conditional Operator
- Scope Resolution Operator
- All of the above
Answer:- 4) All of the above
Q88. Class is
- collection of similar elements
- collection of dissimilar elements
- combination of data members and member functions
- none of the above
Answer:- 3) combination of data members and member functions
Q89. Friend function can be defined in
- Private access mode
- Public access mode
- Protected access mode
- All of the above
Answer:- 4) All of the above
Q90. Which holds the address of an object?
- Class
- Friend function
- This pointer
- Private access specifier
Answer:- 3) This pointer
Q91. A class is called a container class of
- it cantain all the member function in public mode
- it contains the objects of another class as data members
- it contains another class inside
- it contains both the friend and the inline functions
Answer:- 2) it contains the objects of another class as data members
Q92. The only difference between a class and structure is that
- members are private in class and public on structure by default
- class can consist of data and member functions and structure consists data only
- we can specify different access modes in class, but in structure this is not possible
- all of the above
Answer:- 1) members are private in class and public on structure by default
Q93. The constructor can be declared in
- public mode
- private mode
- protected mode
- All the above
Answer:- 1) public mode
Q94. Constructor can return
- void data
- any data of user-defined types
- any data of built-in types
- No value
Answer:- 4) No value
Q95. Destructor is useful because
- it deallocates memory dynamically
- it release the memory occupied by an object
- it improves the speed of a program by reducing the number of statements in the source
- it supports data hiding
Answer:- 2) it release the memory occupied by an object
Q96. A virtual base class is generally used in
- Hierarchical inheritance
- Multiple inheritance
- Multi-level inheritance
- Hybrid inheritance
Answer:- 4) Hybrid inheritance
Q97. The inheritance is used to
- Avoid rewriting of the code
- Data abstraction
- Change the visibility modes
- Use virtual base class
Answer:- 1) Avoid rewriting of the code
Q98. Which of the following statement is true?
- a base class can access the derived class members
- a derived class can access the private members of the class
- a base class can access the public and protected members of the derived class
- a derived class can access the public and protected members of the base class
Answer:- 1) a base class can access the derived class members
Q99. The unique name of the following is called
- function call
- function prototype
- function definition
- signature
Answer:- 4) signature
Q100. Which of the following can be overloaded?
- size of
- ? :
- .*
- [ ]
Answer:- 3) .*
Q101. Which of these best describes an array?
- A data structure that shows a hierarchical behavior
- Container of objects of similar types
- Arrays are immutable once initialised
- Array is not a data structure
Answer:- 2) Container of objects of similar types
Q102. Which of the following concepts make extensive use of arrays?
- Binary trees
- Scheduling of processes
- Caching
- Spatial locality
Answer:- 4) Spatial locality
Q103. Assuming int is of 4bytes, what is the size of int arr[15];?
- 11
- 15
- 19
- 60
Answer:- 4) 60
Q104. In general, the index of the first element in an array is ____
- 0
- -1
- 2
- 1
Answer:- 1
Q105. Elements in an array are accessed _____
- randomly
- sequentially
- exponentially
- logarithmically
Answer:- 1) randomly
Q106. The process of inserting an element in the stack is called ____
- Create
- Push
- Evaluation
- Pop
Answer:- 2) Push
Q107.The process of removing an element from the stack is called ____
- Create
- Push
- Evaluation
- Pop
Answer:- 4) Pop
Q108. 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
Answer:- 4) Data Transfer between two asynchronous process
Q109. The type of expression in which the operator succeeds its operands is?
- Infix Expression
- Prefix Expression
- Postfix Expression
- Both Prefix and Postfix Expressions
Answer:- 3) Postfix Expression
Q110. What data structure would you most likely see in non-recursive implementation of a recursive algorithm?
- Linked List
- Stack
- Queue
- Tree
Answer:- 2) Stack
Q111. An element Referring outside array bounds is a _?
- Logical error
- Syntax error
- Execution time error
- Both A and C
Answer:- 4) Both A and C
Q112. Every element in an array is searched against some searching key, special for
- Linear search
- Bubble sort
- Binary search
- All of them
Answer:- 1) Linear search
Q113. A one-dimensional array containing one-dimensional arrays is called
- Two-dimensional array
- Three-dimensional array
- Multi-dimensional array
- Multi-casting array
Answer:- 1) Two-dimensional array
Q114. A binary search algorithm is an algorithm that is used for
- Linear way to search values
- Bubble sorting technique
- Divide and conquer method
- None of them
Answer:- 3) Divide and conquer method
Q115. For finding value in an array which of the following technique is used?
- Binary search algorithm
- Bubble sort
- Linear search algorithm
- All of them
Answer:- 4) All of them
Q116. To evaluate an expression without any embedded function calls:
- One stack is enough
- Two stacks are needed
- As many stacks as the height of the expression tree are needed
- A turing machine is needed in the general case
Answer:- 1) One stack is enough
Q117. The data structure required to check whether an expression contains balanced parenthesis is?
- Stack
- Queue
- Array
- Tree
Answer:- 1) Stack
Q118. What data structure would you most likely see in a non-recursive implementation of a recursive algorithm?
- LinkList
- Stack
- Queue
- Tree
Answer:- 2) Stack
Q119. What is the result of the following operation (Push (S, X))
- S
- X
- Null
- None
Answer:- 2) X
Q120. Consider the linked list implementation of a stack. Which of the following node is considered as Top of the stack?
- First node
- Middle node
- Any node
- Last node
Answer:- 1) the First node
Q121. The type of expression in which the operator succeeds its operands is?
- Infix Expression
- pre fix Expression
- postfix Expression
- None
Answer:- 3) postfix Expression
Q122. What is the minimum number of stacks of size n required to implement a queue of size n?
- One
- Two
- Three
- Four
Answer:- 2) Two
Q123. A queue follows ___
- LIFO principle
- FIFO principle
- Ordered array
- Linear tree
Answer:- 2) FIFO principle
Q124. Circular Queue is also known as ____
- Rectangle Buffer
- Square Buffer
- Ring Buffer
- Curve Buffer
Answer:- 3) Ring Buffer
Q125. Queues serve major role in ______
- Simulation of recursion
- Simulation of arbitrary linked list
- Simulation of limited resource allocation
- Simulation of heap sort
Answer:- 3) Simulation of limited resource allocation
Q126. Which of the following is not the type of queue?
- Ordinary queue
- Single ended queue
- Circular queue
- Priority queue
Answer:- 2) Single-ended queue
Q127. In a Queue, if a user tries to remove an element from an empty queue, it is called ___.
- Underflow
- Empty collection
- Overflow
- Garbage Collection
Answer:- 1) Underflow
Q128. In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is
- log 2 n
- n/2
- log 2 n – 1
- n
Answer:- 4) n
Q129. What is the time complexity of inserting at the end in dynamic arrays?
- O(1)
- O(n)
- O(logn)
- Either O(1) or O(n)
Answer:- 4) Either O(1) or O(n)
Q130. What is the time complexity to count the number of elements in the linked list?
- O(1)
- O(n)
- O(logn)
- O(n2)
Answer:- 2) O(n)
Q131. What is the space complexity for deleting a linked list?
- O(1)
- O(n)
- O(logn)
- Either O(1) or O(n)
Answer:- 1) O(1)
Q132. Which of the array declaration is valid in C++?
- int a[3];
- int [3];
- a[3] of int
- int a[0-3];
Answer:- 1) int a[3];
Q133. The number of elements in a one-dimensional array can be calculated by
- Lower bound – Upper bound + 1
- Lower bound + Upper bound – 1
- Upper bound + Lower bound – 1
- Upper bound – Lower bound + 1
Answer:- 4) Upper bound – Lower bound + 1
Q134. Which of the following is used in “C++” to release the memory
- malloc( )
- new
- free ( )
- delete
Answer:- 4) delete
Q135. Which of the following provides two-way traversal?
- Single linked list
- Doubly linked list
- Circular linked list
- None of the above
Answer:- 2) Doubly linked list
Q136. To represent the empty linked list we can
- Start=Null
- Ptr=Null
- Start->next=Null
- Ptr->next=Null
Answer:- 1) Start=Null
Q137. Which of the following is used in “C++” to dynamically allocate the memory
- malloc( )
- new
- free ( )
- delete
Answer:- 2) new
Q138. Which of the following statement is correct?
- Run-time memory allocated is called dynamic memory allocated
- Compile-time memory allocated is called dynamic memory allocated
- Memory size is declared in advance in dynamic memory allocated
- All of the above
Answer:- 1) Run-time memory allocated is called dynamic memory allocated
Q139. Inspecting a node in a doubly-linked list requires
- One pointer exchanges
- Two pointer exchanges
- Three pointer exchanges
- Four pointers exchanges
Answer:- 2) Two pointer exchanges
Q140. What can be said about the array representation of a circular queue when it contains only one element?
- F=R=Null
- F=R+1
- F=R=1
- F=R=0
Answer:- 4) F=R=0
Q141. In input restricted deque
- Insertion is possible from one end and deletion from both the ends
- Deletion is possible from one end and insertion from both ends
- Insertion and deletion is possible only from one end
- Insertion and deletion is possible from different end
Answer:- 1) Insertion is possible from one end and deletion from both the ends
Q142. In deque,
- Insertion is possible from one end and deletion from both the ends
- Deletion is possible from one end and insertion from both ends
- Insertion and deletion is possible only from one end
- Insertion and deletion is possible from different end
Answer:- 4) Insertion and deletion is possible from different end
Q143. When the elements are deleted from the front end of the DEQUE then
- Front is increased by 1
- Rear is increased by 1
- Front is decreased by 1
- Rear is decreased by 1
Answer:- 1) Front is increased by 1
Q144. When the elements are deleted from the rear end of the deque then
- Front is increased by 1
- Rear is increased by 1
- Front is decreased by 1
- Rear is decreased by 1
Answer:- 4) Rear is decreased by 1
Q145. In the linked list, each node contains a minimum of two fields. One field is the data field to store the data second field is?
- Pointer to character
- Pointer to integer
- Pointer to node
- Node
Answer:- 3) Pointer to node
Q146. What would be the asymptotic time complexity to find an element in the linked list?
- O(1)
- O(n)
- O(n2)
- None of the above
Answer:- 2) O(n)
Q147. What kind of linked list is best to answer questions like “What is the item at position n”?
- Singly linked list
- Doubly linked list
- Circular linked list
- Array implementation of linked list
Answer:- 4) Array implementation of linked list
Q148. Linked list data structure offers considerable savings in
- Computational Time
- Space Utilization
- Both 1 & 2
- None of the mentioned
Answer:- 3) Both 1 & 2
Q149. If the elements “A”, “B”, “C”, and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?
- ABCD
- DCBA
- DCAB
- ACBD
Answer:- 1) ABCD
Q150. Who is the father of the C language?
- Dennis Ritchie
- Bjarne Stroustrup
- Brian Kernighan
- Ken Thompson
Answer:- 1) Dennis Ritchie
Download PDF of Basic Computer Engineering MCQs ( Algorithms MCQs, Data Structure MCQs, C Programming MCQs)
If you want to study offline or print out these MCQs then you can buy this pdf. Otherwise, you can read it on our website for free.
I hope you liked this post ‘Basic Computer Engineering MCQs ( Algorithms MCQs, Data Structure MCQs, C Programming MCQs)’. More resources and study material are available at Quickstudyhelper.com.
Stay Updated, Stay Safe, Stay Healthy
Thank You!