MCQOPTIONS
Saved Bookmarks
This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Java knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
WHICH_FUNCTION_IS_USED_TO_MAP_A_GENERIC_ON_DESIGN??$ |
| A. | Port map() |
| B. | Generic() |
| C. | Generic map() |
| D. | Port |
| Answer» D. Port | |
| 2. |
Which of the following can be used as a generic in a complex digital design with many inputs and two outputs?$ |
| A. | No. of outputs |
| B. | No. of inputs |
| C. | Intermediate signals |
| D. | No parameter |
| Answer» C. Intermediate signals | |
| 3. |
Generics_in_VHDL_can_be_treated_as_______$ |
| A. | Global variable |
| B. | Local variable |
| C. | Variable |
| D. | Signal |
| Answer» B. Local variable | |
| 4. |
GENERIC (n : INTEGER := 8); In this statement, the mode of generic ‘n’ is ______?# |
| A. | Integer |
| B. | Real |
| C. | Generic |
| D. | No Mode |
| Answer» E. | |
| 5. |
In most synthesis tools, only generics of type ________ are supported. |
| A. | INTEGER |
| B. | REAL |
| C. | BIT_VECTOR |
| D. | STD_LOGIC |
| Answer» B. REAL | |
| 6. |
A generic can’t be declared in a component declaration.$ |
| A. | True |
| B. | False |
| Answer» C. | |
| 7. |
Which of the following is true about Generics? |
| A. | Generics can be assigned information as part of simulation run |
| B. | Generics cannot be assigned information as part of simulation run |
| C. | Generic passes data to an entity which is not instance specific |
| D. | Results of simulation can modify the value of generics |
| Answer» C. Generic passes data to an entity which is not instance specific | |
| 8. |
More than one generic parameter can be defined in a single entity. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 9. |
What is the main use of the generic parameter? |
| A. | Defining constant type |
| B. | Assigning some initial value to constant |
| C. | Reusability |
| D. | Using constant type within the entity |
| Answer» D. Using constant type within the entity | |
| 10. |
Which of the following is correct declaration for a generic? |
| A. | GENERIC (name : type := initial_value); |
| B. | GENERIC (type : name := initial_value); |
| C. | GENERIC (name : type <= initial_value); |
| D. | GENERIC ( ype : name <= initial_value); |
| Answer» B. GENERIC (type : name := initial_value); | |
| 11. |
H |
| A. | Hello |
| B. | Runtime Error |
| C. | Compilation Error |
| Answer» C. Compilation Error | |