You are on page 1of 24

^^Which among the statement in the options below is not true about Assembly Language

@@Assembly language consists of statements written with short mnemonics

@@Assembly language has a one-to-one relationship with machine language

@@Each assembly language instruction corresponds to a single machine-language


instruction

@@Assembly language is a numeric language specifically understood by a computer’s


processor~

@@Assembly language is designed for specific processor family

^^The utility program that converts source code programs from assembly language into
machine language is called

@@Assembler~

@@Linker

@@Interpreter

@@Translator

@@Debugger

^^The utility program that combines individual files created by an assembler into a single
executable program is called

@@Assembler

@@Linker~

@@Interpreter

@@Translator

@@Debugger
^^The utility program that lets you to step through a program while it’s running and examine
registers and memory is called

@@Assembler

@@Linker

@@Interpreter

@@Translator

@@Debugger~

^^Binary numbers are base 2 numbers and each binary digit is called a

@@Digit

@@Bit~

@@Byte

@@Decimal

@@Hexadecimal

^^A signed integer is

@@Positive only

@@Negative only

@@Both positive and negative

@@Positive or negative~

@@None of these

^^The translation of 10001001B to decimal is

@@147D

@@157D

@@137D~

@@127D

@@117D
^^The translation of 47D to binary is

@@101111B

@@110111B~

@@111011B

@@111101B

@@111110B

^^What is the result of adding 00000101B and 00001111B

@@00110100

@@00010100~

@@01110100

@@11110100

@@00010110

^^A byte contains

@@2 bits

@@4 bits

@@8 bits~

@@16 bits

@@32 bit

^^In hexadecimal, each digit position represents a power of

@@2

@@4

@@8

@@16~

@@3
^^The conversion of 2BA4H to Decimal is

@@11172D~

@@11187D

@@11101D

@@12711D

@@12317D

^^The conversion of 16565D to hexadecimal is

@@3BA5H

@@40B5H~

@@04B5H

@@B405H

@@540BH

^^The conversion of the signed binary 11111000B to decimal is

@@-16

@@-12

@@-8~

@@-4

@@-2

^^What is the result of subtracting 00000101B from 00001001B

@@10111100B

@@11011100B

@@11101100B

@@11111100B~

@@None of these
^^ Which of the operator in the options below is used for reversing a Boolean value

@@ NOT~

@@AND

@@OR

@@None of these

@@All of these

^^A ______________ is used to show all the inputs and outputs of a Boolean function

@@ False Table

@@Truth Table~

@@ Map File

@@ Object File

@@All of the above

^^Assembly language has a ____________ relationship with machine language

@@ N-M

@@1-N

@@1-1~

@@1-M

@@M-1

^^A ______________ synchronizes CPU operations

@@ Motherboard

@@Assembler

@@Variable

@@clock~

@@None of these
^^______________ coordinates sequence of execution steps

@@Control Unit~

@@Arithmetic and Logical Unit

@@System Bus

@@Monitor

@@All of these

^^ _____________is a group of parallel wires that transfer data from one part of the
computer to another

@@ System

@@Bus~

@@Keyboard

@@All of these

@@None of these

^^_______________is used for event triggering in machines

@@ Motherboard

@@Assembler

@@clock~

@@Variable

@@None of these

^^The execution of a single machine instruction can be divided into a sequence of individual
operations called the_____________

@@Processing execution cycle

@@Running execution Cycle

@@Building execution Cycle

@@ Fetch execution cycle~

@@All of these
^^The_______________ contains the address of the next instruction to be executed.

@@Instruction Pointer~

@@ Index Register

@@Memory Register

@@All of these

@@None of these

^^ _____________ is a high-speed memory used by computers to hold the most recently used
instructions and data

@@ROM

@@Cache~

@@EROM

@@Cache

Hit

@@Cache Miss

^^_____ is used for storing information about a program’s size and location during execution

@@Index Table

@@Cache Table

@@Descriptor Table~

@@Hash Table

@@None of these

^^The ability of a computer to run multiple tasks at the same time is called_______________

@@Over Tasking

@@Super Computing

@@Overloading

@@Multitasking~

@@All of these
^^A Cache miss occurs when data to be read is already in cache memory

@@True

@@False~

^^A Cache hit occurs when data to be read is not in cache memory

@@True

@@False~

^^Level-1 cache is inside the CPU

@@True~

@@False

^^Level-2 cache is outside the CPU

@@True~

@@False

^^____________________ utility assigns a given amount of CPU time to each running


program

@@Scheduler~

@@Assembler

@@Masm32

@@ALU

@@None of these

^^The general-purpose registers inside the CPU are prohibited from arithmetic and data
movement

@@True

@@False~
^^All the options below are examples of scheduling used by an operating system except

@@Round Robin

@@First Come First Serve

@@ Event~

@@Shortest Job First

@@Priority

^^Octal number system is_____________

 @@A positional system with weights 0 to 9

@@A positional system with weights 0 to 8

@@A positional system with weights 0 to 7~

@@A non positional system with weights 0 to 7

@@None of these

