wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Post-Test CPE15 - HDL

Total questions: 65

Worksheet time: 3hrs 1mins

Name
Class
Date
1.

It is a set of notations, similar to software programming languages, used for modeling the logical function of digital circuits and systems.

a)

PL

b)

HPL

c)

HDL

d)

MS

2.

The full form of HDL is _________________

a)

Higher Descriptive Language

b)

Higher Definition Language

c)

Hardware Description Language

d)

High Descriptive Language

3.

The Verilog HDL code starts with the keyword_________

a)

always

b)

module

c)

endmodule

d)

items

4.

The Verilog HDL code ends with the keyword_________

a)

always

b)

module

c)

keys

d)

endmodule

5.

Different types of modelling in Verilog HDL are _____

a)

Gate level, Data flow and Behavioral

b)

data, case and type

c)

Gate, Logic and gates

d)

None

6.

The symbol used for Logical AND operation is ______

a)

and

b)

or

c)

&&

d)

None

7.

A simulator interprets the HDL description and produces a readable output, such as a timing diagram, that predicts how the hardware will behave before its is actually fabricated.

a)

HDL

b)

Verilog

c)

VHDL

d)

Logic Synthesis tool

8.

What are the building blocks of any digital system?

a)

Logic Gates

b)

Resistors

c)

Integrated Circuits

d)

Transistors

9.

Which one of the following is a VHDL logical (Boolean) operator?

a)

Equality

b)

Inequality

c)

Less than

d)

Not

10.

Which one of the following is a VHDL shift operator?

a)

SLA

b)

Not equal

c)

Equal

d)

None of the above

11.

The simple index: integer: =0 is an example declaration of _______________ data type provided within VHDL?

a)

Integer

b)

Real

c)

Boolean

d)

Character

12.

Which one of the following is a type of scalar literal?

a)

Character

b)

String

c)

Bit_vector

d)

Both b and c

13.

In which one of the following, the user defined data types are allowed?

a)

VHDL

b)

Verilog

c)

Both a and b

d)

None of the above

14.

In which one of the following, the modulo operator is present?

a)

VHDL

b)

Verilog

c)

Both a and b

d)

None of the above

15.

Which one of the following, one manages the large design?

a)

VHDL

b)

Verilog

c)

Both a and b

d)

None of the above

16.

Which one of the following modelling statements consists of sequential program statement?

a)

Behavioural

b)

Dataflow

c)

Both a and b

d)

None of the above

17.

The variable Val: real: =1.0 is an example declaration of ______ data type provided within VHDL?

a)

Integer

b)

Real

c)

Boolean

d)

Character

18.

Which one of the following VHDL design unit used to define external view of a model?

a)

Entity

b)

Architecture

c)

Configuration

d)

None of the above

19.

Which one of the following modelling statements consists of concurrent statements?

a)

Structural

b)

Dataflow

c)

Both a and b

d)

None of the above

20.

Which one of the calls are used in the Verilog program?

a)

Procedure calls

b)

Task calls

c)

Both a and b

d)

None of the above

21.

Which one of the calls are used in the VHDL program?

a)

Procedure calls

b)

Task calls

c)

Both a and b

d)

None of the above

22.

Which of the following codes are simplified by using procedures?

a)

VHDL

b)

Verilog

c)

Both a and b

d)

None of the above

23.

Which one of the following object types require less memory?

a)

Signals

b)

Variables

c)

Both a and b

d)

None of the above

24.

Which one of the following VHDL design unit is used to define the function of the model?

a)

Entity

b)

Architecture

c)

Configuration

d)

None of the above

25.

The variable term: character: ='@' is a _____?

a)

Integer

b)

Real

c)

Boolean

d)

Character

26.

Which one of the following VHDL design unit used to associate an architecture with an entity?

a)

Entity

b)

Architecture

c)

Configuration

d)

None of the above

27.

The figure shown below is a block diagram of ____________________?

a)

Verilog

b)

VHDL

c)

HDL

d)

None of the above

28.

The Verilog is modelled for the ________ devices.

a)

condution

b)

electrical

c)

electronics

d)

All of the above

29.

_________ hardware description language is more flexible.

a)

C

b)

Java

c)

Verilog

d)

VHDL

30.

The Verilog can provide transistor-level descriptions but the VHDL cannot provide this description.

a)

Yes

b)

No

c)

May be

d)

Can't say

31.

________ is used to introduce delays in a circuit.

a)

Flip-flops

b)

EXOR gate

c)

Inverter

d)

Buffer

32.

The possible values of the == operator are __________.

a)

0

b)

1

c)

x

d)

All of the above

33.

Which mistakes are contained in the following code?

a)

out is missing from port declaration (it should be an input port)

b)

clk should be in the port list

c)

reg in should be reg [3:0] in

d)

4) endmodule is missing

e)

This design needs a reset

34.

What can be the various uses of VHDL?

4 lines
35.

What are HDL simulators?

a)

Verilog

b)

VHDL

c)

SystemVerilog

d)

All of the above

36.

What do you understand by $monitor, $display, and $strobe? (Select three (3) answers that may apply)

