Академический Документы
Профессиональный Документы
Культура Документы
a)LPC
b)TDMI
c)IDE
d)ISP
e)ARM
f)CPSR & SPSR
g)RISC
10. The additional duplicate register used in ARM machines are called as
_______ .
a) Copied-registers
b) Banked registers
c) EXtra registers
d) Extential registers
View Answer
14. The addressing mode where the EA of the operand is the contents of Rn is
______ .
a) Pre-indexed mode
b) Pre-indexed with write back mode
c) Post-indexed mode
d) None of the above
View Answer
2. The instructions which are used to load or store multiple operands are called
as _____ .
a) Banked instructions
b) Lump transfer instructions
c) Block transfer instructions
d) DMA instructions
View Answer
3. The Instruction, LDM R10!,{R0,R1,R6,R7} ______ .
a) Loads the contents of R10 into R1,R0,R6 and R7
b) Creates a copy of the contents of R10 in the other registers except the above
mentioned ones
c) Loads the contents of the registers R1,R0,R6 and R7 to R10
d) Writes the contents of R10 into the above mentioned registers and clears R10
View Answer
5. The ability to shift or rotate in the same instruction along with other operation is
performed with the help of _________ .
a) Switching circuit
b) Barrel switcher circuit
c) Integrated Switching circuit
d) Multiplexer circuit
View Answer
9. The condition to check whether the branch should happen or not is given by,
a) The lower order 8 bits of the instruction
b) The higher order 4 bits of the instruction
c) The lower order 4 bits of the instruction
d) The higher order 8 bits of the instruction
View Answer
10. Which of the two instructions sets the condition flag upon execution ?
i) ADDS R0,R1,R2
ii) ADD R0,R1,R2
a) i
b) ii
c) Both i and ii
d) Insufficient data
View Answer
11. ____ directive is used indicate the beginning of the program instruction or
data .
a) EQU
b) START
c) AREA
d) SPACE
View Answer
14. _____ directive is used to name the register used for execution of an
instruction .
a) ASSIGN
b) RN
c) NAME
d) DECLARE
View Answer
15. THe pseudo instruction used to load address into the register is ______ .
a) LOAD
b) ADR
c) ASSIGN
d) PSLOAD
View Answer
http://www.sanfoundry.com/computer-organization-mcqs-cisc-risc-processors/
This set of Computer Organisation and Architecture MCQs focuses on “CISC And RISC Processors
“.
1. The CISC stands for
a) Computer Instruction Set Compliment
b) Complete Instruction Set Compliment
c) Computer Indexed Set Components
d) Complex Instruction set computer
View Answer
Answer:b
Explanation: <numeric> The RISC stands for Reduced Instruction Set Computer.
3. The Sun micro systems processors usually follow _____ architecture.
a) CISC
b) ISA
c) ULTRA SPARC
d) RISC
View Answer
Answer:b
Explanation: <numeric> The RISC processor design is more simpler than CISC and it consists of
fewer transistors.
5. The iconic feature of the RISC machine among the following are
a) Reduced number of addressing modes
b) Increased memory size
c) Having a branch delay slot
d) All of the above
View Answer
6. Both the CISC and RISC architectures have been developed to reduce the
______.
a) Cost
b) Time delay
c) Semantic gap
d) All of the above
View Answer
Answer:a
Explanation: Each data is made up of a number units.
2. The collection of the above mentioned entities where data is stored is called as
______ .
a) Block
B) Set
c) Word
d) Byte
View Answer
4. If a system is 64 bit machine , then the length of each word will be ____ .
a) 4 bytes
b) 8 bytes
c) 16 bytes
d) 12 bytes
View Answer
6. When using the Big Endian assignment to store a number, the sign bit of the
number is stored in _____ .
a) The higher order byte of the word
b) The lower order byte of the word
c) Can’t say
d) None of the above
View Answer
7. To get the physical address from the logical address generated by CPU we
use ____ .
a) MAR
b) MMU
c) Overlays
d) TLB
View Answer
9. During transfer of data between the processor and memory we use ______ .
a) Cache
b) TLB
C) Buffers
d) Registers
View Answer
10. Physical memory is divided into sets of finite size called as ______ .
a) Frames
b) Pages
c) Blocks
d) Vectors
View Answer
1. Add #%01011101,R1 , when this instruction is executed then,
a) The binary addition between the operands takes place
b) The Numerical value represented by the binary value is added to the value of
R1
c) The addition doesn’t take place , whereas this is similar to a MOV instruction
d) None of the above
View Answer
3. When generating physical addresses from logical address the offset is stored
in _____ .
a) Translation look-aside buffer
b) Relocation register
c) Page table
d) Shift register
View Answer
4. The technique used to store programs larger than the memory is ______ .
a) Overlays
b) Extension registers
c) Buffers
d) Both b and c
View Answer
5. The unit which acts as an intermediate agent between memory and backing
store to reduce process time is _____ .
a) TLB’s
b) Registers
c) Page tables
d) Cache
View Answer
Answer:d
Explanation: None.
8. The BOOT sector files of the system are stored in _____ .
a) Harddisk
b) ROM
c) RAM
d) Fast solid state chips in the motherboard
View Answer
Answer:b
Explanation: The files which are required for the starting up of a system are stored on the ROM.
9. The transfer of large chunks of data with the involvement of the processor is
done by _______ .
a) DMA controller
b) Arbitrator
c) User system programs
d) None of the above
View Answer
10. Which of the following technique/s used to effectively utilize main memory ?
a) Address binding
b) Dynamic linking
c) Dynamic loading
d) Both b and c
View Answer
4. Instructions which wont appear in the object program are called as _____ .
a) Redundant instructions
b) Exceptions
c) Comments
d) Assembler Directives
View Answer
5. The assembler directive EQU, when used in the instruction : Sum EQU 200
does,
a) Finds the first occurrence of Sum and assigns value 200 to it
b) Replaces every occurrence of Sum with 200
c) Re-assigns the address of Sum by adding 200 to its original address
d) Assigns 200 bytes of memory starting the location of Sum
View Answer
c) Dataword
d) EQU
View Answer
8. _____ directive is used to specify and assign the memory required for the
block of code .
a) Allocate
b) Assign
c) Set
d) Reserve
View Answer
12. The assembler stores all the names and their corresponding values in
______ .
a) Special purpose Register
b) Symbol Table
c) Value map Set
d) None of the above
View Answer
14. The utility program used to bring the object code into memory for execution is
______.
a) Loader
b) Fetcher
c) Extractor
d) Linker
View Answer
15. To overcome the problems of the assembler in dealing with branching code
we use _____ .
a) Interpreter
b) Debugger
c) Op-Assembler
d) Two-pass assembler
View Answer
Answer:d
Explanation: The USB has two rates of operation the low-speed and the full-speed one.
2. THe high speed mode of operation of the USB was introduced by _____.
a) ISA
b) USB 3.0
c) USB 2.0
d) ANSI
View Answer
Answer:c
Explanation: The high-speed mode of operation was introduced with USB 2.0,which enabled the
USB to operatte at 480 Mb/s.
3. The sampling process in speaker output is a ________ process.
a) Asynchronous
b) Synchronous
c) Isochronous
d) None of the above
View Answer
Answer:c
Explanation: The isochronous process means each bit of data is seperated by a time interval.
4. The USB device follows _______ structure.
a) List
b) Huffmann
c) Hash
d) Tree
View Answer
Answer:d
Explanation: The USB has a tree structure with the root hub at the centre.
5. The I/O devices form the _____ of the tree structure.
a) Leaves
b) Subordinate roots
c) Left sub trees
d) Right sub trees
View Answer
Answer:a
Explanation: The I/o devices form the leaves of the structure.
6. USB is a parallel mode of transmission of data and this enables for the fast
speeds of data transfers.
a) True
b) False
View Answer
Answer:b
Explanation: The USB does a serial mode of data transfer.
7. In USB the devices can communicate with each other.
a) True
b) False
View Answer
Answer:b
Explanation: It allows only the host to communicate with the devices and not between themselves.
8. The device can send a message to the host by taking part in _____ for the
communication path.
a) Arbitration
b) Polling
c) Prioritising
d) None of the above
View Answer
Answer:b
Explanation: None.
9. When the USB is connected to a system, its root hub is connected to the
________.
a) PCI BUS
b) SCSI BUS
c) Processor BUS
d) IDE
View Answer
Answer:c
Explanation: The USB’s root is connected to the processor directly using the BUS.
10. The devices connected to USB is assigned an ____ adrress.
a) 9 bit
b) 16 bit
c) 4 bit
d) 7 bit
View Answer
Answer:d
Explanation: To make it easier for recognition the devices are given 7 bit addresses.
11. The USB address space can be shared by the user’s memory space.
a) True
b) False
View Answer
Answer:b
Explanation: The USB memory space is not under any address sapces and cannot be accessed.
12. The initial address of a device just connected to the HUB is ____ .
a) AHFG890
b) 0000000
c) FFFFFFF
d) 0101010
View Answer
Answer:b
Explanation: By standard the usual address of a new device is zero.
13. Locations in the device to or from which data transfers can take place is
called ____.
a) End points
b) Hosts
c) Source
d) None of the above
View Answer
Answer:a
Explanation: None.
14. A USB pipe is a ______ channel.
a) Simplex
b) Half-Duplex
c) Full-Duplex
d) Both a and c
View Answer
Answer:c
Explanation: This means that the pipe is bi-directional in sending messages or information.
15. The type/s of packets sent by the USB is/are _______.
a) Data
b) Address
c) Control
d) Both a and c
View Answer
Answer:d
Explanation: This means that the usb gets both data and control signlas required for the transfer
operation.
This set of Computer Organisation and Architecture MCQ focuses on “USB”.
1. The first feild of any packet is _____.
a) PID
b) ADDR
c) ENDP
d) CRC16
View Answer
4. The CRC bits are computed based on the values of the _____.
a) PID
b) ADDR
c) ENDP
d) Both b and c
View Answer
Answer:c
Explanation: <numeric> The compilers which are designed to remove redundant parts of the code
are called as optimizing compilers.
2. The pipelining process is also called as ______.
a) Superscalar operation
b) Assembly line operation
c) Von neumann cycle
d) None of the mentioned
View Answer
Answer:b
Explanation: <numeric> It is called so because it performs its operation at assembly level.
3. The fetch and execution cycles are interleaved with the help of ________.
a) Modification in processor architecture
b) Clock
c) Special unit
d) Control unit
View Answer
Answer:b
Explanation: <numeric> The time cycle of the clock is adjusted to perform the interleaving.
4. Each stage in pipelining should be completed within ____ cycle.
a) 1
b) 2
c) 3
d) 4
View Answer
Answer:a
Explanation: <numeric> The stages in the pipelining should get completed within one cycle to
increase the speed of performance.
5.In pipelining the task which requires the least time is performed first.
a) True
b) False
View Answer
6. If a unit completes its task before the allotted time period, then
a) It’ll perform some other task in the remaining time
b) Its time gets reallocated to different task
c) It’ll remain idle for the remaining time
d) None of the mentioned
View Answer
10. The situation where in the data of operands are not available is called
______.
a) Data hazard
b) Stock
c) Deadlock
d) Structural hazard
View Answer
1)There are ____pins available for EINT3 in LPC2148. a)3 b)2 c)Only 1 d)4
2)There are ____GPIO pins in LPC2148. a)64 b)61 c)45 d)46
3)ADC module 0 in LPC2148 has ____i/ps channles. a)2 b)6 c)8 d)none of above
4)There are ____Capture modules in LPC2148. a)2 b)3 c)4 d)5
5)There are _____submodules in each Capture module. a)4 b)2 c)5 d)3
1)There are ____pins available for EINT2in LPC2148. a)3 b)2 c)Only 1 d)4
2)There are _____32bits timer in LPC2148 . a)2 b)3 c)4 d)5
3)ADC module 1 in LPC2148 has ____i/ps channels. a)2 b)6 c)8 d)none of above
4)There are ____Compare modules in LPC2148. a)2 b)3 c)4 d)5
5)There are _____PWM modules in LPC2148. a)4 b)2 c)6 d)3
3) In LCD, which hex command performs the function of 'Display on, cursor on and blinking'?
a. 0x0A
b. 0x0C
c. 0x0E
d. 0x0F
Answer Explanation
5) For the supplied data, which edge level is necessary for LCD in order to latch the data?
a. High-to-Low
b. Low-to-High
c. High-to-High
d. Low-to-Low
Answer Explanation
6) In LCD, which pin/s is/are used to latch the data into the data register or command register?
a. RS pin
b. R/W
c. E
d. All of the above
Answer Explanation
a. 1 to 8 characters
b. 8 to 80 characters
c. 100 to 150 characters
d. 250 to 400 characters
Answer Explanation
8) In LPC 2148, which among the following is/are the functions of Mask register?
a. Byte addressability
b. Relocation to ARM local bus for fastest posible I/O timing
c. Treating sets of port bits in the form of group without changing other bits
d. All of the above
Answer Explanation
9) In DAC 0808, what is the high speed multiplying input slew rate?
a. 2 mA/μ sec
b. 4 mA/μ sec
c. 8 mA/μ sec
d. 16 mA/μ sec
Answer Explanation
10) In DAC 0808, which among the following is configured as a reference in addition to R-2R ladde
and current switches?
a. Voltage amplifier
b. Current amplifier
c. Transconductance amplifier
d. Transresistance amplifier
Fundamentals of Programming
Address
ASCII
ALGOL
2. _____ contains the addresses of all the records according to the contents of the field designed as the
record key.
Index<------ans
Subscript
Array
File
Oval
Parallelogram<------ans
Rectangle
Diamond
Protocol
PROLOG
Pseudocode
5. Machine language has two part format the first part is__________ and the second part is __________
OPCODE,OPERAND<------ans
OPERAND,OPCODE
DATA CODE,OPERAND
OPERAND,CODEOP
C++
JAVA;------ans
FORTRAN
7. _________ is a point at which the debugger stops during program execution and awaits a further
command.
Memory Dump
Watch point<------ans
Break point
8. ________do not contain any program logic and are ignored by the language Processor
Protocol
Virus
Comment
Memory Requirement
Accuracy of solution
Effective Analysis
Efficient Coding
Time consuming
Programming in C
12. The Real constants in C can be expressed in which of the following forms
13. The program, which translates high-level program into its equivalent machine language program, is
called
Transformer
Language processor
Converter
None of these options<------ans<!--[if !supportEmptyParas]-->
14. Consider the following statements. i.Multiplication associates left to right ii.Division associates left to
right
unsigned char a;
a = 0xFF + 1;
printf("%d", a);
0xFF
0x100
0 <------ans
0x0
#include <stdio.h>
void main()
printf("\n10!=9 : %5d",10!=9);
}
1<------ans
Error
17. #include<stdio.h>
void main()
int x=10;
printf(" %d",a);
Error<------ans
1000
100
18. Which of the following shows the correct hierarchy of arithmetic operations in C
(), **, * or /, + or -
(), **, *, /, +, -
(), **, /, *, +, -
(), / or *, - or + <-----Ans
void main()
int a=14;
a += 7;
a -= 5;
a *= 7;
printf("\n%d",a);
112<------ans
98
89
#define T t
void main()
char T = `T`;
printf("\n%c\t%c\n",T,t);
Error
Tt
TT
tt
21. The statement that prints out the character set from A-Z, is
printf("%c", &a);
printf("%c", &a);
printf("%c", a);
22. The statement which prints out the values 1 to 10 on separate lines, is
Passing a copy of a variable into a function. Passing a pointer to a variable into a function. <------ans
int a = 10,b=20;
swap (a++,b++);
printf("\n%d\t%d\t",a, b);
x+=2;
y+=3;
14, 24
11, 21 <------ans
10, 20
Error
#include<stdio.h>
a++;
a[1]=612;
main()
{
char a[5];
abc(a);
printf("%d",a[4]);
100
612
Error<------ans
ii. it occurs when a function calls another function more than once
iii. it occurs when a statement within the function calls the function itself
i and iii<------ans
i and ii
ii and iv
i, iii and iv
27.What will happen if you assign a value to an element of an array whose subscript exceeds the size of the
array?
void main()
16 <------ans
11
Error
29. If int s[5] is a one dimensional array of integers, which of the following refers to the third element in the
array?
*( s + 2 ) <------ans
*( s + 3 )
s+3
s+2
30. #include"stdio.h"
main()
int *p1,i=25;
void *p2;
p1=&i;
p2=&i;
p1=p2;
p2=p1;
printf("%d",i);
25
Garbage value
Address of I
p = &j;
printf("%d",*p);
100
200 <------ans
300
int i=3;
int *j=&i;
clrscr();
printf("%d%d",++*j,*(&i));
33
4 3 <------ans
4,address of i printed
Error:Lvalue required
void main()
printf("\n %d\t%d\t",*ptr++,*ptr);
10 20
10 10<------ans
20 20
20 10
34. Which of these are reasons for using pointers?
3.To return more than one value from a function 4.To refer to particular programs more conveniently
1 & 3 <------ans
Only 1
Only 3
int no;
char name[25];
};
void main()
printf("%d%d" ,n1[2].no,(*&n1+2)->no+1);
88
8 9 <------ans
98
8 , unpredictable
Only a
Only b
Both a and b
Neither a nor b
True
False
Compiler dependent
41. What is time required to insert an element in a stack with linked implementation?
(1)
(log2n)<------ans
(n)
(n log2n)
(1)
(n)
(log n)<------ans
None of these options
Front=rear-1
Front=rear+1
Front=rear<------ans
#include <stdio.h>
main()
printf("\n%c", "abcdefgh"[4]);
abcdefgh
e <------ans
error
47. Select the correct C code which will read a line of characters(terminated by a \n) from input_file into a
character array called buffer. NULL terminate the buffer upon reading a \n.
int ch, loop = 0; ch = fgetc( input_file ); while( (ch != `\n`)&& (ch != EOF) ){buffer[loop] = ch; loop++; ch =
fgetc(input_file );} buffer[loop] = NULL;
int ch, loop = 0; ch = fgetc( input_file ); while( (ch = "\n")&& (ch = EOF)) { buffer[loop] = ch; loop--; ch =
fgetc(]input_file ); } buffer[loop]= NULL;
int ch, loop = 0; ch = fgetc( input_file ); while( (ch <> "\n")&& (ch != EOF) ) { buffer[loop] = ch; loop++; ch =
fgetc(input_file ); } buffer[loop] = -1;
void main()
int a=0;
int b=0;
printf("\n%d,%d",a,b);
0, 1
1, 1 <------ans
0, 0
1, 0
49. What is the output of the following program? #define str(x)#x
#define Xstr(x)str(x)
void main()
char *opername=Xstr(oper);
printf("%s",opername);
opername
Xstr
multiply <------ans
Xstr
#include<string.h>
void main()
C-DAC ACTS
ACTS
C-DAC <------ans
None of these
51. #include<stdio.h>
void main()
while (1)
{if (printf("%d",printf("%d")))
break;
else
continue;
The output is
52. Select the correct C statements which tests to see if input_file has opened the data file successfully.If not,
print an error message and exit the program.
int i = 7;
prints 49
prints 56 <------ans
is compiler dependent
Linear list
Queue
Tree
Stack<------ans
3. To return more than one value from a function 4. To refer to particular programs more conveniently
1 & 3<------ans
only 1
only 3
main()
Linker error
void main()
int arr[]={0,1,2,3,4,5,6};
int i,*ptr;
Error
65432
0 garbage garbage garbage garbage
4 3 2 1 0 <------ans
59. Which of the following is the correct way of declaring a float pointer:
float ptr;
*float ptr;
60.If the following program (newprog) is run from the command line as:newprog 1 2 3 What would be the
output of the following?
int I,j=0;
for (I=0;I<argc;I++)
j=j + atoi(argv[I]);
printf("%d",j);
123
123
Compilation error<------ans