Computer Science :: All Aptitude Test ::

1.Which one of the following is the right way to define a constant?
A. const PI = ‘3.1415’;
B. constant PI = ‘3.1415’;
C. const $PI = “3.1415”;
D. const PI = ‘3.1415’;

2.Which one of the following is the right way to call a class constant, given that the class is mathFunction?
A. echo mathFunction=PI;
B. echo mathFunction::PI;
C. echo mathFunction->PI;
D. echo mathFunction=PI;

3.Which one of the following is the right way to invoke a method?
A. $object::methodName();
B. object::methodName();
C. object->methodName();
D. $object::methodName();

4.The basic parameter to curved attributes are?
A. Width
B. Color
C. Type
D. Width

5.Raster curves of various widths can be displayed using?
A. Horizontal and vertical spans
B. Vertical spans
C. Horizontal spans
D. Horizontal and vertical spans

6.If the magnitude of the curve slope is lesser than 1, then?
A. We can plot horizontal spans
B. We can plot vertical spans
C. Both A & B
D. We can plot horizontal spans

7.If the slope magnitude is 1, then circles, ellipse and other curves will appear?
A. Rough
B. Big
C. Thinnest
D. Rough

8.One of the method for displaying thick curves is?
A. Curve cap
B. Curve slope
C. Curve width
D. Curve cap

9.The pixel masks for implementing line-type options are also used in the following algorithm to generate dashed and dotted patterns?
A. Random curve algorithm
B. Raster curve algorithm
C. Raster scan algorithm
D. Random curve algorithm

10.We can generate the dashes in the various octants and the circle path with vertical path using?
A. Curve slope
B. Circle simmetry
C. Circle symmetry
D. Curve slope

11.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. To display dashes and inter dash spaces according to the slope

12. If we want to display constant-length dashes, then we need to do the following?
A. We need to adjust the number of pixels plotted in each dash
B. We must use line-type functions
C. We need to adjust the number of dots
D. We need to adjust the number of pixels plotted in each dash

13.The curves displayed with a rectangular pen will be?
A. Thicker and magnitude slope is 1
B. Thicker and magnitude slope >1
C. Thinner
D. Thicker and magnitude slope is 1

14.Physical or logical arrangement of network is?
A. Control
B. Networking
C. Routing
D. Control

15.Which is the multiplexing technique that shifts each signal to a different carrier frequency?
A. FDM
B. TDM
C. Both A & B
D. FDM

16.In TDM, slots are further divided into?
A. Seconds
B. Frames
C. Packets
D. Seconds

17.WAN stands for?
A. Web access network
B. Web area network
C. Wide area network
D. Web access network

18.Data communication system within a building or campus is?
A. PAN
B. MAN
C. WAN
D. PAN

19.Data communication system spanning states, countries, or the whole world is?
A. PAN
B. MAN
C. WAN
D. PAN

20.Which topology requires a multi-point connection?
A. Bus
B. Ring
C. Mesh
D. Bus

21.Which network topology requires a central controller or hub?
A. Bus
B. Ring
C. Mesh
D. Bus

22.A Process Control Block(PCB) does not contain which of the following?
A. Data
B. Bootstrap program
C. Stack
D. Data

23.The number of processes completed per unit time is known as?
A. Capacity
B. Efficiency
C. Throughput
D. Capacity

24.The state of a process is defined by?
A. The current activity of the process
B. The activity to next be executed by the process
C. The activity just executed by the process
D. The current activity of the process

25.Which of the following is not the state of a process?
A. Running
B. Waiting
C. Old
D. Running

26.What is a Process Control Block?
A. A Block in memory
B. A secondary storage section
C. Data Structure
D. A Block in memory

27.The entry of all the PCBs of the current processes is in?
A. Process Unit
B. Process Table
C. Program Counter
D. Process Unit

28.What is the degree of multi-programming?
A. The number of processes in memory
B. The number of processes in the I/O queue
C. The number of processes in the ready queue
D. The number of processes in memory

29.A single thread of control allows the process to perform?
A. Multiple tasks at a time
B. Only two tasks at a time
C. Only one task at a time
D. Multiple tasks at a time

30.What is the objective of multi-programming?
A. To minimize CPU utilization
B. Have some process running at all times
C. Have multiple programs waiting in a queue ready to run
D. To minimize CPU utilization


Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers