Legal Metrology • Paper-II
Which among the following can show polymorphism?
A)
Overloading ||
B)
Overloading +=
C)
Overloading <<
D)
Overloading &&
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Overloading ||' (Option A).
Legal Metrology • Paper-II
Which one of the following is a synchronization tool?
A)
thread
B)
pipe
C)
semaphore
D)
socket
Based on established principles in Basic Computer Knowledge, the correct and most appropriate choice is 'pipe' (Option B).
Legal Metrology • Paper-II
Which of the following concepts means determining at runtime what method to invoke?
A)
Data hiding
B)
Dynamic Typing
C)
Dynamic binding
D)
Dynamic loading
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Dynamic loading' (Option D).
Legal Metrology • Paper-II
Which among the following is false, for member function of a class?
A)
All member functions must be defined
B)
Member functions can be defined inside or outside the class body
C)
Member functions need not be declared inside the class definition
D)
Member functions can be made friend to another class using friend keyword
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Member functions can be made friend to another class using friend keyword' (Option D).
Legal Metrology • Paper-II
___________ is defined as set of points such that the sum of the distances is same for all points.
A)
Ellipses
B)
Lines
C)
Square
D)
triangle
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Square' (Option C).
Legal Metrology • Paper-II
Coordinate references in the polyline function are stated as :
A)
Relative coordinate values
B)
Absolute coordinate values
C)
Current position
D)
Real coordinate values
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Current position' (Option C).
Legal Metrology • Paper-II
Which of the two features match each other?
A)
Inheritance and Encapsulation
B)
Encapsulation and Polymorphism
C)
Encapsulation and Abstraction
D)
Abstraction and Polymorphism
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Abstraction and Polymorphism' (Option D).
Legal Metrology • Paper-II
Which of the following functions are performed by a constructor?
A)
Construct a new class
B)
Construct a new object
C)
Construct a new function
D)
Initialize objects
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Construct a new class' (Option A).
Legal Metrology • Paper-II
The Banker’s algorithm is used :
A)
to rectify deadlock
B)
to prevent deadlock
C)
to detect deadlock
D)
to solve deadlock
Based on established principles in Basic Computer Knowledge, the correct and most appropriate choice is 'to rectify deadlock' (Option A).
Legal Metrology • Paper-II
The address of the next instruction to be executed by the current process is provided by the :
A)
CPU registers
B)
Program counter
C)
Process stack
D)
Pipe
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Process stack' (Option C).
Legal Metrology • Paper-II
Which type of function among the following shows polymorphism?
A)
Inline function
B)
Virtual function
C)
Undefined functions
D)
Class member functions
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Undefined functions' (Option C).
Legal Metrology • Paper-II
Suppose that a process is in “Blocked” state waiting for some I/O service. When the service is completed, it goes to the :
A)
Running state
B)
Ready state
C)
Suspended state
D)
Terminated state
Based on established principles in Basic Computer Knowledge, the correct and most appropriate choice is 'Suspended state' (Option C).
Legal Metrology • Paper-II
The algorithm which uses multiple processors to calculate pixel positions is :
A)
Midpoint algorithm
B)
Parallel line algorithm
C)
Bresenham’s line algorithm
D)
All of these
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'All of these' (Option D).
Legal Metrology • Paper-II
In LCD, the refresh rate of the screen is :
A)
60 frames/sec
B)
80 frames/sec
C)
30 frames/sec
D)
100 frames/sec
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is '100 frames/sec' (Option D).
Legal Metrology • Paper-II
Which of the following pairs are similar?
A)
Class and object
B)
Class and structure
C)
Structure and object
D)
Structure and functions
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Class and structure' (Option B).
Legal Metrology • Paper-II
In which system, the Shadow mask methods are commonly used :
A)
Raster-scan system
B)
Random-scan system
C)
Both a and b
D)
None of these
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Both a and b' (Option C).
Legal Metrology • Paper-II
If the value of sx=1 and sy=1 in scaling then :
A)
Reduce the size of object
B)
Distort the picture
C)
Produce an enlargement
D)
No change in the size of an object
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'No change in the size of an object' (Option D).
Legal Metrology • Paper-II
To enable a process to wait within the monitor,
A)
a condition variable must be declared as condition
B)
condition variables must be used as boolean objects
C)
semaphore must be used
D)
all of these
Based on established principles in Basic Computer Knowledge, the correct and most appropriate choice is 'all of these' (Option D).
Legal Metrology • Paper-II
Which among the following doesn’t come under OOP concept?
A)
Platform independent
B)
Data binding
C)
Message passing
D)
Data hiding
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Data binding' (Option B).
Legal Metrology • Paper-II
Which algorithm is a faster method for calculating pixel positions?
A)
Bresenham’s line algorithm
B)
Parallel line algorithm
C)
Mid-point algorithm
D)
DDA line algorithm
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'DDA line algorithm' (Option D).
Legal Metrology • Paper-II
Why reference is not same as a pointer?
A)
A reference can never be null.
B)
A reference once established cannot be changed.
C)
Reference doesn’t need an explicit dereferencing mechanism.
D)
All of these
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'All of these' (Option D).
Legal Metrology • Paper-II
Which language does not support all 4 types of inheritance?
A)
C++
B)
Java
C)
Kotlin
D)
Small Talk
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Small Talk' (Option D).
Legal Metrology • Paper-II
The function of the pixel mask is :
A)
To display dashes and inter dash spaces according to the slope
B)
To display curved attributes
C)
To display the thick curves
D)
None of these
ASK/PSK/FSK/QAM are digital-to-analog modulation methods because digital data alters an analog carrier.
Legal Metrology • Paper-II
While using encapsulation, which among the following is possible?
A)
Code modification can be additional overhead
B)
Data member’s data type can be changed without changing any other code
C)
Data member’s type can’t be changed, or whole code have to be changed
D)
Member functions can be used to change the data type of data members
Based on established principles in Computer Science & Engineering, the correct and most appropriate choice is 'Data member’s data type can be changed without changing any other code' (Option B).
Legal Metrology • Paper-II
The color code “000” is for :
A)
White
B)
Black
C)
Blue
D)
Green
Correct option: B — Black. This matches the standard definition/result for the stated question.