Data Structures and Algorithms :: All Aptitude Test ::

1.Each personal computer has a that manages the computer’s arithmetical, logical and control activities.
A. Interpreter
B. Microcontroller
C. Assembler
D. Interpreter

2.The data size of a word is ?
A. 2-byte
B. 4-byte
C. 8-byte
D. 2-byte

3.A direct reference of specific location?
A. Absolute Address
B. Segment Address
C. Offset
D. Absolute Address

4.A Borland Turbo Assembler ?
A. NASM
B. GAS
C. TASM
D. NASM

5.Which is interpreted language?
A. C++
B. C
C. MATLAB
D. C++

6.The first widely-used high level language developed in 1957 ?
A. JAVA
B. C Language
C. Cobol
D. JAVA

7.A text file that contains our program is called as ?
A. Doc file
B. Exe file
C. Obj file
D. Doc file

8.Statement in BASIC language 150 IF A1=A2 THEN Comparison$ ="EQUAL" is an example of ?
A. if then statement
B. if else statement
C. then else statement
D. if then statement

9.In high level programming language BASIC, statements written with GOTO and IF commands are considered as ?
A. format
B. loop
C. condition
D. format

10.Programming language which is used to teach structured programming is ?
A. FORTRAN
B. COBOL
C. Pascal
D. FORTRAN

11.Pascal was developed in ?
A. 1960s
B. 1970s
C. 1980s
D. 1960s

12.Pascal is based on ?
A. sequential programming
B. procedural programming
C. structural language
D. sequential programming

13.Which was the first purely object oriented programming language developed?
A. Java
B. C++
C. SmallTalk
D. Java

14.Which of the following best defines a class?
A. Parent of an object
B. Instance of an object
C. Blueprint of an object
D. Parent of an object

15.Who invented OOP?
A. Alan Kay
B. Andrea Ferro
C. Dennis Ritchie
D. Alan Kay

16.Which of the following is not type of class?
A. Abstract Class
B. Final Class
C. Start Class
D. Abstract Class

17.Class is pass by ?
A. Value
B. Reference
C. Value or Reference, depending on program
D. Value

18.Class is pass by ?
A. Value
B. Reference
C. Value or Reference, depending on program
D. Value

19.What is default access specifier for data members or member functions declared within a class without any specifier, in C++?
A. Private
B. Protected
C. Public
D. Private

20.Which is most appropriate comment on following class definition?
A. Error : same variable name can’t be used twice
B. Error : Public must come first
C. Error : data types are different for same variable
D. Error : same variable name can’t be used twice

21.Which definition best describes an object?
A. Instance of a class
B. Instance of itself
C. Child of a class
D. Instance of a class

22.How many objects can be declared of a specific class in a single program?
A. 32768
B. 127
C. 1
D. 32768

23.Which feature of OOP indicates code reusability?
A. Encapsulation
B. Inheritance
C. Abstraction
D. Encapsulation

24.Which feature of OOP indicates code reusability?
A. Encapsulation
B. Inheritance
C. Abstraction
D. Encapsulation

25.If a function can perform more than 1 type of tasks, where the function name remains same, which feature of OOP is used here?
A. Encapsulation
B. Inheritance
C. Polymorphism
D. Encapsulation

26.If a function can perform more than 1 type of tasks, where the function name remains same, which feature of OOP is used here?
A. Encapsulation
B. Inheritance
C. Polymorphism
D. Encapsulation

27.Let A and B be any two arbitrary events then which one of the following is true ?
A. P( A intersection B) = P(A). P(B)
B. P(A union B) = P(A) + P(B)
C. P(AB) = P(A intersection B). P(B)
D. P( A intersection B) = P(A). P(B)

28.If X and Y be the sets. Then the set ( X - Y) union (Y- X) union (X intersection Y ) is equal to?
A. X union Y
B. Xc union Yc
C. X intersection Y
D. X union Y

29.If G is an undirected planer graph on n vertices with e edges then ?
A. e<=n
B. e<=2n
C. e<=3n
D. e<=n

30.Which of these best describes an array?
A. A data structure that shows a hierarchical behaviour
B. Container of objects of similar types
C. Arrays are immutable once initialised
D. A data structure that shows a hierarchical behaviour


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