
SV_MCQ_Assessment1
Authored by Harisha Siddappa
Professional Development
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For the given snippet find out the correct answer.
//base class
class base;
int a;
int c;
function display();
begin
$display ("a=%d c=%d", a, c);
end
endfunction
endclass
my_program.sv
//program block
program my_program();
initial
begin
base b;
b=new;
b.a=10;
b.c=20;
b.display();
end
endprogram
a=10 c=20
a=0 c=0
a=20 c=20
Throws an error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For the given snippet find out the correct answer.
class packet;
static int mycount;
function new();
mycount=mycount+1;
endfunction
function display();
$display("value of mycount=%d", mycount);
endfunction
endclass
my_program.sv
program my_program();
initial
begin
packet p1;
packet p2;
p1=new();
p1.display();
end
endprogram
Value of mycount=1
Value of mycount=2
Value of mycount=3
Throws an error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In SV, which function is used to create the object
new( )
new[ ]
new{ }
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In SV, which method is used to write message in to mailbox
put( )
get( )
peek( )
write( )
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In randomization, constraints that support set of weighted values are called ____________
Simple constraint
Implication constraint
Distributed constraint
Inline constraint
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what will be the output of sum in the following task execution?
static int sum;
initial
sum=0;
task add_val (input int val);
sum = sum + val
endtask
initial
begin
#1;
add_val(10);
add_val(20);
add_val(50);
$display(”Sum is %0d”,sum);
end
50
60
80
90
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following enum declaration, what will be the value of “gold”
enum {bronze=3, silver, gold} medal;
3
4
5
6
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Universal Design for Learning
Quiz
•
Professional Development
18 questions
Infallible Vedas (DYS 2)
Quiz
•
Professional Development
18 questions
A Poison Tree Cold Read
Quiz
•
Professional Development
20 questions
Signals and systems
Quiz
•
Professional Development
15 questions
Nursing Leadership & Management
Quiz
•
University - Professi...
15 questions
REVISED CODE OF CONDUCT QUIZ BEE
Quiz
•
Professional Development
15 questions
Resume & CV Recap
Quiz
•
Professional Development
15 questions
FIFA 20
Quiz
•
Professional Development
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Professional Development
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
•
Professional Development
6 questions
Copy of G5_U6_L5_22-23
Lesson
•
KG - Professional Dev...
10 questions
March Quiz
Quiz
•
Professional Development
5 questions
Copy of G5_U6_L8_22-23
Lesson
•
KG - Professional Dev...
10 questions
suffixes FUL OR LESS
Quiz
•
Professional Development