Computer/Bachelor of Computer Applications MCQs set-1 Sample Test,Sample questions

Question:
An error is reported when the stack is not empty at the end.

1.True

2.False


Question:
An error is thrown if the character ‘
’ is pushed in to the character stack.

1.true

2.false


Question:
Consider the stack
| 5 |
| 4 |
| 3 |
| 2 |.
At this point, ‘*’ is encountered. What has to be done?

1.5*4=20 is pushed into the stack

2.* is pushed into the stack

3.2*3=6 is pushed into the stack

4.* is ignored


Question:
Entries in a stack are “ordered”. What is the meaning of this statement?

1.A collection of stacks is sortable

2.Stack entries may be compared with the ‘<‘ operation

3.The entries are stored in a linked list

4.There is a Sequential entry that is one by one


Question:
Evaluate the following and choose the correct answer.
a/b+c*d where a=4, b=2, c=2, d=1.

1.1

2.4

3.5

4.2


Question:
Evaluate the following infix expression using algorithm and choose the correct answer. a+b*c-d/e^f where a=1, b=2, c=3, d=4, e=2, f=2.

1.6

2.8

3.9

4.7


Question:
Evaluate the following statement using infix evaluation algorithm and choose the correct answer. 1+2*3-2

1.3

2.6

3.5

4.4


Question:
Evaluate the following statement using infix evaluation algorithm and choose the correct answer. 4*2+3-5/5

1.10

2.11

3.16

4.12


Question:
Evaluate the postfix expression ab + cd/- where a=5, b=4, c=9, d=3.

1.23

2.15

3.6

4.10


Question:
Evaluation of infix expression is done based on precedence of operators.

1.True

2. False


Question:
How many passes does the balancing symbols algorithm makes through the input?

1.one

2.two

3.three

4.four


Question:
How many passes does the evaluation of infix expression algorithm makes through the input?

1.One

2.Two

3.Three

4. Four


Question:
How many stacks are required for applying evaluation of infix expression algorithm?

1.one

2.two

3.three

4.four


Question:
How many stacks are required for evaluation of prefix expression?

1.one

2.two

3.three

4.four


Question:
How many types of input characters are accepted by this algorithm?

1.one

2.two

3.three

4.four


Question:
Identify the infix expression from the list of options given below.

1.a/b+(c-d)

2.abc*+d+ab+cd+*ce-f-

3.ab-c-

4.+ab


Question:
If -*+abcd = 11, find a, b, c, d using evaluation of prefix algorithm.

1.a=2, b=3, c=5, d=4

2. a=1, b=2, c=5, d=4

3.a=5, b=4, c=7,d=5

4.a=1, b=2, c=3, d=4


Question:
If the corresponding end bracket/braces/parentheses is encountered, which of the following is done?

1.push it on to the stack

2.pop the stack

3.throw an error

4.treated as an exception


Question:
In a stack, if a user tries to remove an element from an empty stack it is called _________

1.Underflow

2.Empty collection

3.Overflow

4.Garbage Collection


Question:
In balancing parentheses algorithm, the string is read from?

1.right to left

2.left to right

3.center to right

4.center to left


Question:
In Postfix expressions, the operators come after the operands.

1.True

2.False


Question:
Is the given statement ((A+B) + [C-D]] valid with respect to balancing of symbols?

1.True

2.False


Question:
Of the following choices, which operator has the lowest precedence?

1.^

2.+

3./

4.#


Question:
Operations required for reversing a word or a string using stack are push() and pop().

1.True

2.False


Question:
Out of the following operators (^, *, +, &, $), the one having highest priority is _________

1.+

2.$

3. ^

4.&


Question:
Out of the following operators (|, *, +, &, $), the one having lowest priority is ________

1.+

2.$

3.|

4.&


Question:
Pushing an element into stack already having five elements and stack size of 5, then stack becomes ___________

1.Overflow

2.Crash

3.Underflow

4.User flow


Question:
Reverse Polish Notation is the reverse of a Polish Notation.

1.True

2.False


Question:
Reversing a word using stack can be used to find if the given word is a palindrome or not.

1.True

2.False


Question:
The associativity of an exponentiation operator ^ is right side.

1.True

2.False


Question:
The system throws an error if parentheses are encountered in an infix expression evaluation algorithm.

1.True

2.False


Question:
Using the evaluation of infix expression, evaluate a^b+c and choose the correct answer. (a=2, b=2, c=2)

1.12

2.8

3.10

4.6


Question:
Using the evaluation of prefix algorithm, evaluate +-9 2 7.

1.10

2.4

3.17

4.14


Question:
What data structure is used when converting an infix notation to prefix notation?

1.Stack

2.Queue

3.B-Trees

4.Linked-list


Question:
What determines the order of evaluation of a prefix expression?

1.precedence and associativity

2.precedence only

3.associativity only

4.depends on the parser


