CS401 Computer Architecture and Assembly Language Quiz No.2 May 02, 2012 Both DS and ES can be used to access the video memory. However we commonly keep DS for accessing our data, and load ES with the segment of video memory. PAGE 81 Question # 2 of 10 ( Start time: 03:17:23 PM ) Total Marks: 1 128 During the CALL operation, the current value of the instruction pointer is automatically saved on the stack, and the destination of CALL is loaded in the instruction pointer. VGA stands for Video Graphics Adapter ________ transfers the word at the current top of stack (pointed to by SP) to the destination operand and then increments SP by two to point to the new top of stack. The execution of the instruction "mov word [ES : 160], 0x1230" will print a character on the screen at: The Operation of pop ax is AX <-- [SP] SP <-- SP-2 _______ function decrements SP (the stack pointer) by two and then transfers a word from the source operand to the top of stack now pointed to by SP. Far calls are called intra segment calls. STOS is often used to clear a block of memory or fill it with a constant. How many characters were defined by standard ASCII? Select correct option: 132 124 122 128 Stack clearing by the caller needs an extra instruction on behalf of the caller after every call made to the subroutine, unnecessarily increasing instructions in the program. The direction of movement is controlled with the _________________in the flags register. If this flag is cleared the direction is from lower addresses towards higher addresses and if this flag is set the direction is from higher addresses to lower addresses. ASCII stands for____________________________. During the CALL operation, the current value of the instruction pointer is automatically saved on the stack, and the destination of CALL is loaded in the instruction pointer. Hexadecimal is the prevalent and standard format for representation of characters in computers. The execution of the instruction "mov word [ES : 160], 0x1230" will print a character on the screen at: In the instruction "mov word [es:160], 0x1230", 12 means: This top of stack is contained in the ____ register. PUSH increments SP (the stack pointer) by two and then transfers a word from the source operand to the top of stack now pointed to by SP. Page 71 The reduction in code size and the improvement in speed are the two reasons why block processing instructions were introduced in the _____________ processor. MOVS is used to ________ a block of memory. The operation of PUSH is not similar to CALL however with a register other than the instruction pointer. Reference: operation of PUSH is similar to CALL however with Both DS and ES can be used to access the video memory. However we commonly keep DS for accessing our data, and load ES with the segment of video memory. Which bit of the attributes byte represents the blue component of foreground color ? SCAS compares a source byte or word in register AL or AX with the ___________ string element addressed by ES: DI and updates the flags. Source Destination Flag Register page 92 An element is pushed on the stack SP is decremented by ____ as the 8088 stack works on word sized elements. Three two four five page 68 To access the arguments from the stack, the immediate idea that strikes is to ____ them off the stack. push pop add insert We use _______ to access the parameters that are stay on the stack with out popping them. pop DS not sure PUSH BP How many characters were defined by standard ASCII? 132 124 128 ASCII table is the contiguous arrangement of the uppercase alphabets (41-5A), the lowercase alphabets (61-7A), and the numbers ______________ 31-40 29-39 30-39 page no 80 The purpose of MOVS instruction is to move a memory location to register True False _________ decrements SP (the stack pointer) by two and then transfers a word from the source operand to the top of stack now pointed to by SP. push pop call None This top of stack is contained in the ____ register. SP BP AX To access the arguments from the stack, the immediate idea that strikes is to ____ them off the stack. MUL (multiply) Instruction performs an unsigned multiplication of the source operand and the ___________. A typical stack is an area of computer memory with a fixed origin and a variable True False Local variables should be created when the subroutine is called and discarded afterwards. True False Both DS and ES can be used to access the video memory. However we commonly keep DS for accessing our data, and load ES with the segment of video memory. True False Elements are removed from the stack in the reverse order to the order of their addition. True False The Operation of Push is if "we push ax" then SP<-- SP+2 [SP]<-- AX True False The operations of placing items on the stack and removing them from there are called push and ret. True False A _____ is an area of memory that holds all local variables and parameters used by any function and remembers the order in which functions are called so that function returns occur correctly. Instruction Pointer Stack Data Segment Base Register Stack is a data structure that behaves in a first in last _______ manner. In Out Push Add RET do not pops the word at the top of the stack (pointed to by register SP) into the instruction pointer but increments SP by two. True False
Select correct option:
True
False
How many characters standard ASCII has?
Select correct option:
512
256
64
Select correct option:
True
False
Select correct option:
Video Graphic Accumulator
Video Graphics Adapter
Visual Graphics Adapter
Video Graphics Application
Select correct option:
PUSH
POP
CALL
None of the given
Select correct option:
First column of second row
Second column of first row
Second column of second row
First column of third row
Select correct option:
True
False
Select correct option:
POP
PUSH
RET
ADD
Select correct option:
True
False
Select correct option:
True
False
Select correct option:
True
False
Select correct option:
Direction Flag (DF)
Control Flag (CF)
Carry Flag (CF)
Non of above
Select correct option:
American Standard Code for Information Interaction
American Standard Code for Information Interchange
American Standard Communication for Integer Interchange
American Scientific Communication for Integer Interaction
Select correct option:
Extended ASCII has 256 characters with assigned numbers from
Select correct option:
1 to 255
0 to 256
0 to 255
1 to 256
Select correct option:
True
False
Select correct option:
First column of second row
Second column of first row
Second column of second row
First column of third row
Select correct option:
green color on black background
green color on blue background
black color on green background
blue color on green background
Select correct option:
SP
BP
AX
BX
Select correct option:
True
False
Select correct option:
8088
8085
8080
iAPX386
Select correct option:
Save
Move
Delete
Push
Select correct option:
True
False
a register other than the instruction pointer. page 69
Select correct option:
True
False
Select correct option:
0
1
2
3
Select correct option:
Push
Pop
Add
Insert
Parameters clears from the stack by the
Select correct option:
caller
callee
caller and callee
None of the given
There are just ____ block processing instructions in 8088.
Select correct option:
6
5
4
3
_________ decrements SP (the stack pointer) by two and then transfers a word from the source operand to the top of stack now pointed to by SP.
Select correct option:
PUSH
POP
CALL
None of the Above
The operation of PUSH is not similar to CALL however with a register other than the instruction pointer.
Select correct option:
True
False
The direction of movement is controlled with the _________________in the flags register. If this flag is cleared the direction is from lower addresses towards higher addresses and if this flag is set the direction is from higher addresses to lower addresses.
Select correct option:
Direction Flag (DF)
Control Flag (CF)
Carry Flag (CF)
Non of above
Hexadecimal is the prevalent and standard format for representation of characters in computers.
Select correct option:
True
False
Select correct option:
Accumulator
Carry
Word
Base
We can convert any digit to __ by adding 0x30 in the digit.
Select correct option:
Character
ASCII
EBCDIC
Standard Code
--
Ist woh jiss ney tumhari jeet ke Liye buhat kuch hara hoo
--
--
Virtual University of Pakistan*** IT n CS Blog
================================
http://www.eNoxel.com
http://www.enoxelit.tk
http://www.geniusweb.tk
and Please do Share this group with your Friends and Class Fellows so that our Circle would expand and can be more useful for other Students.
Thanks, n Best of Luck......
You received this message because you are subscribed to the Google
Groups "vulms" group.
To post to this group, send email to vulmsit@googlegroups.com
To unsubscribe from this group, send email to
vulmsit+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/vulmsit?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "vulms" group.
Visit this group at http://groups.google.com/group/vulmsit?hl=en-GB.
--
Posted By Sheroo to **Virtual University Of Pakistan**Student Cafe at 12/05/2012 02:49:00 AM --
You received this message because you are subscribed to the Google Groups "VU Computer Science" group.
To post to this group, send email to vu-computer-science@googlegroups.com.
To unsubscribe from this group, send email to vu-computer-science+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/vu-computer-science?hl=en.
0 comments:
Post a Comment