Savitribai Public University Software Engineering MCQ | SPPU Software Engineering MCQ | Software Engineering
Software Engineering MCQ
1. A mathematical Model with a collection of operation
defined on that model is called.
- data Structure
- Abstract Data Type
- Primitive Data type
- Algorithm
Answer : 2) Abstract Data type
2. In an ADT
- Data are declared
- Operations are defined
- Data and Operations are encapsulated
- All of the Above
Answer : 4) All of
the Above
3. A data structure is an aggregation of
- Atomic Data
- Composite Data
- Atomic and Composite Data are encapsulated
- None
Answer : 3) Atomic and Composite Data are encapsulated.
4. ………….. is/are the linear data structures.
- Array
- Linked list
- String
- All of the above
Answer: 4) All of the Above
5. ……….. is a non-linear Data Structures.
- Linked list
- Stack
- Graph
- Queue
Answer: 3) Graph
6. Time complexity of a program refer to:
- Complexity involved with the input time of a program
- complexity involved in space mission and control
- Amount of time a program needs to run for completion
- None of the above
Answer : 3) Amount of time a program needs to run form
completion.
7. Space complexity of an algorithm is the maximum amount of
………… required by it during execution.
- Memory Space
- Operations
- Time
- None of the above
Answer : 1) Memory space
8. An algorithm that indicates the amount of temporary
storage required for running the algorithm i.e., the amount of memory needed by
the algorithm to run to completion is termed as
- Big Oh O(f)
- Big Omega(f)
- Space complexity
- Time complexity
Answer : 3) Space complexity.
9. To verify whether a function grows faster or slower than
the other function, we have some asymptotic or mathematical notations, which
is/are……….
- Big Omega(f)
- Big Oh(f)
- Both (a) and (b)
- None of these
Answer : 3) Both (a) and (b)
10. A function in which f(n) is Ω(g(n)), if there exist
positive values k and c such that f(n)>=c*g(n), for all n>=k. This
notation defines a lower bound for a function f(n).
- Big oh O(f)
- Big Omega Ω(f)
- Both(a) and (b)
- None of the above
Answer : 2) Big Omega Ω(f)
11. An algorithm that requires ………… operations to complete its
task on n data elements is said to have a linear runtime.
- 2n+1
- 3n3+3n+2
- n3+9
- 10
Answer: 1) 2n+1
12. The complexity of adding two matrices of order m*n is
- m+n
- mn
- m2n2
- log(m+n)
Answer: 2) mn
13. What does it mean when we say that an algorithm X is
asymptotically more efficient than Y?
- X will always be a better choice for small inputs
- X will always be a better choice for large inputs
- y will always be a better choice for small inputs
- x will always be a better choice for all inputs
Answer: 2) X will always a better choice for large inputs.
14. Which of the following data structure store the homogeneous
data elements?
- Array
- Records
- Pointers
- None of the above
Answer: 1) Array
15. Arrays are best data structures……….
- for relatively permanent Collections of data
- The size of the structure and the data in the structure are constantly changing.
- for both of above situation
- None of the above situation.
Answer : 1) for relatively
permanent collections of data
16. The memory address of the first element of an array is
called…..
- floor address
- foundation address
- first address
- base address
Answer : 4) base address
17. The memory address of the fifth element of an array can be
calculated by the formula…….
- Loc(Array[5] = Base(Array)+w(5-lower bound), where w is the number of words per memory cell for the array.
- Loc(Array[5]) = Loc(Array[5])+(5-lower bound), where w is the numbers words per memory cell for the array
- Loc(Array[5]) = Base(Array[4])+(5-Upper bound), where w is the number of words per memory cell for the array.
- None of the above.
Answer : 1) Loc(Array[5] = Base(Array)+w(5-lower bound), where w
is the number of words per memory cell for the array.
18. Which of the following expression access the (I,j)th of a m x n matrix stored in column major form?
- n x (i-1) + j
- m x (j-1)+1
- m x (n-j) + j
- n x (m-i) + j
Answer : 2) m x (j-1)+1
19. The smallest element of an array’s index is called its….
- Lower bound
- Upper bound
- Range
- Extraction
Answer: 1) Lower bound.
20. Which of the following is also called as partition exchange
sort?
- Bubble
- Insertion
- merge
- Quick
Answer: 4) Quick
21. What is an internal/in-place sorting algorithm?
- Algorithm that user tape or disk during the sort.
- Algorithm that user main memory during the sort.
- Algorithm that involves swapping
- Algorithm that are considered in place.
Answer : 2) Algorithm that user main memory during the sort
22. What is an external/out-place sorting algorithm?
- Algorithm that user taps or disk during the sort.
- Algorithm that users main memory during the sort.
- Algorithm that involves swapping.
- Algorithm that are considered in place.
Answer : 1) Algorithm that user taps or disk during the sort.
23. A sorting technique is called stable if it…………
- Takes O(n log n) times
- Maintains the relative order of occurrence of non-distinct elements
- User divide-and-conquer paradigm
- Takes O(n) space.
Answer : 2) Maintains the relative order of occurrences of
non-distinct elements.
24. Which of the following is not stable sort?
- Bubble Sort
- Insertion sort
- Merge Sort
- Quick Sort
Answer :4) Quick Sort.
25. Which of the following is not an internal sorting algorithm?
- Bubble sort
- Insertion sort.
- Merge sort
- Quick sort.
Answer : 3) Merge sort.
26. The complexity of Bubble sort algorithm is ….
- O(n)
- b) O(log n)
- c) O(n2)
- d) O(n log n)
Answer : 2) O(log n)
27. If the given input array is sorted or nearly sorted, which of
the following algorithm gives the best performance?
- Insertion sort
- Quick sort
- Merge sort
- None of the above
Answer : 1) Insertion sort.
28. In a circularly linked list organization, insertion of a
record involves the modification of
- 0 pointer
- 1 pointer
- 2 pointer
- 3 pointers
Answer : 3) 2 pointer
29. The concatenation of two lists is to be performed in o (1)
time. Which of the following implementation of a list should be used?
- singly linked list
- Doubly linked list
- Circular doubly linked list
- Array implementation of list
Answer : 3) Circular doubly linked list.
30. Which of the following operations is performed more
efficiently by doubly linked list then by linear liked list?
- Deleting nodes whose location is given
- searching an unsorted list for a given item.
- Inserting a node after the node with a given item.
- Traversing the list to process each node.
Answer : 1) Deleting nodes whose location is given
31. Consider the linked list of n elements. What is the time taken to insert an element after an element pointed by some pointer?
- O(1)
- O(log2n)
- O(n)
- O(n log2n)
Answer : 1) O(1)
32. …………. Is an ordered collection of data in which each element
contains the location of the next element known as?
- Array
- Record
- linked list
- node
Answer : 3) linked list
33. What does an empty linked list consist?
- a variable
- two nodes
- data and a link
- a null head pointer
Answer : 4) a null head pointer
34. In the last node of the circular linked list the link field
contains?
- Null
- Pointer to next node
- Pointer to first node
- Pointer to data item
Answer : 3) Pointer to first node.
35. In a Circular linked list:
- Components are all liked together in some sequential manner.
- There is no beginning and no end.
- components are arranged hierarchically.
- Forward and backward traversal within the list it permitted.
Answer : 2) There is no beginning and no end.
36. What is the time complexity to count the number of elements in
the liked list
- O(1)
- O(n)
- O(log n)
- O(n2)
Answer : 2) O(n)
37. A stack is ………
- Linear data structure
- Non-liner data structure
- Built-in data structure
- none of this
Answer : 1) Linear data structure.
38. A stack is linear data structure in which data is stored and
retrieved in a…….
- Last out first in (LOFI)
- Last in First out(LIFO)
- First in First out (FIFO)
- Last Out Last in (LOLI)
Answer : 2) Last in First out(LIFO)
39. Elements are added at which position of the stack?
- Bottom
- Middle
- Top
- None of these
Answer : 3) Top
40. In a stack, if a user tries to remove an element form empty
stack it is called….
- underflow
- Empty collection
- overflow
- Garbage collection
Answer : 1) Underflow.
No comments:
Post a Comment