Question:
What is the other name for a postfix expression?

1.Normal polish Notation

2.Reverse polish Notation

3.Warsaw notation

4.Infix notation


Question:
What is the result of the following postfix expression?
ab*cd*+ where a=2,b=2,c=3,d=4.

1.16

2.12

3.14

4.10


Question:
What is the result of the given postfix expression? abc*+ where a=1, b=2, c=3.

1.4

2.5

3.6

4.7


Question:
What is the time complexity for converting decimal to binary numbers?

1.O(1)

2.O(n)

3.O(logn)

4.O(nlogn)


Question:
What should be done when an opening parentheses is read in a balancing symbols algorithm?

1.push it on to the stack

2.throw an error

3.ignore the parentheses

4.pop the stack


Question:
When an operand is read, which of the following is done?

1.It is placed on to the output

2.It is placed in operator stack

3.It is ignored

4.Operator stack is emptied


Question:
When the corresponding end bracket/braces/parentheses is not found, what happens?

1.The stack is popped

2.Ignore the parentheses

3.An error is reported

4.It is treated as an exception


Question:
Which application of stack is used to ensure that the pair of parentheses is properly nested?

1.Balancing symbols

2.Reversing a stack

3.Conversion of an infix to postfix expression

4.Conversion of an infix to prefix expression


Question:
Which of the following is an example for a postfix expression?

1.a*b(c+d)

2.abc*+de-+

3.+ab

4.a+b-c


Question:
Which of the following is not an application of stack?

1.evaluation of postfix expression

2.conversion of infix to postfix expression

3.balancing symbols

4.line at ticket counter


Question:
Which of the following statement is incorrect with respect to balancing symbols algorithm?

1.{[()]}

2.([ )]

3.{( )}

4.{ [ ] }


Question:
Which of the following statement is incorrect with respect to evaluation of infix expression algorithm?

1.Operand is pushed on to the stack

2.If the precedence of operator is higher, pop two operands and evaluate

3.If the precedence of operator is lower, pop two operands and evaluate

4.The result is pushed on to the operand stack


Question:
Which of these operators have the highest order of precedence?

1.‘(‘ and ‘)’

2.‘*’ and ‘/’

3. ‘~’ and ‘^’

4.‘+’ and ‘-‘


Question:
While evaluating a postfix expression, when an operator is encountered, what is the correct operation to be performed?

1.push it directly on to the stack

2.pop 2 operands, evaluate them and push the result on to the stack

3.pop the entire stack

4.ignore the operator


Question:
While evaluating a prefix expression, the string is read from?

1.left to right

2.right to left

3.center to right

4.center to left to right


