Solved Past Paper MCQs

Computer Instructor MCQs

Prepare for your examination with Computer Instructor past paper multiple-choice questions. Practice questions, check your answers and review explanations to improve your preparation.

32 Total MCQs
12 Questions on this page
2 Current page

Practice Computer Instructor MCQs

Select an option and check your answer to test your knowledge.

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

Which of the following is the correct statement?

View Correct 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
22

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

View Correct 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
23

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

View Correct 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
24

A time-sharing system implies:

View Correct 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
25

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

View Correct 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
26

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

View Correct 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
27

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

View Correct 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
28

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

View Correct 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
29

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

View Correct 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
30

Paging is implemented in:

View Correct 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
31

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

View Correct 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.

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

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

View Correct 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.

Back to All Past Paper MCQs