Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations

WB JECA MCA Previous Year Questions (PYQs)

WB JECA MCA Operating System PYQ


WB JECA MCA PYQ
Each stage in pipelining should be completed within _________cycles.
(A) 1 
(b) 2
(C) 3 
(D) 4





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

  • In pipelining, the CPU instruction is divided into stages (Fetch, Decode, Execute, etc.).
  • To maximize throughput, each stage must complete within 1 clock cycle.
  • This ensures that new instructions can enter the pipeline without delay.

Correct Answer: (A) 1

WB JECA MCA PYQ
A computer with a 32 bit wide data bus uses 4k × 8 static RAM memory chips. The smallest memory this computer is





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Each RAM chip = $4k \times 8 = 32k$ bits = 4 KB.
Bus width = 32 bits, each chip = 8 bits → need 4 chips in parallel.
Total memory = $4 \times 4$ KB = 16 KB.
Answer = (B) 16 kb

WB JECA MCA PYQ
The permission -rwx r-- r-- represented in octal expression will be





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Owner rwx = 7, group r-- = 4, others r-- = 4 ⇒ 744.
Answer: (B) 744

WB JECA MCA PYQ
Which command changes a file's group owner?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: The Unix command to change a file's group is chgrp (change group).
Answer: (D) chgrp

WB JECA MCA PYQ
Which of the following is/are not shared by threads?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Threads share code, data, and OS resources, but each thread has its own stack and program counter.
Answer: (C) Both program counter and stack

WB JECA MCA PYQ
Which one of the following is a synchronization tool?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Semaphore is used for process synchronization, unlike pipe/socket/thread.
Answer: (C) Semaphore

WB JECA MCA PYQ
When a process is in a "Blocked" state waiting for some I/O service, once completed it goes to the ____.





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: A blocked process (waiting for I/O) goes to the Ready state after I/O is completed.
Answer: (D) Ready state

WB JECA MCA PYQ
A process is thrashing if ____.





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Thrashing occurs when the CPU spends most of its time handling page faults rather than executing instructions.
Answer: (B) it spends more time in paging, rather than in execution

WB JECA MCA PYQ
Which one of the following is deadlock avoidance algorithm ?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Banker's algorithm checks for safe state to avoid deadlocks.
Answer: (B)

WB JECA MCA PYQ
Which command is used to set the three permissions for all the three categories of users of a file ?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: chmod sets read/write/execute bits for user, group, others (e.g., chmod 744 file).
Answer: (C) chmod

WB JECA MCA PYQ
Which command is used for printing the current working directory ?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: The Unix command to print the current directory is pwd.
Answer: (D) pwd

WB JECA MCA PYQ
When several processes access the same data concurrently and the outcome depends on the particular order in which the access takes place is called ________.





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Order-dependent outcomes from concurrent access is a classic race condition.
Answer: (A) Race condition

WB JECA MCA PYQ
Which option will be used with sort command to start sorting after the n-th column of the (m+1)th field ?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: The Unix sort option to specify starting column is +m -n.
Answer: (B)

WB JECA MCA PYQ
Which command is used for displaying the beginning of a file in Unix ?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: The head command displays first lines of a file.
Answer: (D)

WB JECA MCA PYQ
Three CPU-intensive processes (10, 20, 30 units) arrive at 0,2,6 respectively. Using shortest remaining time first scheduling, how many context switches are needed (excluding t=0 and end)?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: SRTF will preempt at arrivals (P1→P2 at t=2, P2→P3 at t=6). Thus 2 context switches occur.
Answer: (B) 2

WB JECA MCA PYQ
Which command is used to extract specific columns from the file ?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: The cut command extracts columns/fields from text files.
Answer: (B)

WB JECA MCA PYQ
Which of the following is not a communication command ?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: grep is for searching text, not communication.
Answer: (D)

