BRAND-WISE EXAM PREPARATION MCQ PRACTICE

Prepare for AJKPSC Solved Past Paper MCQs

Practice important and frequently repeated AJKPSC past paper MCQs. Test your knowledge with solved questions, correct answers, and helpful explanations to improve your exam preparation.

Solved Questions Answer Explanations Exam-Focused Practice
Practice Available
32
Available Practice MCQs
AJKPSC Examination Brand
32
Practice Questions
Solved
Past Paper Questions
Learn & Practice
Answers with Explanations

Practice AJKPSC MCQs

Explore solved questions from previous examinations and review detailed explanations.

Showing 1–20 of 32
COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
1

To initialize an array of objects, only ______ will be called.

View Answer & Explanation
Correct Answer

A. Default Constructor

Explanation

When an array of objects is created without constructor arguments, the default constructor is invoked for each object. If constructor arguments are required, appropriate initialization must be provided.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
2

Buffering is the process of:

View Answer & Explanation
Correct Answer

A. Temporarily storing data to accommodate variations in device speeds

Explanation

Buffering temporarily stores data in a memory area called a buffer. It helps manage differences in the speeds at which devices produce and process data.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
3

The amount of uncertainty associated with a system or symbol is called:

View Answer & Explanation
Correct Answer

B. Entropy

Explanation

In information theory, entropy measures the uncertainty or randomness associated with information. Higher entropy generally means greater uncertainty about the outcome of a symbol or event.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
4

The area covered by a satellite radio beam is called its:

View Answer & Explanation
Correct Answer

C. Footprint

Explanation

A satellite's footprint is the geographical area on Earth's surface where its transmitted signal can be received effectively.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
5

A coaxial cable consists of conductors that have:

View Answer & Explanation
Correct Answer

A. A common axis

Explanation

The term coaxial means that the conductors share the same axis. A coaxial cable typically has a central conductor surrounded by insulation, a metallic shield, and an outer protective jacket.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
6

Which of the following is an example of a bounded transmission medium?

View Answer & Explanation
Correct Answer

D. All of the above

Explanation

Bounded or guided transmission media provide a physical path for signals. Coaxial cables, waveguides, and fiber-optic cables all guide signals through a defined physical medium.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
7

What is the minimum number of wires needed to send data over a serial communication link?

View Answer & Explanation
Correct Answer

A. 1

Explanation

Serial communication transmits data one bit at a time over a communication path. In its simplest form, a single wire can carry the data signal, with a common ground or reference assumed.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
8

______ is concerned with realizing a software design using an object-oriented programming language.

View Answer & Explanation
Correct Answer

D. Object-Oriented Programming

Explanation

Object-Oriented Programming (OOP) is concerned with implementing software using an object-oriented programming language. It uses concepts such as classes, objects, inheritance, polymorphism, encapsulation, and abstraction.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
9

Select the correct line of code for the inheritance relationship between the Keys class and the SpecialKeys class.

View Answer & Explanation
Correct Answer

C. class SpecialKeys : public Keys

Explanation

The statement class SpecialKeys : public Keys declares SpecialKeys as a derived class of Keys. It means SpecialKeys inherits the accessible public and protected members of Keys.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
10

For the statement std3 = std1 - std2 to work correctly, the overloaded - operator must:

View Answer & Explanation
Correct Answer

B. Take a single argument

Explanation

When the binary - operator is overloaded as a member function, the left operand is the calling object and the right operand is passed as one argument. Therefore, the overloaded operator function takes a single explicit argument.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
11

Select the correct line of code for the inheritance relationship between the Gender class and the Male class.

View Answer & Explanation
Correct Answer

C. class Male : public Gender

Explanation

The statement class Male : public Gender declares Male as a derived class of Gender. The colon followed by public specifies public inheritance in C++.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
12

In ______, a pointer or reference to an object is created inside a class.

View Answer & Explanation
Correct Answer

A. Aggregation

Explanation

Aggregation is a relationship in which one class contains a reference or pointer to an object of another class, while the contained object can exist independently of the containing object.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
13

Select the correct line of code for the inheritance relationship between the Person class and the Supervisor class.

View Answer & Explanation
Correct Answer

C. class Supervisor : public Person

Explanation

In C++, the syntax class Supervisor : public Person declares Supervisor as a derived class of Person. This establishes a public inheritance relationship where Supervisor inherits accessible public and protected members of Person.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
14

In ______, a pointer or reference to an object is created inside a class.

View Answer & Explanation
Correct Answer

D. None of the given

Explanation

The question as written does not provide the standard relationship name for a class containing a pointer or reference to an object. Therefore, among the given choices, None of the given is the intended answer.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
15

A copy constructor is called when:

View Answer & Explanation
Correct Answer

A. An object is created in terms of a pre-existing object

Explanation

A copy constructor is used to create and initialize a new object from an existing object of the same class. It is commonly invoked when an object is copied during initialization or passed by value.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
16

What type of relationship exists between the Account class and the SavingAccount class?

View Answer & Explanation
Correct Answer

A. Inheritance

Explanation

If SavingAccount is a specialized type of Account, then SavingAccount derives from the Account class. This represents an inheritance relationship, commonly expressed using public inheritance in C++.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
17

Which of the following is NOT an approach to handling deadlocks?

View Answer & Explanation
Correct Answer

D. Virtual Memory

Explanation

Deadlock Prevention, Deadlock Avoidance, and Deadlock Detection & Recovery are standard methods for handling deadlocks. Virtual Memory deals with memory management by allowing processes to use virtual address space beyond available physical memory.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
18

Which of the following is the incorrect statement?

View Answer & Explanation
Correct Answer

B. An array is a collection of variables

Explanation

An array is a collection of elements of the same data type. Its individual elements can be accessed using an index. Therefore, the statement that an array is simply a collection of variables is considered incorrect in this context.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
19

Which of the following is not a type of variable?

View Answer & Explanation
Correct Answer

D. None of the above

Explanation

Extern and register are storage-related classifications in C/C++, while global describes a variable with global scope. Therefore, none of the listed choices is excluded as a variable type or classification.

COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
20

Which of the following is the symbol for the AND operator?

View Answer & Explanation
Correct Answer

B. &&

Explanation

The && operator is the logical AND operator in C and C++. It returns true when both conditions are true. The single & symbol is the bitwise AND operator.