^^The sum of two hexadecimal numbers 23D and 9AA gives the hexadecimal number
@@AF7 

@@BF6 

@@BE7~

@@BE5

@@None of these

^^The small extremely fast, RAM’s are called as _______


@@Cache~

@@ Heaps

@@Accumulators

@@Stacks

@@All of these

^^What is the only language that a computer understands directly?

@@English, as spoken in Boston, Mass


@@BASIC, the Beginners' All-purpose Symbolic Instruction Code 

@@Machine language, different for every type of CPU~

@@Java

@@All of these

^^What are the three main types of computer programming languages?

@@Machine language, assembly language, high level language~

@@Imperative language, functional language, declarative language 

@@COBOL, Fortran-77, C++ 

@@Java, PHP, C++

@@None of these

^^The address space of the IA-32 is ____


@@2^16

@@2^32~

@@2^64

@@ 2^8

@@None of these

   ^^Assembly language program is called______________

@@ Object program

@@Source program~

@@Oriented program

@@All of these

@@None of these

^^A System Bus Contains________________

@@ Address Bus

@@Data Bus

@@Control Bus

@@All of these~
@@None of these

^^Which of the following programming languages has an instruction set closest to the
machine language of a computer?

@@BASIC

@@Fortran

@@Assembly Language~

@@C++

@@All of these

^^A byte is a group of 16 bits

@@True

@@False~

^^The AX register full name is:

@@Accumulator register~

@@Counter register

@@Base register

@@Extended Accumulator register

@@None of these

^^The result of logical operation: 1 OR 0 is

@@0

@@1~

^^How many bits in one double word?

@@8 bits

@@16 bits

@@32 bits~

@@64 bits

@@None of these
^^The maximum addressable RAM in real address mode is

@@1KB

@@1GB

@@1MB~

@@1 byte

@@None of these

^^ In segmented memory addressing, a linear address is made up of which of the following

@@2 byte segment value, and 16-bit offset value~

@@32-bit segment value, 32-bit offset value

@@4 byte segment value, 16-bit offset value

@@16-bit segment value, 1 byte offset value

@@None of these

^^Convert 08A4:0203 to a linear address

@@ 0AA7

@@ 8C43 ~

@@ 06A1

@@ 883D

^^ The maximum addressable memory in protected mode is

@@ 4KB

@@ 32 bits

@@ 64KB

@@ 4GB ~

@@ 8 bits

^^ Running in protected mode allows which of the following

@@ Accessing any area of memory


@@ Calling BIOS Functions

@@ Multitasking ~

@@ MS-DOS Support

@@ None of these

^^What memory model do MASM programs use

@@ stdcall

@@ irvine32

@@ flat ~

@@ .386

@@ None of these

^^In protected mode, what does CS point to

@@ Descriptor table ~

@@ Code segment

@@ Code Label

@@ Code sample

@@ None of these

^^ Paging is supported directly by

@@ RAM

@@ Hard disk

@@ ROM

@@ MASM

@@ None of these ~

^^ The OS Utility that handles loading and unloading of pages

@@ Virtual Memory Manager ~

@@ Scheduler

@@ Control Unit

@@ Control bus
@@ None of these

^^A page fault is issued when a page needs to be

@@ Copied from register

@@ Copied from cache

@@ Copied from disk~

@@ Copied from data segment

@@ None of these

^^All of the following can be found on a motherboard except

@@ BIOS Chips

@@ Speaker

@@ Main memory slots

@@ Expansion Buses

@@ All are components of a motherboard~

^^Raster scanning is a technology for video output, which of the following makes use of it

@@ AGP

@@ LCD Monitors

@@ Video Controller

@@ CPU

@@ None of these~

^^Cache memory is implemented using which of the following

@@ DRAM

@@ SRAM ~

@@ VRAM

@@ Registers

@@ None of these

^^Enumeration is used by a _________ to ascertain device type

@@ PCI Controller
@@ IDE Controller

@@ AGP

@@ RAM

@@ None of these ~

^^Parallel ports are characterized by ____________ and ____________

@@ Long cable, high speed

@@ Single direction, low speed

@@ Both directions, high speed ~

@@ Short Cable, Low speed

@@ None of these

^^Serial ports transfer data ___________ at a time across _____________

@@ 1 byte, short cables

@@ 1 byte, long cables

@@ 1 bit, short cables

@@ 1 bit, long cables ~

@@ None of these

^^ATA Host adapter provides an interface to which of the following

@@ Registers

@@ RAM

@@ Video device

@@ CPU

@@ None of these ~

^^Assembly language can perform I/O on which of the following levels

@@ Library

@@ OS Functions

@@ BIOS Functions

@@ Hardware
@@ All of these ~

^^If the radix of an integer constant is omitted, which radix is used

@@hexadecimal

@@decimal~

@@octal

@@binary

@@real

^^This course uses the _______________ instruction set

@@ 64 bits

@@ Intel IA-64

@@ x86-64

@@ 32 bits

@@ None of these~

^^The first character of an identifier needs to be___________

@@ a letter

