stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
MCA Quiz Flashcards | StudBud
Explore
/
MCA Quiz
MCA Quiz
48 terms
·
StudBud Administration
·
179 plays
Imported from external platform
Flashcards
48 cards
F
Practice quiz
P
Host live
L
Questions
48
Answers
1
What is the error in the statement “for{a=0;a<=5;a++}”?
Empty choice
;
++
{ …. }
2
What is a microcontroller-based system?
D) It is a system that contains only a microcontroller chip.
A) It is a microcontroller resting at the base of an intelligent system.
B) contains a uC with its related I/O external circuits connected.
C)System works independently of a uC, depends only on connected I/O devices
3
State one merit of Black Box Testing technique.
C) It requires skills in programming and knowledge in product design.
B) It needs little time to test.
A) It can identify the location or area of the fault.
D) It needs a lot of documents to understand and develop the test plan.
4
Which of the flow chart symbol is used for the statement “Is num > 6?”.
B) Decision.
C) Process.
A) Terminal.
D) Input/Output
5
Which of the following error is generated by spelling mistakes in the text of the instruction?
D) Compilation error.
A) Syntax error.
B) Logical error.
C) Linking error.
6
What is the key advantage of a “while” loop compared to the “if-else” condition check?
C) It is able to response faster to a change in input condition.
A) It can make the overall program runs at a shorter time.
B) It is simpler to write the task as there is no “else” operation.
D) It is simpler to debug.
7
Which type(s) of error/s is/are usually revealed during the testing phase of the application?
D) Syntax and logical errors.
A) Logical errors only.
C) Syntax and human errors.
B) Syntax errors only.
8
Which type of the following microcontroller memories loose its data when powered off?
C) EEPROM.
B) Static RAM (Random access memory)
D) None of the above
A) Flash Memory
9
Which of the following bus of a 16-bit microcontroller is of 16 bits wide?
B) Data bus.
C) Control bus.
A) Core bus.
D) Address bus.
10
What is the purpose of a relation operator?
D) compares 2 data in decision making process to determine outcome.
A) It modifies raw data to suit certain requirements.
B) It is to perform a logical operation in a mathematical expression.
C) It is used to decide a logic at an outcome of a decision making process.
11
Internal and external circuits exchange data at which element of a microcontroller-based system
A) Input / Output port.
C) Controller unit.
B) Memories.
D) Software.
12
State the meaning of “flow control” in a program.
B) ontrol of flow to next instruction before decision-making process.
D) control of flow to the next instruction after decision-making process.
C) It is a control of the flow to the next task before a function call.
A) It is a control of the flow to the next program after a function call.
13
Which of the following device uses Analogue data?
B) LED
C) Buzzer
A) Amplifier
D) Computer Receiver port
14
Which of the following test plan can be define by just looking at the operation manual?
B) Black box testing.
D) Out of box testing.
A) Grey box testing.
C) White box testing.
15
Name the flow chart symbol of a rectangle.
C) Terminal.
B) Decision.
A) Process.
D) Input/Output.
16
Which of the following testing technique checks for mismatch between software and hardware.
A) Grey box testing.
C) White box testing.
B) Black box testing.
D) Out of box testing.
17
A sub-routine or function is a block of instructions that
B) Interrupts and stops the execution of the main program.
C) Repeats itself many times until the calling condition fails.
D) Performs a task and can be called by the main program many times.
A) Performs the task by an external circuit.
18
Select the instruction that checks both sw1 and sw2 at PORTD is at logic “0”.
B) if (sw1 = 0) & (sw2 = 0) { … ;}
D) if {(sw1 == 0) && (sw2 == 0)} { ….. ;}
A) if (sw1 & sw2 == 0) { …..;}
C) if ((sw1 == 0) && (sw2 == 0)) { ….. ;}
19
Which of the following statement assigns an 8-bit data to a variable “count”?
C) count = 0x8000
B) char count
A) int count
D) char count = 0b00001111
20
State the function of the controller unit of a microcontroller.
C) It is the element that gives intelligence to the system.
B) It saves the circuit board space.
A) It eases the software writing.
D) does the computing of input data and timing control for i/o data flow.
21
Which is an arithmetic statement to decrease a number by 2?
B) number = number % 2;
D) number - -;
A) number = number * 2;
C) number - = 2;
22
Which I/O device below requires an output configuration statement.
D) Temperature sensor.
A) Switch.
C) Keypad.
B) Motor.
23
The reason for selecting the types of signal to be handled by the microcontroller is because
B) software programming decides types of signals for proper operations.
D) software programming can simplify the types of signals.
C) the types of signals can simplify software programming.
A) the types of signals decide the software programming for the system.
24
The data 0XFE resets which pin of an output port to logic “0”?
A) 0
C) 2
B) 1
D) 3
25
Identify the flow chart symbol indicated.
A) Process.
B) Terminal.
C) Input / Output.
D) Pre-defined process.
26
Which of the following is to replace a text string or expression with a user-recognized name?
C) Operation
B) Definition
D) Comment
A) Directive
27
Which of the following describe an “array”?
D) It controls the number of times other program can call it.
B) It allows easy tracking of value in a variable.
C) It allows easy branching to another function.
A) It uses index number.
28
If a variable phi is defined as 1.618, which is the definition instruction for it?
D) #define phi = 1.618
C) #define phi 1.618
A) #include phi 1.618
B) #include phi = 1.618
29
What is meant by "on-chip peripheral"?
B) It means the peripheral can be used to replace a microcontroller chip.
C) It means peripheral that is constructed on a semiconductor material
D) It means the external peripheral can be placed on the uC chip.
A) It means that the external peripheral can be plugged into the uC system.
30
Select the one statement below that best describe the “Function” modular algorithm.
B)It can be called many times by any other algorithms.
A)It is a must for any program algorithm.
D) Function algorithm can only be used for computing operation.
C)It does dedicated task once in the overall program algorithm.
31
State the purpose of a Pre-defined process symbol in a flow chart.
D) It indicates a calculation task.
B) indicates a process prepared before main execution and for sub-routines
C) It indicates decision-making task.
A) It indicates the task(s) that do not lead to an I/O instruction.
32
Why is a microcontroller able to control external devices?
C)Memory module plugged into it to give it intelligence to control devices.
A)Software program downloaded gives it the intelligence to control devices.
B) The good hardware design enables it to control the external devices.
D) It has intelligent external devices telling it what to do.
33
Which of the following is NOT a benefit of a flow chart during the program development?
A) Locate responsibility of a task or process
C) It helps find fault, bottlenecks, and less obvious features
B) It helps to limit the number of instructions used.
D) It helps to decide the next path of the program execution.
34
What kind of operation is the operator && performing?
D) Logical AND.
B) Logical OR.
A) Bitwise OR.
C) Bitwise AND.
35
Which of the following is NOT a selection factor for choosing a microcontroller?
A) Memory size.
C) External oscillator.
B) Package type.
D) On-chip peripherals.
36
What is a “Source Code”?
D) The objective of the code that is developed for a uC-based system.
C) The code that is translated from a source code by a compiler.
A) A text of a program entered on text editor.
B) The code to be downloaded into the microcontroller.
37
Which of the following testing technique(s) is/are non-invasive?
B) Black & Grey.
C) Black only.
D) White only.
A) Grey only.
38
The term that refers to the creation of instructions from the flow chart (or algorithm) is
B) Compiling
C) Linking
D) Building
A) Coding
39
How many decision flow control is required in a sequential flow operation?
D) Three.
B) One.
C) Two.
A) None.
40
Why is the sequence of input entries to a uC-based system important to the outcome?
C) It is because the uC will not be able to understand the logic.
A) It is because the microcontroller will corrupt the system.
B) It is because the uC will not be able to read in the new input entries
D)because the uC has been programmed for certain sequences of input entries
41
What is (are) the benefit(s) of optimizing a program?
B) It converts the program into a straight-forward sequential form.
C) It makes the product easier to use.
A) saves memory space and takes shorter time to run certain operations.
D) It compresses the program into a shorter list after compiling.
42
Which of the following is a relational operator?
B) >>
C) ^
A) !=
D) &&
43
What is meant by "on-chip peripheral"?
C)It means peripheral that is constructed on a semiconductor material
A) It means that the external peripheral can be plugged into the uC system.
B)It means the peripheral can be used to replaced a uC chip.
D) It means the external peripheral can be placed on the uC chip.
44
What is a microcontroller?
D)Single semiconductor IC acting as a scaled-down computer.
A) It is a small software to control many sub-systems.
C)Small controller passive module to be plugged into a bigger system.
B)Electronic circuit containing basic resistors and capacitors only.
45
Which of the following operation loops endlessly and processes the statements within its body?
C) if - else if.
B) if – else.
D) while loop.
A) for loop.
46
Which of the algorithm type deals with the conversion and conditioning of input signals?
D) Main
A) Computing
C) Function
B) Processing
47
Which of the following statement is a hexadecimal data assignment?
A) counter += 1
C) counter = 0xB5
D) counter = 0b01011010
B) counter = 23
48
Which block inside the MCU serves the same purpose as any external circuits of the same usage?
D) On-chip peripherals.
C) Controller Unit.
A) I/O Port.
B) Memories.