Computer Science :: All Aptitude Test ::

1. What is short int in C programming?
A. Basic data type of C
B. Qualifier
C. short is the qualifier and int is the basic datatype
D. Basic data type of C

2.What is the output of this C code?
A. 5.477777
B. 5.477778
C. 5.478
D. 5.477777

3.Which of the following % operation is invalid?
A. 4 % 8;
B. 4 % 8l;
C. 4 % 8f;
D. 4 % 8;

4.Which data type is suitable for storing a number like? 10.0000000001
A. int
B. float
C. double
D. int

5.Which of the following is not a derived data type in c?
A. Function
B. Pointer
C. Enumeration
D. Function

6.Integral data type is ____?
A. Void
B. Char
C. Float
D. Void

7.The Format Identifier %u is used for?
A. Integer
B. Float
C. Decimal
D. Integer

8.Size of an int data type is ____ ?
A. 4 Bytes
B. 8 Bytes
C. Depends on Compiler/System
D. 4 Bytes

9. Sort int in C language is?
A. Basic Datatype of C
B. Qualifier
C. All of the mentioned
D. Basic Datatype of C

10.Data type qualifiers can be classified into?
A. 4
B. 5
C. 2
D. 4

11.The C language defines ____ fundamental data types
A. 3
B. 4
C. 5
D. 3

12.What is Enum datatype syntax?
A. Enum[data type]{const1, const2, const3....}
B. Enum{const1, const2,....}
C. Enum[int datatype]
D. Enum[data type]{const1, const2, const3....}

13.Character literals in C syntax are?
A. A
B. ‘A’
C. “4”
D. A

14.Range of unsigned int is?
A. 0 to 65,535 or 0 to 4,294,967,295
B. 0 to 65,535
C. 0 to 4,294,967,296
D. 0 to 65,535 or 0 to 4,294,967,295

15.Which is not a storage class?
A. Auto
B. Struct
C. Typedef
D. Auto

16.What will be the output of the following program?
A. 1 D 0
B. 1 0 0
C. 0 D 1
D. 1 D 0

17.When did IBM released the first version of its disk operating system DOS version 1.0 ?
A. 1981
B. 1982
C. 1983
D. 1981

18.Which is not a function of Kernel ?
A. Process management
B. Memory management
C. File system management
D. Process management

19.In real time OS, which is most suitable scheduling scheme
A. round robin
B. FCFS
C. pre-emptive scheduling
D. round robin

20.For multiprogramming operating system
A. special support from processor is not essential
B. special support from processor is not essential
C. cache memory is essential
D. special support from processor is not essential

21. Which is single user operating system
A. MS-DOS
B. UNIX
C. XENIX
D. MS-DOS

22.Which operating system reacts in the actual time
A. Batch system
B. Quick response system
C. Real time system
D. Batch system

23.Macintosh computer uses
A. System 7.0
B. AU/X
C. Xenix
D. System 7.0

24.Which technique is used by operating systems to execute several programs concurrently by switching back and forth
A. Partitioning
B. Multitasking
C. Windowing
D. Partitioning

25.Multiprogramming systems
A. Are easier to develop than single programming systems
B. Execute each job faster
C. Execute more jobs in the same time
D. Are easier to develop than single programming systems

26. Operating system is
A. A collection of hardware components
B. A collection of input output devices
C. A collection of software routines
D. A collection of hardware components

27.Which operating system use write through catches
A. UNIX
B. XENIX
C. ULTRIX
D. UNIX

28.Which process is known for initializing a microcomputer with its OS
A. cold booting
B. boot recording
C. booting
D. cold booting

29.Remote computing services involves the use of timesharing and
A. multiprocessing
B. interactive processing
C. batch processing
D. multiprocessing

30.Dijkstra's algorithm deals with
A. mutual exclusion
B. deadlock recovery
C. deadlock avoidance
D. mutual exclusion


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