More MCQS

  1. Computer fundamentals
  2. Computer Basic MCQS
  3. CCC MCQ Sample Paper 1
  4. CCC Exams MCQS Sample Paper Test 2
  5. Computer Basics MCQS Paper 1
  6. Computer Basics MCQS Paper 2
  7. FUNDAMENTALS OF COMPUTERS MCQs PART 2
  8. FUNDAMENTALS OF COMPUTERS MCQs PART 1
  9. FUNDAMENTALS OF COMPUTERS MCQs PART 3
  10. Computer mcqs smaple paper 1
  11. Computer mcqs smaple paper 2
  12. Computer mcqs smaple paper 3
  13. Fundamentals of Computers
  14. Fundamentals of Computers (New) Part 1
  15. Fundamentals of Computers (New) Part 2
  16. Computer Networks MCQ Questions
  17. Computer Networks Transition from IPV4 to IPV6
  18. Computer Fundamentals (New) Part 1
  19. Computer Fundamentals (New) Part 2
  20. Computer Fundamentals (New) Part 3
  21. Computer Fundamentals (New) Part 4
  22. Computer Fundamentals (New) Part 5
  23. Computer Fundamentals (New) Part 6
  24. Computer Fundamentals (New) Part 7
  25. Computer Fundamentals (New) Part 8
  26. Operating Systems MCQs Part 1
  27. Operating Systems MCQs Part 2
  28. OS(Computer Operating Systems) Part 1
  29. OS(Computer Operating Systems) Part 2
  30. OS(Computer Operating Systems) Part 3
  31. OS(Computer Operating Systems) Part 4
  32. OS - Computer Operating Systems Part 5
  33. OS - Computer Operating Systems Part 6
  34. OS - Computer Operating Systems Part 7
  35. MS Word MCQ Questions Part 1
  36. MS Word MCQ Questions Part 2
  37. MS Word MCQ Questions Part 3
  38. MS Word MCQ Questions Part 4
  39. MS Word MCQ Questions Part 5
  40. MS Word MCQ Questions Part 7
  41. MS Word MCQ Questions Part 6
  42. Microsoft Excel MCQ Questions Part 1
  43. Microsoft Excel MCQ Questions Part 2
  44. Microsoft Excel MCQ Questions Part 3
  45. Microsoft Excel MCQ Questions Part 4
  46. Microsoft Excel MCQ Questions Part 5
  47. Microsoft Excel MCQ Questions Part 6
  48. Microsoft Excel MCQ Questions Part 7
  49. MS PowerPoint MCQ Questions PART 1
  50. MS PowerPoint MCQ Questions PART 2
  51. MS PowerPoint MCQ Questions PART 3
  52. MS PowerPoint MCQ Questions PART 4
  53. MS PowerPoint MCQ Questions PART 5
  54. MS PowerPoint MCQ Questions PART 6
  55. MS PowerPoint MCQ Questions PART 7
  56. MS Access MCQ Questions Part 1
  57. MS Access MCQ Questions Part 2
  58. MS Access MCQ Questions Part 3
  59. MS Access MCQ Questions Part 4
  60. MS Access MCQ Questions Part 5
  61. MS Access MCQ Questions Part 6
  62. MS Access MCQ Questions Part 7
  63. MS Access MCQ Questions Part 8
  64. Query of MS Access MCQS Part 1
  65. Query of MS Access MCQS Part 2
  66. Computer Communication and Networking Quiz
  67. Computer Graphics MCQ Quiz Questions and Answers
  68. Computer Basics Quiz Questions
  69. Computer Quiz Questions with Answers
  70. Computer Hardware MCQS Quiz
  71. MCQ Computer Organization & Architecture
  72. MCQ Computer Organisation - Input & output Organisation SET1
  73. MCQ Computer Organisation - Input & output Organisation SET2
  74. MCQ Computer Organisation - Input & output Organisation SET3
  75. MCQS on addressing modes SET 1
  76. MCQS on addressing modes SET 2
  77. Software Engineering MCQs SET 1
  78. Software Engineering MCQs SET 2
  79. Software Engineering MCQs Set 3
  80. Software Engineering MCQs Set 4
  81. Software Engineering MCQs Set 5
  82. Software Engineering MCQs Set 6
  83. Software Engineering MCQs Set 7
  84. mcqs data structures
  85. CCC Exam Sample MCQ Paper
  86. Computer MCQ Questions set-1
  87. Computer MCQ Questions set-2
  88. Computer MCQ Questions set-3
  89. Current affairs mcq Database management
  90. Programming arcitecture
  91. Computer Graphics MCQ Questions part 1
  92. Computer Graphics MCQ Questions part 2
  93. Computer Awareness MCQs and Quiz for Banking, IBPS, RRB, RBI, SBI Exams pART 1
  94. Computer Awareness MCQs and Quiz for Banking, IBPS, RRB, RBI, SBI Exams pART 2
  95. Computer Science MCQs
  96. Computer Mcq Question
  97. MCQs based on Fundamentals of Computer 1 set
  98. Computer Mcq Question set 2
  99. MCQ Encoding Schemes
  100. Data Entry and Keyboarding Skills MCQ
  101. Computer Science Number System
  102. Computer Network MCQ
  103. MCQ Questions on Tally
  104. MCQ Questions on Tally Set 2
  105. MCQ Questions on Tally Set 3
  106. MCQ Questions on Tally Set 4
  107. Internet Technology MCQ Questions for Competitive Exams
  108. Computer Software MCQ GK Questions
  109. Computer Organization and Architecture MCQs
  110. Basic Computer GK Questions
  111. Computer Graphics MCQ Set 1
  112. Operating System MCQ Set 1
  113. Operating System MCQ Set 2
  114. Operating System MCQ Set 3
  115. Operating System MCQ Set 4
  116. Operating System MCQ Set 5
  117. Operating System MCQ Set 6
  118. Operating System MCQ Set 7
  119. Operating System MCQ Set 8
  120. Operating System MCQ Set 9
  121. Operating System MCQ Set 10
  122. Operating System MCQ Set 11
  123. Operating System MCQ Set 12
  124. Operating System MCQ Set 13
  125. Operating System MCQ Set 14
  126. Operating System MCQ Set 15
  127. Operating System MCQ Set 16
  128. Operating System MCQ Set 17
  129. Operating System MCQ Set 18
  130. Operating System MCQ Set 19
  131. Operating System MCQ Set 20
  132. Operating System MCQ Set 21
  133. Computer Graphics MCQ Question Set 1
  134. Computer Networks MCQs
  135. Computer Networks MCQs Set-2
  136. Computer Networks MCQs Set-3
  137. Computer Networks MCQs Set-4
  138. Bachelor of Computer Applications MCQs set-1
  139. Bachelor of Computer Applications MCQs set-2
  140. NET Programming MCQ
  141. Artificial Intelligence and Robotics (AIR) Set 1
  142. Artificial Intelligence and Robotics (AIR) Set 2
  143. Computer Engineering Soft Computing Set 1
  144. Computer Engineering Soft Computing Set 2
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!