Skip to content
VUBuddy

CS301P Quiz 3 Set 2

Data Structures (Practical) PDF 857 KBUpdated 23 Oct 2026
Quiz CS301P Quiz 3 Set 2 PDF 857 KB
vubuddy.com
Type
Quiz
Course
CS301P Data Structures (Practical)
Size
PDF 857 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 857 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2 of 2. Download the file for all 2 pages.

Q1. How many bits in the memory will be reserved by the following instruction? num: dw 1,2,3

  1. 24
  2. 48
  3. 3
  4. 6

Correct answer: 48

Q2. In the following assembly language instructions, which statement will be executed first? jmp loop mov ax,0 loop: mov cx,0

  1. loop:
  2. mov ax,0
  3. jmp loop
  4. mov cx,0

Correct answer: jmp loop

Q3. 1 db is equivalent to _____ dw

  1. 2
  2. 0.5
  3. 1
  4. 0

Correct answer: 0.5

Q4. _______ jump instruction is independent of flags.

  1. JNS
  2. JNE
  3. JO
  4. JCXZ

Correct answer: JCXZ

Q5. Which of following jump is not dependent on any flag?

  1. jnz
  2. jmp
  3. jnc
  4. jna

Correct answer: jmp

Q6. Which of the following statement declares the Stack object of float data type if a Stack class is defined using C++ template?

  1. Stack float stack;
  2. Stack stack;
  3. <float> Stack stack;
  4. Stack <float> stack;

Correct answer: Stack <float> stack;

Q7. The postfix expression for the infix expression 1-3-4 is :

  1. 13-4-
  2. -13-4
  3. –134
  4. 134--

Correct answer: 13-4-

Q8. Which of the following is used in function calls?

  1. Stack
  2. Tree
  3. Linked list
  4. Queue

Correct answer: Stack

Q9. What value will be returned by the given function if the values of ‘a’ and ‘b’ are 6 and 5? int i_avg (int a, int

  1. { return (a++ + ++b) / 2; }
  2. 4
  3. 7
  4. 5
  5. 6

Q10. When an operator is found in stack while evaluating a postfix expression, which of the following operation is performed on previous two operands?

  1. Enqueue
  2. None of the given options
  3. push
  4. pop

Correct answer: pop

All CS301P files →
CS301P Data Structures (Practical) All CS301P handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.