GAT Subject :: All Aptitude Test ::

Hassan
1.MFC stands for ?
A. Memory Format Caches
B. Memory Function Complete
C. Memory Find Command
D. Memory Format Caches

2.The time delay between two successive initiations of memory operation ?
A. Memory access time
B. Memory search time
C. Memory cycle time
D. Memory access time

3.What is the additional feature in classes that was not in structures ?
A. Data members
B. Member functions
C. Static data allowed
D. Data members

4.Which is not feature of OOP in general definitions ?
A. Code re-usability
B. Modularity
C. Duplicate/Redundant data
D. Code re-usability

5.Which Feature of OOP illustrated the code re-usability ?
A. Polymorphism
B. Abstraction
C. Encapsulation
D. Polymorphism

6.Which language does not support all 4 types of inheritance ?
A. C++
B. Java
C. Kotlin
D. C++

7.How many classes can be defined in a single program ?
A. Only 1
B. Only 100
C. Only 999
D. Only 1

8.When OOP concept did first came into picture ?
A. 1970’s
B. 1980’s
C. 1993
D. 1970’s

9.Why Java is Partially OOP language ?
A. It supports usual declaration of primitive data types
B. It doesn’t support all types of inheritance
C. It allows code to be written outside classes
D. It supports usual declaration of primitive data types

10.Which concept of OOP is false for C++ ?
A. Code can be written without using classes
B. Code must contain at least one class
C. A class must have member functions
D. Code can be written without using classes

11.Which header file is required in C++ to use OOP ?
A. iostream.h
B. stdio.h
C. stdlib.h
D. iostream.h

12.Which of the two features match each other ?
A. Inheritance and Encapsulation
B. Encapsulation and Polymorphism
C. Encapsulation and Abstraction
D. Inheritance and Encapsulation

13.Which feature allows open recursion, among the following ?
A. Use of this pointer
B. Use of pointers
C. Use of pass by value
D. Use of this pointer

14.Which is known as a generic class ?
A. Abstract class
B. Final class
C. Template class
D. Abstract class

15.Size of a class is ?
A. Sum of the size of all the variables declared inside the class
B. Sum of the size of all the variables along with inherited variables in the class
C. Size of the largest size of variable
D. Sum of the size of all the variables declared inside the class

16.Which class can have member functions without their implementation ?
A. Default class
B. String class
C. Template class
D. Default class

17.Which of the following describes a friend class ?
A. Friend class can access all the private members of the class, of which it is a friend
B. Friend class can only access protected members of the class, of which it is a friend
C. Friend class don’t have any implementation
D. Friend class can access all the private members of the class, of which it is a friend

18.What is the scope of a class nested inside another class ?
A. Protected scope
B. Private scope
C. Global scope
D. Protected scope

19.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. All member functions must be defined

20.Which syntax for class definition is wrong ?
A. class student{ };
B. student class{ };
C. class student{ public: student(int a){ } };
D. class student{ };

21.Which of the following pairs are similar ?
A. Class and object
B. Class and structure
C. Structure and object
D. Class and object

22.Which among the following is false for class features ?
A. Classes may/may not have both data members and member functions
B. Class definition must be ended with a colon
C. Class can have only member functions with no data members
D. Classes may/may not have both data members and member functions

23.Instance of which type of class can’t be created ?
A. Anonymous class
B. Nested class
C. Parent class
D. Anonymous class

24.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

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

26.Which among the following is false ?
A. Object must be created before using members of a class
B. Memory for an object is allocated only after its constructor is called
C. Objects can’t be passed by reference
D. Object must be created before using members of a class

27.Which of the following is incorrect ?
A. class student{ }s;
B. class student{ }; student s;
C. class student{ }s[];
D. class student{ }s;

28.The object can’t be ?
A. Passed by reference
B. Passed by value
C. Passed by copy
D. Passed by reference

29.What is size of the object of following class (64 bit system) ?
A. 20
B. 22
C. 24
D. 20

30.If a local class is defined in a function, which of the following is true for an object of that class ?
A. Object is accessible outside the function
B. Object can be declared inside any other function
C. Object can be used to call other class members
D. Object is accessible outside the function


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