@@ _ (underscore)

@@ ?

@@ $ (dollar sign)

@@ None of these

@@ Any of these ~

^^________Commands that are recognized by the assembler, but not part of the Intel
instruction set

@@Directives~

@@Mnemonics

@@Operators

@@Type attributes

@@None of these
^^Which of the following is required in a valid instruction

@@Label

@@Comment

@@Mnemonic~

@@Registers

@@None of these

^^Labels mark the _________ address of code or data

@@Linear

@@Segment

@@Page

@@Disk

@@None of these~

^^A label identifier followed by a colon (:) indicates

@@Data Label

@@Segment Label

@@Stack Label

@@Code Label~

@@None of these

^^Which of the following are instruction mnemonics

@@ADD

@@MUL

@@DEC

@@All are mnemonics~

@@None of these are mnemonics

^^Which of the following can be used as instruction operands

@@Memory
@@Code Label

@@Immediate Values

@@All of these~

@@None of these

^^Comments are used to explain tricky coding techniques. Single line comments begin with
what character

@@&

@@:

@@;~

@@$

@@None of these

^^add eax, 3*5 is an example of a ____________, _______________ instruction format

@@ Register, integer constant expression~

@@ Register, integer constant

@@ Memory, integer constant

@@ Memory, integer constant expression

@@ None of these

^^How many operands does the ‘stc’ instruction accept

@@0~

@@1

@@2

@@3

@@4

^^TITLE is an example of a ___________

@@ Masm instruction

@@ MASM Comment

@@ MASM Directive~
@@ MASM Label

@@ None of these

^^ENDP marks the end of a___________

@@Procedure~

@@Main

@@Program

@@Code Segment

@@None of these

^^A call to DumpRegs displays the contents of __________ and ___________

@@Memory, Registers

@@Flags, Memory

@@Registers, Variable

@@Registers, Flags~

@@None of these

^^The MODEL is a(n) ________ that defines __________

@@Directive, Memory segmentation~

@@Instruction, memory segmentation

@@Directive, stdcall

@@ Instruction, stdcall

@@ None of these

^^The procedure for terminating a program is called __________ and it takes __________
parameter(s)

@@exist, zero

@@ExitProcess, zero

@@exit, one

@@ ExitProcess, one~

@@None of these
^^The instruction for subtraction in assembly is

@@ +

@@ -

@@ *

@@ /

@@ None of these~

^^The assembler assembles a source file into a(n)

@@Object file~

@@Map file

@@Listing file

@@Executable file

@@Link Library file

^^The contents of a(n)__________file are assembly instruction mnemonics translated to


machine code

@@Object file

@@Map file

@@Listing file~

@@Link Library file

@@None of these

^^Information about segment addresses for assembly programs are found in what file

@@Object file

@@Map file~

@@Listing file

@@Link library file

@@None of these

^^SBYTE is a(n) _________ that defines a(n) ___________ integer

@@ instruction, 8 bit signed


@@ directive, 8 bit signed ~

@@ instruction, 7 bit signed

@@ directive, 7 bit signed

@@ None of these

^^Which of the following is required in a data definition statement

@@ Label

@@ Offset

@@ Data type

@@ Size

@@ None of these~

^^Choose the appropriate option to make the following valid: value1 SBYTE
______________

@@ -200

@@ 128

@@ ?~

@@ None of these

^^How many bits long is list3 in the following definition: list3 BYTE ?,32, 5
DUP(0),41h,00100010b

@@Code is invalid

@@64

@@40

@@72~

@@None of these

^^Each ASCII Character is stored using how many bits

@@4

@@6

@@8~

@@10
@@32

^^The smallest value that can be stored in a signed double word is

@@0

@@-4294967296

@@-2147483647

@@-2147483648~

@@-4294967295

^^Using little endian order, the ________ byte occupies the __________memory address

@@ most significant, last~

@@least significant, last

@@ most significant, first

@@ None of these

^^What is var1 called in the following: var1=10

@@Variable

@@Register

@@Integer

@@Symbolic constant~

@@None of these

^^What will be the value of var2 in the following:

Var1 word 1,5,3,6,7

Var2 = $ - var1

@@5

@@10~

@@0

@@Error in code

^^complete the following: var1 ______ <2.234>

@@Byte
@@Word

@@Dword

@@Real

@@None of these~

^^Complete the following: var1 _______ %(22/7)

@@textequ~

@@byteequ

@@textbyte

@@integerequ

@@Error in code

^^One of the following is an operand type in assembly language

@immediate

@Register

@memory

@All of the above~

^^One of the following is a destination for MOV instruction

@ Code Segment

@Instruction Pointer

@Extended instruction pointer

@ All of the above.

^^ Study the given program, will it run?


movzx ax,myBytes
mov bl,[myBytes+1]
add ax,bx
mov bl,[myBytes+2]
@ True
@ False~

^^ What is the value of the destination operand after each of the following instructions
executes:
.data
myByte BYTE 0FFh, 0
.code
mov al,myByte ; AL =
@FEFF
@00h
@ FFh~
@None

You might also like