WB JECA MCA PYQ
A deadlock avoidance algorithm dynamically examines the ____ to ensure circular wait never exists.





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Deadlock avoidance (e.g., Banker's) examines the resource allocation state.
Answer: (D)

WB JECA MCA PYQ
Virtual memory is normally implemented by ____.





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Virtual memory is usually implemented using demand paging.
Answer: (A)

WB JECA MCA PYQ

14. _________ is the most appropriate scheduling in case of a time-shared operating system.

(A) FCFS   (B) RR   (C) SJF   (D) SRTF






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Explanation: Time-sharing systems aim for responsiveness and fairness, which is best provided by Round Robin (RR) using time quanta.

WB JECA MCA PYQ

15. If only one process can be able to access a particular resource at a time, then it is known as ______________.

(A) Mutual execution   (B) Mutual exclusion   (C) Multiple execution   (D) Multiple exclusion






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Explanation: Allowing only one process to access a resource at a time is called mutual exclusion (mutex).

WB JECA MCA PYQ

16. Resource allocation graph is used to represent ______________.

(A) deadlock   (B) virtual memory   (C) main memory   (D) scheduling






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Explanation: Resource Allocation Graph (RAG) models processes and resources; cycles in certain cases indicate deadlock.

WB JECA MCA PYQ

17. Banker’s algorithm for resource allocation deals with ______________.

(A) mutual exclusion   (B) mutual inclusion   (C) deadlock recovery   (D) deadlock avoidance






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Explanation: Banker’s algorithm is a deadlock avoidance algorithm ensuring the system stays in a safe state.

WB JECA MCA PYQ

18. Page fault means ______________.

(A) required page is available in main memory   (B) required page is not available in main memory   (C) segment number   (D) reduce page I/O






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Explanation: A page fault occurs when the referenced page is not present in main memory, forcing a page-in from secondary storage.

WB JECA MCA PYQ

19. ___________ is a technique to move a process from main memory to secondary memory.

(A) Deadlock   (B) Synchronization   (C) Caching   (D) Swapping






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Explanation: Swapping transfers processes between main memory and secondary storage to manage memory pressure.

WB JECA MCA PYQ

20. Demand paging is considered as ______________.

(A) fetching a page when not needed   (B) switching between two processes   (C) fetching a page only when needed   (D) switching between two threads






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Explanation: In demand paging, a page is loaded into memory only when it is actually referenced.

WB JECA MCA PYQ

21. Thrashing means a condition having ______________.

(A) minimum paging   (B) optimized paging   (C) synchronized paging   (D) excessive paging






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Explanation: Thrashing occurs when the system spends most time paging due to insufficient frames, causing excessive paging and poor performance.

WB JECA MCA PYQ

22. A counting semaphore is initialized to 15. Then, 4 wait operations and 2 signal operations are completed on this semaphore. The resulting value of the semaphore is ____________.

(A) 11   (B) 13   (C) 17   (D) 19






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Explanation: Each wait (P) decrements; each signal (V) increments. Initial: 15 → after 4 waits: 11 → after 2 signals: 13. $$ 15 - 4 + 2 = 13 $$

WB JECA MCA PYQ

23. What do you mean by fork()? Choose the correct option.

(A) Starvation   (B) Creation of new task   (C) Demand paging   (D) Semaphore






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Explanation: fork() creates a new process (child) as a copy of the calling process.

WB JECA MCA PYQ

24. In file management, FAT means ______________.

(A) Feature Access Table   (B) File Access Table   (C) Fault Allocation Table   (D) File Allocation Table






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Explanation: FAT stands for File Allocation Table, a file system layout used to map files to disk clusters.

WB JECA MCA PYQ
33.In shell script, which command is used to create a new directory ? 





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

  • mkdir is the command to create a new directory in Unix/Linux.


WB JECA MCA PYQ
34.In shell script, which command is used to copy a file?






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

  • cp is used to copy files or directories in Unix/Linux.


WB JECA MCA PYQ
35.In shell script, which command is used to delete a file?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

  • rm is the command to remove/delete files in Unix/Linux.


WB JECA MCA PYQ
36.In Unix/Linux platform, which command is used to find out the difference between two files?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

  • diff compares two files line by line and shows differences.


WB JECA MCA PYQ
37.In Unix/Linux platform, which command is used to create a symbolic link?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

  • ln -s is used to create symbolic (soft) links in Linux.


WB JECA MCA PYQ
38.In Unix/Linux platform, which command is used to view the inode number of a file?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

  • ls -i displays the inode number of each file.


WB JECA MCA PYQ
39.In Unix/Linux platform, which command is used to specify the access mode for files?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

  • chmod is used to change file permissions (read/write/execute).


WB JECA MCA PYQ
40.In Unix/Linux platform, ______ command is used to show current running processes.





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

  • ps shows the list of currently running processes.



WB JECA MCA


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

WB JECA MCA


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...