1.
Types of microcontroller memory which is slower to access.
Correct Answer
C. Off- Chip
Explanation
Off-Chip memory refers to the memory that is located outside the microcontroller chip. This type of memory is typically slower to access compared to on-chip memory because it involves communication with external devices, such as RAM or Flash memory. Accessing off-chip memory requires additional time for data transfer and retrieval, which can result in slower overall performance. In contrast, on-chip memory is located within the microcontroller chip itself, allowing for faster access speeds.
2.
•It is a small computer on a single chipcontaining a processor, memory, and input/output
Correct Answer
B. Microcontroller
Explanation
A microcontroller is a small computer on a single chip that contains a processor, memory, and input/output capabilities. Unlike a personal computer, which is a larger and more complex device, a microcontroller is designed for specific tasks and is often used in embedded systems. It is capable of executing a set of instructions and controlling various electronic devices or systems. Therefore, the given correct answer is "Microcontroller".
3.
•It is a program you write to run on an Arduino Board
Correct Answer
A. Digital
Explanation
The correct answer is "Digital" because it is referring to a program that is written to run on an Arduino Board. The term "Digital" is commonly used in the context of programming for Arduino Boards, as these boards are designed to work with digital inputs and outputs. Therefore, a program written for an Arduino Board would be considered a digital program.
4.
Types of microcontroller memory which is fast, easy to access
Correct Answer
A. On-chip
Explanation
On-chip memory refers to the type of microcontroller memory that is integrated directly onto the microcontroller chip itself. This means that it is physically located on the same chip as the microcontroller's processor, making it fast and easy to access. On-chip memory allows for quick data retrieval and processing, reducing the need for external memory components and improving overall system performance.
5.
•Which of the following code will Sets pin to either INPUT or OUTPUT
Correct Answer
D. PinMode(pin, mode)
Explanation
The correct answer is pinMode(pin, mode). The pinMode() function is used to set a specific pin on the microcontroller as either an input or an output. The "pin" parameter represents the pin number that we want to configure, and the "mode" parameter determines whether the pin should be set as INPUT or OUTPUT. This function is commonly used in Arduino programming to define the behavior of a pin before reading or writing data to it.
6.
In Arduino its value is either HIGH or LOW
Correct Answer
B. Digital
Explanation
The given statement is referring to the value of a variable in Arduino, which can be either HIGH or LOW. In Arduino programming, digital variables are used to represent binary states, where HIGH represents a logical 1 or true, and LOW represents a logical 0 or false. This is commonly used for controlling digital pins, where HIGH can turn on a component or activate a circuit, while LOW can turn it off or deactivate it. Analog values, on the other hand, can have a range of values between two extremes, whereas digital values are limited to just two states.
7.
In Arduino its value will range from 0 -255 .It is use to control LED brightness, motor speed etc.
Correct Answer
C. Analog
8.
•Which of the following code will set Pauses for a few milliseconds
Correct Answer
C. Delay(ms)
Explanation
The correct answer is delay(ms). The delay(ms) function is commonly used in programming to pause the execution of a program for a specified number of milliseconds. This allows for controlling the timing and synchronization of different parts of the program. By using delay(ms), the program will pause for the specified number of milliseconds before continuing with the next line of code.
9.
Which of the following code will Reads HIGH or LOW from a pin
Correct Answer
B. DigitalRead(pin)
Explanation
The correct answer is digitalRead(pin). This function is used to read the value (HIGH or LOW) from a specified pin. The digitalWrite() function is used to write a value (HIGH or LOW) to a pin. The digitalset() function is not a valid Arduino function. The pinMode() function is used to set the mode (INPUT, OUTPUT, or INPUT_PULLUP) of a pin.
10.
•It is a block of code that has a name and a block of statements that are executed when the function is called.
Correct Answer
A. Function
Explanation
A function is a block of code that has a name and a set of statements that are executed when the function is called. It allows for modular programming and code reusability, as functions can be called multiple times from different parts of the program. The name of the function is used to refer to it and call it whenever needed. When the function is called, the statements inside the function's block of code are executed in order.
11.
It defines the beginning and end of function blocks and statement block
Correct Answer
D. None of the choices
Explanation
This question is asking for the statement that defines the beginning and end of function blocks and statement blocks. However, none of the given choices (function, loop, comment) accurately describe this concept. Therefore, the correct answer is "none of the choices."
12.
•It is the symbol used to end the statement in Arduino programming.
Correct Answer
C. Semicolon
Explanation
In Arduino programming, the semicolon is used to end a statement. It indicates the completion of a line of code and separates multiple statements within a program. By placing a semicolon at the end of a statement, it tells the compiler that the current line of code is finished and it can move on to the next line. Without the semicolon, the compiler would interpret the code as incomplete and generate an error. Therefore, the semicolon is crucial in Arduino programming to ensure proper syntax and execution of the program.
13.
This are areas of text in Arduino programming which are ignored by the program and are used for large text descriptions of code
Correct Answer
B. Block comment
Explanation
Block comments are areas of text in Arduino programming that are ignored by the program. They are used for adding large text descriptions of code. Block comments are enclosed within /* and */ symbols and can span multiple lines. They are useful for providing explanations, documenting code, or temporarily disabling a section of code without deleting it.
14.
•It is a variable that can be seen and used by every function and statement in a program
Correct Answer
C. Global variable
Explanation
A global variable is a variable that can be accessed and used by any function or statement within a program. It is not limited to a specific function or scope, making it visible and usable throughout the entire program. This allows for easy sharing of data between different parts of the program.
15.
•A data type of numbers that have a decimal point.
Correct Answer
C. Float
Explanation
A float is a data type that is used to store numbers with decimal points. It is commonly used when precision is not a major concern. Floats typically occupy 4 bytes of memory and have a range of values that they can represent. They are often used in scientific calculations and when dealing with real-world measurements that require decimal accuracy.
16.
Determine if the following function is under microprocessor or Microcontroller. Write (MP – microprocessor) or (MC – microcontroller)Fixed amount of on-chip ROM, RAM, I/O ports
Correct Answer
A. MC
Explanation
The given function is determining whether a fixed amount of on-chip ROM, RAM, and I/O ports is under a microprocessor or a microcontroller. The correct answer is MC, which stands for microcontroller. This is because microcontrollers typically have on-chip memory (ROM and RAM) and I/O ports, whereas microprocessors usually do not have these components integrated on the chip.
17.
•Determine if the following function is under microprocessor or Microcontroller. Write (MP – microprocessor) or (MC – microcontroller)• expensive
Correct Answer
B. MP
Explanation
The given answer is MP (microprocessor) because microprocessors are generally more expensive than microcontrollers. Microprocessors are designed to perform a wide range of tasks and are more powerful, complex, and versatile compared to microcontrollers. They are commonly used in devices that require high processing power, such as computers, smartphones, and gaming consoles. On the other hand, microcontrollers are simpler, less expensive, and typically used in embedded systems and devices that require specific functions with lower processing power, such as household appliances, automotive systems, and industrial machinery.
18.
Determine if the following function is under microprocessor or Microcontroller. Write (MP – microprocessor) or (MC – microcontroller)Low power consumption
Correct Answer
A. MC
Explanation
The given correct answer is MC (microcontroller) because microcontrollers are designed to operate with low power consumption. They are integrated circuits that contain a processor, memory, and input/output peripherals, all on a single chip. Microprocessors, on the other hand, are solely the processing unit of a computer and do not have built-in memory or peripherals.
19.
Determine if the following function is under microprocessor or Microcontroller. Write (MP – microprocessor) or (MC – microcontroller)Typically single-cycle/two-stage pipeline
Correct Answer
A. MC
Explanation
The given correct answer is MC (microcontroller). This is because microcontrollers typically have a single-cycle or two-stage pipeline, which means that they can execute instructions in a single cycle or in two stages. Microprocessors, on the other hand, usually have a more complex pipeline structure with multiple stages. Therefore, based on the information provided, it can be inferred that the function described is more likely to be associated with a microcontroller rather than a microprocessor.
20.
Determine if the following function is under microprocessor or Microcontroller. Write (MP – microprocessor) or (MC – microcontroller)Determine if the following function is under microprocessor or Microcontroller. Write (MP – microprocessor) or (MC – microcontroller)
Correct Answer
B. MP
Explanation
The given answer "MP" indicates that the function is under a microprocessor.
21.
•Determine if the following function is under microprocessor or Microcontroller. Write (MP – microprocessor) or (MC – microcontroller) •general-purpose
Correct Answer
B. MP
Explanation
The correct answer is MP because the question asks whether the function is under a microprocessor or a microcontroller, and the function is determined to be under a microprocessor.
22.
•Determine if the following function is under microprocessor or Microcontroller. Write (MP – microprocessor) or (MC – microcontroller)for applications in which cost, power and space are critical
Correct Answer
A. MC
Explanation
The given answer "MC" indicates that the function is under a microcontroller. In applications where cost, power, and space are critical, microcontrollers are typically preferred over microprocessors. This is because microcontrollers are integrated circuits that combine the functions of a microprocessor, memory, and other peripherals, making them more cost-effective, power-efficient, and compact compared to separate microprocessor-based systems.
23.
Determine if the following function is under microprocessor or Microcontroller. Write (MP – microprocessor) or (MC – microcontroller)•designer can decide on the amount of ROM, RAM and I/O ports.
Correct Answer
B. MP
Explanation
The given function can be determined to be under a microprocessor (MP) because the designer has the ability to decide on the amount of ROM, RAM, and I/O ports. This indicates that the function is more flexible and customizable, which is typically associated with microprocessors rather than microcontrollers.
24.
•Determine if the following function is under microprocessor or Microcontroller. Write (MP – microprocessor) or (MC – microcontroller)•Instruction sets focus on control and bit-level operations
Correct Answer
A. MC
Explanation
The given function is determined to be under microcontroller (MC) because microcontrollers are designed to have a built-in memory and I/O peripherals, making them suitable for control and bit-level operations. Microprocessors, on the other hand, are primarily focused on processing data and do not typically have the same level of integrated peripherals as microcontrollers.
25.
•Determine if the following function is under microprocessor or Microcontroller. Write (MP – microprocessor) or (MC – microcontroller)•Low processing power
Correct Answer
A. MC
Explanation
The given function is determined to be under a microcontroller (MC) because it has low processing power. Microcontrollers are designed to perform specific tasks with low power consumption and limited processing capabilities, making them suitable for applications that do not require high computational power. On the other hand, microprocessors (MP) are more powerful and versatile, capable of handling complex tasks and running multiple applications simultaneously. Therefore, the low processing power requirement indicates that the function is more likely to be implemented on a microcontroller.
26.
X!= y specifies x is greater than Y
Correct Answer
B. False
Explanation
The statement "x!= y specifies x is greater than Y" is false. The "!=" operator is used to check if two values are not equal, not to compare their magnitudes. It does not provide any information about whether x is greater or smaller than y.
27.
Microprocessor, by-itself, completely useless it must have external peripherals toInteract with outside world
Correct Answer
A. True
Explanation
The statement is true because a microprocessor alone cannot perform any meaningful tasks without external peripherals. These peripherals are necessary for the microprocessor to interact with the outside world, such as input devices (keyboard, mouse) and output devices (monitor, printer). The microprocessor processes data and instructions, but it relies on these external peripherals to receive input and display output, making it useless on its own.
28.
Microcontroller put a limited amount of most commonly used resources “inside” the chip
Correct Answer
A. True
Explanation
Microcontrollers are designed to have a limited amount of commonly used resources integrated directly onto the chip itself. This includes components such as a CPU, memory, input/output ports, timers, and sometimes even analog-to-digital converters. By having these resources built-in, microcontrollers are able to perform their intended functions without the need for additional external components. This integration also helps to reduce the size, cost, and complexity of the overall system. Therefore, the statement "Microcontrollers put a limited amount of most commonly used resources 'inside' the chip" is true.
29.
•Integers are the primary datatype for storage for storage of numbers without decimal point
Correct Answer
A. True
Explanation
Integers are whole numbers that do not have decimal points. They are used to store numbers that do not require decimal precision, such as counting or indexing. Integers are a primary datatype in programming languages for efficient storage and manipulation of whole numbers. Therefore, the statement that "Integers are the primary datatype for storage of numbers without a decimal point" is true.
30.
An array is a collection of values that are accessed with an index number
Correct Answer
A. True
Explanation
An array is a data structure that stores a collection of values, where each value is assigned a unique index number. This allows for easy and efficient access to specific values within the array by referring to their corresponding index. Therefore, the statement "An array is a collection of values that are accessed with an index number" is true.
31.
•x/=y is an example of compound assignment
Correct Answer
A. True
Explanation
The statement "x/=y" is a compound assignment because it combines the division operator (/) with the assignment operator (=). Compound assignments perform an operation and assign the result back to the variable. In this case, it divides the value of x by y and assigns the quotient back to x. Therefore, the correct answer is True.
32.
•the equation x*=3 would triple the old value of x and re assign the resulting value to x.
Correct Answer
A. True
Explanation
The equation x*=3 means that the value of x is multiplied by 3 and then reassigned to x. This would effectively triple the old value of x. Therefore, the statement is true.
33.
•Logical AND operators are expressed using the symbol “AND”
Correct Answer
B. False
Explanation
Logical AND operators are not expressed using the symbol "AND". In most programming languages, the logical AND operator is represented by the symbol "&&". Therefore, the given statement is incorrect.
34.
One of the disadvantages of microcontroller over microprocessor is the upgrade path got easier
Correct Answer
B. False
Explanation
The given answer is False because one of the advantages of microcontrollers over microprocessors is that the upgrade path is easier. Microcontrollers are designed to be easily programmable and reprogrammable, allowing for easy upgrades and modifications. In contrast, microprocessors typically require more complex hardware changes for upgrades, making the upgrade path more difficult. Therefore, the statement that the upgrade path got easier with microcontrollers is incorrect.
35.
ATMEL AVR is one of the popular microcontroller available in the market
Correct Answer
A. True
Explanation
ATMEL AVR is indeed one of the popular microcontrollers available in the market. It is widely used in various applications due to its versatility, reliability, and ease of use. The AVR microcontrollers offer a wide range of features and are known for their low power consumption, high processing speed, and extensive support from the development community. Many hobbyists, students, and professionals choose ATMEL AVR microcontrollers for their projects and products, making it a popular choice in the market.