wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

System Verilog Worksheet Wipro

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

What is the default value of an uninitialized wire in System Verilog?

a)

0

b)

1

c)

x (unknown)

d)

z (high impedance)

2.

In System Verilog, what type of assignments can be made to reg variables?

a)

Only continuous assignments

b)

Only procedural assignments

c)

Both continuous and procedural assignments

d)

Neither continuous nor procedural assignments

3.

The error in the code is : int a, b; initial begin forever begin a = a + 1; b = b + 1; end end

a)

a and b can overflow as it is an infinite loop

b)

simulation may not advance since “forever” does not have timing control

c)

A “forever” block can never be a part of initial block.

d)

No error.

4.

What is the default size of a reg variable in SystemVerilog?

a)

8 bits

b)

16 bits

c)

32 bits

d)

1 bit

5.

What is the precision of shortreal data type?

a)

32-bit single precision

b)

64-bit double precision

c)

16-bit half precision

d)

128-bit quad precision

6.

What happens when you assign a shorter string to a longer string variable?

a)

Compilation error occurs

b)

The string is padded with null characters

c)

The string is truncated

d)

The string variable resizes automatically

7.

Which of the following is a valid use of void?

a)

void my_var;

b)

function void display_msg();

c)

void array[10];

d)

parameter void PARAM = 5;

8.

Which syntax correctly defines an enumerated type with typedef?

a)

typedef enum {RED, GREEN, BLUE} color_t;

b)

enum typedef {RED, GREEN, BLUE} color_t;

c)

typedef {RED, GREEN, BLUE} enum color_t;

d)

enum color_t {RED, GREEN, BLUE} typedef;

9.

How do you declare a dynamic array in SystemVerilog?

a)

int arr[10];

b)

int arr[];

c)

int arr[*];

d)

int arr[$];

10.

Which of the following are true with respect to arrays?

a)

Dynamic arrays are useful for contagious collection of variables.

b)

Associative arrays can be used if the size of array is not known

c)

dynamic arrays can be resized after allocating the size.

d)

All of these.

11.

Which operator is used for non-blocking assignments?

a)

=

b)

<=

c)

==

d)

===

12.

What is the difference between packed and unpacked structures?

a)

Packed structures use more memory

b)

Packed structures are stored as contiguous bits

c)

Packed structures are slower

d)

There is no difference

13.

How do you increase the size of dynamic array by retaining its old values?

a)

d_array =new[10]d_array;

b)

d_array= new[10]

c)

d_array=new[5,10]

d)

none of these.

14.

What is the key difference between while and do-while loops?

a)

while is faster than do-while

b)

do-while executes at least once

c)

while supports break statements

d)

do-while doesn't support continue

15.

What does the continue statement do in a loop?

a)

Exits the loop completely

b)

Skips remaining statements and goes to next iteration

c)

Pauses the loop execution

d)

Restarts the loop from beginning

16.

What is the difference between unique-if and priority-if?

a)

priority-if allows multiple true conditions

b)

unique-if allows multiple true conditions

c)

priority-if checks conditions in order and stops at first true

d)

There is no difference

17.

How do you trigger an event in SystemVerilog?

a)

event.trigger()

b)

->event

c)

trigger(event)

d)

event->trigger

18.

How many return values can a function have?

a)

None

b)

One

c)

Multiple

d)

Unlimited

19.

What does fork-join_any do?

a)

Waits for all threads to complete

b)

Waits for any one thread to complete

c)

Executes threads sequentially

d)

Kills all threads after first completion

20.

The difference between Device under Test and Device under Verification is:

a)

Device under Test is the actual hardware being tested, while Device under Verification is the model used for verification.

b)

Device under Test is the simulation model, while Device under Verification is the physical device.

c)

Device under Test and Device under Verification are always the same entity.

d)

Device under Test is used for software testing, while Device under Verification is used for hardware testing.

21.

The code given below: module argument_passing; int x,y,z;//function to add two integer numbers. function int sum(ref int x,y); x = x+y; return x+y; endfunction This is an example of

a)

argument pass by value

b)

argument pass by reference

c)

argument pass by name

d)

argument pass by position

22.

Arrange the following in order: 1) Generate stimulus 2) Apply stimulus to the DUT 3) Check for correctness 4) Capture the response 5) Measure progress against the overall verification goals

a)

1,2,3,4,5

b)

1,2,4,3,5

c)

1,4,2,3,5

d)

2,1,3,4,5

23.

File extension of system Verilog is

a)

.svl

b)

.svd

c)

.sv

d)

.svs

24.

Which is not a behavioural data type?

a)

time

b)

real

c)

integer

d)

event

25.

What does the continue statement do in a loop?

a)

Exits the loop completely

b)

Skips remaining statements and goes to next iteration

c)

Pauses the loop execution

d)

Restarts the loop from beginning.

26.

Which of the following statement is true regarding priority if and unique if?

a)

In unique if, there will be an error, if more than one condition is true.

b)

In unique if, if no condition is true, there will be an error.

c)

In case of priority if, if no condition is true, there will be an error.

d)

All of these.

27.

What is the key characteristic of a union in SystemVerilog?

a)

All members have separate memory locations

b)

All members share the same memory location

c)

Members are accessed sequentially

d)

Members must be of the same data type

28.

When should non-blocking assignments be used?

a)

In combinational logic

b)

In sequential logic

c)

In continuous assignments

d)

In function definitions

29.

When is the void data type typically used in SystemVerilog?

a)

For variable declarations

b)

For function return types that return nothing

c)

For array indexing

d)

For parameter declarations

30.

What is the default value of the first enumerated constant if not explicitly specified

a)

0

b)

1

c)

X

d)

z