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 21–32 of 32
COMPUTER SCIENCE Computer Instructor BPS-17 AJKPSC Solved Past Paper 2019 MCQS
21

While coding in C/C++, for "Call by Reference" we pass:

View Answer & Explanation
Correct Answer

A. Address of variable

Explanation

In traditional C, call by reference is achieved by passing the address of a variable using a pointer. In C++, references can also be used to allow a function to operate directly on the original variable.

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

Which of the following is the correct statement?

View Answer & Explanation
Correct Answer

A. Variable name must start with an underscore or letter

Explanation

In C/C++, an identifier such as a variable name must begin with a letter or underscore. It may contain letters, digits, and underscores afterward, but it cannot contain whitespace or be a reserved keyword.

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

In C/C++ Programming, "a" is used for:

View Answer & Explanation
Correct Answer

D. Alarm

Explanation

In C and C++, \a is an escape sequence that produces an alert or alarm character. On systems that support it, this may produce an audible beep or other alert.

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

In C/C++ Programming, the strcmp() function is used to:

View Answer & Explanation
Correct Answer

C. Compare two Strings

Explanation

The strcmp() function in C/C++ compares two null-terminated strings character by character. It returns 0 when the strings are equal, a negative value when the first string is smaller, and a positive value when the first string is larger.

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

A time-sharing system implies:

View Answer & Explanation
Correct Answer

C. More than one program in memory

Explanation

A time-sharing system allows multiple users or programs to share CPU time. Multiple programs are kept in memory, and the CPU rapidly switches among them to provide interactive execution. It does not require multiple processors.

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

When there is enough memory to fit a process in memory, but the space is not contiguous, we need:

View Answer & Explanation
Correct Answer

C. External Fragmentation

Explanation

External Fragmentation occurs when enough total free memory is available to satisfy a process request, but the free space is scattered across separate non-contiguous blocks. Therefore, the process cannot be allocated despite sufficient total free memory.

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

Which memory allocation policy allocates the largest hole to the process?

View Answer & Explanation
Correct Answer

B. Worst-Fit

Explanation

Worst-Fit is a memory allocation strategy that searches for and allocates the largest available free memory block, or hole, to a process. It is intended to leave relatively large remaining holes for future allocations.

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

Divided logical memory into blocks with the same size as frames are called:

View Answer & Explanation
Correct Answer

A. Pages

Explanation

In paging, logical memory is divided into fixed-size blocks called pages, while physical memory is divided into fixed-size blocks called frames. Pages and frames have the same size, allowing pages to be mapped to available frames.

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

Bringing a page into memory only when it is needed is called:

View Answer & Explanation
Correct Answer

A. Demand Paging

Explanation

Demand Paging is a virtual memory technique in which pages are loaded into physical memory only when they are needed. If a required page is not currently in memory, a page fault occurs and the operating system loads the page from secondary storage.

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

Page-Table Length Register (PTLR) indicates the size of:

View Answer & Explanation
Correct Answer

A. Page Table

Explanation

The Page-Table Length Register (PTLR) indicates the size or length of the page table. It helps determine the number of entries present in the page table for a process.

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

Paging is implemented in:

View Answer & Explanation
Correct Answer

A. Operating System

Explanation

Paging is a memory-management scheme used by the operating system to divide logical memory into fixed-size pages and physical memory into fixed-size frames. The operating system manages the mapping between pages and frames using page tables.

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

Which scheduler selects which processes should be brought into the ready queue?

View Answer & Explanation
Correct Answer

B. Long-Term

Explanation

The Long-Term Scheduler, also called the Job Scheduler, controls the degree of multiprogramming by selecting processes from the job pool and admitting them into the ready queue. The Short-Term Scheduler selects a process from the ready queue for CPU execution, while the Mid-Term Scheduler is mainly involved in swapping processes in and out of memory.