Discrete Structures :: All Aptitude Test ::

1.How do you initialize an array in C?
A. int arr[3] = (1,2,3);
B. int arr(3) = {1,2,3};
C. int arr[3] = {1,2,3};
D. int arr[3] = (1,2,3);

2.Process of inserting an element in stack is called ?
A. Create
B. Push
C. Evaluation
D. Create

3.Process of removing an element from stack is called ?
A. Create
B. Push
C. Evaluation
D. Create

4.The postfix form of the expression (A+ B)*(C*D- E)*F / G is?
A. AB+ CD*E – FG /**
B. AB + CD* E – F **G /
C. AB + CD* E – *F *G /
D. AB+ CD*E – FG /**

5.The data structure required to check whether an expression contains balanced parenthesis is?
A. Stack
B. Queue
C. Array
D. Stack

6.Any signed negative binary number is recognized by its ?
A. MSB
B. LSB
C. Byte
D. MSB

7.The parameter through which 16 distinct values can be represented is known as ?
A. Bit
B. Byte
C. Word
D. Bit

8.If the decimal number is a fraction then its binary equivalent is obtained by the number continuously by 2?
A. Dividing
B. Multiplying
C. Adding
D. Dividing

9.The given hexadecimal number (1E.53)16 is equivalent to
A. (35.684)8
B. (36.246)8
C. (34.340)8
D. (35.684)8

10.The octal number (651.124)8 is equivalent to
A. (1A9.2A)16
B. (1B0.10)16
C. (1A8.A3)16
D. (1A9.2A)16

11.The octal equivalent of the decimal number (417)10 is
A. (641)8
B. (619)8
C. (640)8
D. (641)8

12.What is operating system?
A. collection of programs that manages hardware resources
B. system service provider to the application programs
C. link to interface the hardware and application programs
D. collection of programs that manages hardware resources

13.To access the services of operating system, the interface is provided by the ?
A. System calls
B. API
C. Library
D. System calls

14.Which one of the following is not true?
A. kernel is the program that constitutes the central core of the operating system
B. kernel is the first part of operating system to load into memory during booting
C. kernel is made of various modules which can not be loaded in running operating system
D. kernel is the program that constitutes the central core of the operating system

15.Which one of the following error will be handle by the operating system?
A. power failure
B. lack of paper in printerlack of paper in printer
C. connection failure in the network
D. power failure

16.What is the main function of the command interpreter?
A. to get and execute the next user-specified command
B. to provide the interface between the API and application program
C. to handle the files in operating system
D. to get and execute the next user-specified command

17.By operating system, the resource management can be done via ?
A. time division multiplexing
B. space division multiplexing
C. time and space division multiplexing
D. time division multiplexing

18. If a process fails, most operating system write the error information to a
A. log file
B. another running process
C. new file
D. log file

19.A relational database consists of a collection of ?
A. Tables
B. Fields
C. Records
D. Tables

20.A in a table represents a relationship among a set of values?
A. Column
B. Key
C. Row
D. Column

21.The term is used to refer to a row?
A. Attribute
B. Tuple
C. Field
D. Attribute

22.The term attribute refers to a of a table?
A. Record
B. Column
C. Tuple
D. Record

23.For each attribute of a relation, there is a set of permitted values, called the of that attribute?
A. Domain
B. Relation
C. Set
D. Domain

24.Database which is the logical design of the database, and the database which is a snapshot of the data in the database at a given instant in time?
A. Instance, Schema
B. Relation, Schema
C. Relation, Domain
D. Instance, Schema

25.Converts the programs written in assembly language into machine instructions ?
A. Machine compiler
B. Interpreter
C. Assembler
D. Machine compiler

26.The instructions like MOV or ADD are called as ?
A. OP-Code
B. Operators
C. Commands
D. OP-Code

27.The alternate way of writing the instruction, ADD #5,R1 is?
A. ADD [5],[R1];
B. ADDI 5,R1;
C. ADDIME 5,[R1];
D. ADD [5],[R1];

28.Instructions which won’t appear in the object program are called as ?
A. Redundant instructions
B. Exceptions
C. Comments
D. Redundant instructions

29.The assembler directive EQU, when used in the instruction: Sum EQU 200 does ?
A. Finds the first occurrence of Sum and assigns value 200 to it
B. Replaces every occurrence of Sum with 200
C. Re-assigns the address of Sum by adding 200 to its original address
D. Finds the first occurrence of Sum and assigns value 200 to it

30.The purpose of the ORIGIN directive is?
A. To indicate the starting position in memory, where the program block is to be stored
B. To indicate the starting of the computation code
C. To indicate the purpose of the code
D. To indicate the starting position in memory, where the program block is to be stored


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