Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

2023-2024 HDL Prelim Exam

Total questions: 43

Worksheet time: 22mins

Name
Class
Date
1.

What is the primary purpose of a Hardware Description Language (HDL)?

a)

Computational tasks

b)

Describing software algorithms

c)

Describing hardware structures and behavior

d)

Managing databases

2.

Which type of language is an HDL considered to be?

a)

Computational

b)

Modeling

c)

High-level

d)

Low-level

3.

What is the main function of a logic circuit?

a)

Performing arithmetic operations

b)

Storing data

c)

Performing logical operations on input signals

d)

Displaying graphical information

4.

Which of the following is not a popular Hardware Description Language (HDL)?

a)

C++

b)

Verilog

c)

VHDL

d)

SystemVerilog

5.

Which of the following is an example of a commonly used HDL?

a)

Python

b)

Verilog

c)

Java

d)

Ruby

6.

What is a fundamental difference between hardware description languages (HDLs) and high-level programming languages like C or Python?

a)

HDLs involve sequential operation, while programming languages involve parallel operation.

b)

HDLs and programming languages are identical in terms of operation.

c)

HDLs and programming languages are only used for software development.

d)

HDLs are used for low-level programming, while programming languages are used for high-level programming.

7.

In programming languages, how are lines of code typically executed?

a)

Simultaneously

b)

Randomly

c)

Top-to-bottom, one at a time

d)

From bottom to top

8.

When working with HDL code, what are we primarily describing?

a)

High-level software algorithms

b)

Digital hardware

c)

Networking protocols

d)

Natural language text

9.

In binary logic, how many distinct possible values can a variable have?

a)

3

b)

4

c)

2

d)

6

10.

Which of the following symbols represents the logical AND operation?

a)

+

b)

×

c)

∨

d)

·

11.

If x = 1 and y = 1, what is the result of the logical AND operation, xy?

a)

1

b)

0

c)

2

d)

3

12.

How is the NOT operation typically represented in binary logic?

a)

'

b)

^

c)

!

d)

*

13.

What is another term for the NOT operation in binary logic?

a)

Inverter

b)

Reverser

c)

Doubler

d)

Compressor

14.

In a digital system, how are analog voltages typically interpreted?

a)

As a continuous range of values

b)

As negative values only

c)

As binary values, either 0 or 1

d)

As decimal values

15.

What is the range of values for analog signals in a digital system?

a)

0–1

b)

-1 to 1

c)

0–100

d)

0–3 V

16.

Hardware Description language is another form of Programming Language.

a)

TRUE

b)

FALSE

17.

Arithmetic operations with numbers in binary follow the same rules as for decimal numbers.

a)

TRUE

b)

FALSE

18.

Digital systems are used only in communication and can’t be change according the specific needs.

a)

TRUE

b)

FALSE

19.

Number system is a writing system for expressing numbers in mathematical notation to present numbers or a given sets using digits or other symbols in an inconsistent manner.

a)

TRUE

b)

FALSE

20.

Logic gates produce an output signal based on one or more physical input signals.

a)

TRUE

b)

FALSE

21.

Binary logic consists of binary variables and a set of logical operations.

a)

TRUE

b)

FALSE

22.

OR operation is represented by a dot or by the absence of an operator.

a)

TRUE

b)

FALSE

23.

A truth table is a table of all possible combinations of the variables, showing the relation between the values that the variables may take and the result of the operation.

a)

TRUE

b)

FALSE

24.

Logic gates are electronic circuits that operate on one or more physical input signals to produce an output signal.

a)

TRUE

b)

FALSE

25.

Verilog is a programming language used to describe a digital system that will be eventually implemented.

a)

TRUE

b)

FALSE

26.

Digital systems use a continuous range of values for representing data.

a)

TRUE

b)

FALSE

27.

Logic gates are electronic circuits that perform arithmetic operations.

a)

TRUE

b)

FALSE

28.

The NOT operation is sometimes represented by an overbar (¯) over the variable.

a)

TRUE

b)

FALSE

29.

A truth table is a table that shows the relationship between all possible combinations of variables and the result of a logical operation.

a)

TRUE

b)

FALSE

30.

The complement operation is another name for the OR operation.

a)

TRUE

b)

FALSE

31.

At the minimum, a VHDL description of a digital logic circuit must include an __________ definition and an __________ definition.

(a)  

32.

It is possible to have more than one (a)   definition for a given entity definition in VHDL.

33.

An entity-architecture pair is used to describe all separately compilable _________ and _________.

(a)  

34.

In a structural description, the circuit is described as an interconnection of lower-level (a)   .

35.

(a)   are special identifiers reserved to define the language constructs and are in lower case.

36.

(a)   are the names of variables so that they can be referenced later on.

37.

A sequence of characters enclosed in a double quote (“ ” ) is called a (a)   .

38.

(a)   is a term used to represent the characters for spaces and tabs.

39.

A (a)   starts with // and tells Verilog compiler to treat everything after this point to the end of the line as comment.

40.

A (a)   starts with /* and end with */ and cannot be nested.

41.

(a)   operators shall appear to the left of their operand.

42.

(a)   operators shall appear between operands.

43.

(a)   operators have two separate operators that separate three operands.