a)

The $monitor, $display, and $strobe are not a commands with similar syntax and show text on the screen while running a simulation

b)

The $monitor command is used to display each time you change one of the parameters

c)

The $display command displays the parameters when you execute it

d)

The $strobe command is used to display the parameters after the current simulation time unit

37.

In what aspect, HDLs differ from other computer programming languages?

a)

No aspect; both are same

b)

HDLs describe hardware rather than executing a program on a computer

c)

HDLs describe software and not hardware

d)

Other computer programming languages have more complexity

38.

Which of the following HDLs are IEEE standards?

a)

VHDL and Verilog

b)

C and C++

c)

Altera and Xilinx

d)

Quartus II and MaxPlus II

39.

Why we needed HDLs while having many traditional Programming languages?

a)

Traditional programming languages are complex

b)

HDLs are complementary to traditional programming languages to complete the design process

c)

Some characteristics of digital hardware couldn’t be captured by traditional languages

d)

HDLs offer more complexity than traditional programming languages.

40.

An HDL can’t describe Hardware at Gate level as well as switch level?

a)

True

b)

False

c)

Maybe

d)

Can't say

41.

Why do we need concurrent processing for describing digital systems in HDLs?

a)

Faster processing than conventional programming languages

b)

Concurrent processing is easier than sequential processing

c)

It allows taking timing constraints into consideration

d)

Complexity of digital systems needs concurrent processing

42.

What is the advantage of using VHDL instead of any other HDL?

a)

Week typing

b)

Based on ADA

c)

Portability

d)

Easy to code

43.

Which of the following is a characteristic of VHDL?

a)

Case sensitive

b)

Use of simple data types

c)

Based on C programming language

d)

Strongly typed language

44.

Which of the following is a characteristic of Verilog HDL?

a)

Strongly typed language

b)

Case sensitive

c)

Better library

d)

Not portable

45.

A package in VHDL consists of _________

a)

Commonly used architectures

b)

Commonly used tools

c)

Commonly used data types and subroutines

d)

Commonly used syntax and variables

46.

Which of the following describes the structure of VHDL code correctly?

a)

Library Declaration; Entity Declaration; Architecture Declaration; Configurations

b)

Entity Declaration; Configuration; Library Declaration; Architecture Declaration

c)

Configuration; Library Declaration; Entity Declaration; Architecture Declaration

d)

Library Declaration; Configuration; Entity Declaration; Architecture Declaration

47.

Which of the following statement is true?

a)

Package is a collection of Libraries

b)

Library is a collection of Packages

c)

Entity is a collection of Packages

d)

Architecture is a collection of Entities

48.

Which of the following is correctly declared library for VHDL code?

a)

LIBRARY library_name; USE package_name.parts;

b)

LIBRARY package_name.parts; LIBRARY library_name;

c)

USE library_name; LIBRARY library_name.package_name.parts

d)

LIBRARY library_name; USE library_name.package_name.parts

49.

Which of the following is correct syntax for entity declaration?

a)

b)

c)

d)

50.

Refer to the VHDL code given below, how many input-output pins are there in MUX entity?

a)

5

b)

4

c)

3

d)

2

51.

Which of the following is the correct syntax for architecture declaration and definition?

a)

b)

c)

d)

52.

The statements in between the keyword BEGIN and END are called _______

a)

Concurrent statements

b)

Netlist

c)

Declaration statement

d)

Entity function

53.

Which of the following is the correct architecture for a simple Nand gate?

a)

b)

c)

d)

54.

 What does an arrow indicate in the schematic format of process statement given below?

a)

Variable declaration

b)

Process body

c)

Process label

d)

Sensitivity list

55.

The  ability of HDL to describe the performance specification of a circuit is regarded as ____

a)

Test case

b)

System case

c)

Mark bench

d)

Test bench

56.

In the following code, which of the lines corresponds to the function call and function definition?

a)

L3, L5

b)

L5, L3

c)

L3, L7

d)

L5, L9

57.

The structural code for 4-bit adder is given below

a)

output

b)

component

c)

input

d)

n

58.

How many types of output are returned by the given

a)

0

b)

1

c)

2

d)

3

59.

What will be the value of the statements given?

a)

red

b)

blue

c)

yellow

d)

black

60.

What is the type of modeling used in the code given below?

a)

Behavioral

b)

Dataflow

c)

Structural

d)

Combinational

61.

The architecture describes _______ gate implemented by _________ modeling.

a)

Or, behavioral

b)

Not, Dataflow

c)

Nor, behavioral

d)

Nor, Dataflow

62.

Which of the following line contain error?

a)

L2

b)

L3

c)

L4

d)

No error

63.

What is the function of this code

a)

To perform binary multiplication of two data inputs

b)

To count the number of ones in the given data

c)

To count the number of zeroes in the given data

d)

To reverse the order of the given data

64.

In ______ counter universal clock is not used

a)

decade counter

b)

ring counter

c)

synchronous counter

d)

asynchronous counter

65.

Which of the following can't be implemented with concurrent statements only?

a)

Counter

b)

Decoder

c)

Adder

d)

Multiplexer