Q: 1 Which of the following is the latest version of Android operating system?
Lollipop
Oreo
Marshmallow
KitKat
[ Option B ]
Among the given options, Android Oreo is the most recent version.
| VERSION NO. | CODE NAME | RELEASE YEAR |
|---|---|---|
| 1.0 | - | 2008 |
| 1.1 | - | 2009 |
| 1.5 | Cupcake | 2009 |
| 1.6 | Donut | 2009 |
| 2.0 – 2.1 | Eclair | 2009 |
| 2.2 | Froyo | 2010 |
| 2.3 | Gingerbread | 2010 |
| 3.0 – 3.2 | Honeycomb | 2011 |
| 4.0 | Ice Cream Sandwich | 2011 |
| 4.1 – 4.3 | Jelly Bean | 2012 |
| 4.4 | KitKat | 2013 |
| 5.0 – 5.1 | Lollipop | 2014 |
| 6.0 | Marshmallow | 2015 |
| 7.0 – 7.1 | Nougat | 2016 |
| 8.0 – 8.1 | Oreo | 2017 |
| 9 | Pie | 2018 |
| 10 | Android 10 | 2019 |
| 11 | Android 11 | 2020 |
| 12 | Android 12 | 2021 |
| 13 | Android 13 | 2022 |
| 14 | Android 14 | 2023 |
Q: 2 The fork return _________ to the parent and returns __________ to the child process, when successful.
0, Parent Process ID
Child Process ID, 0
Child Process ID, Parent Process ID
0, 0
[ Option B ]
In operating systems, the fork() system call is used to create a new process called the child process. After calling fork(), both parent and child processes continue execution from the same point, but the return values help distinguish them.
When fork() is Successful:
Q: 3 Which of the following UNIX command(s) allows scheduling a program to be executed at the specified time?
cron
nice
vmstat
‘date’ and ‘time’
[ Option A ]
In Unix/Linux systems, the cron command is used to schedule programs or tasks to run automatically at a specified time or at regular intervals. It works through a configuration file called crontab, where users can define when and which command should be executed.
Q: 4 Choose the correct option considering the assertion and reason in context of Service Level Agreement (SLA) in cloud computing.
Assertion (A): SLAs are important only from the customer's point of view.
Reason (R): Customers use SLAs to compare services and choose the best CSP.
Both (A) and (R) are true, and (R) is the correct explanation of (A).
Both (A) and (R) are true, but (R) is not the correct explanation of (A).
(A) is true, but (R) is false.
(A) is false, (R) is true.
[ Option D ]
A Service Level Agreement (SLA) is a contract between a cloud provider and a customer that defines expected service quality, availability, and responsibilities. SLAs are important for both the customer, who uses them to compare and choose services, and the provider, who clarifies obligations and limits liability.
Q: 5 Which among the following is incorrect for a Linux command?
The ps command is used to find the status of processes in a system
The grep command searches for patterns in a file
The cat command concatenates or displays file contents to standard output
The top command lists the first few lines of a file
[ Option D ]
In Linux, different commands are used for specific purposes related to system management and file handling.
However, the top command is used to display real-time information about system processes such as CPU and memory usage. It does not display the first few lines of a file. That function is performed by commands like head.
Q: 6 Which Linux mechanism/utility helps users to schedule a job to run in fixed times, days or intervals?
crontab
task manager
sched
awk
[ Option A ]
In Linux, scheduling tasks to run automatically at specific times, dates, or intervals is done using the cron (crontab) utility. It allows users to define jobs that will execute periodically, such as every minute, hour, day, or week.
This mechanism is managed by the cron daemon, which reads the crontab file and executes tasks accordingly.
Q: 7 The following commands are sequentially executed in a Linux system. What is the final output?
mkdir a
cd a
touch b
touch c
ls>d.txt
grep “b” d.txt
a
b
b c
d.txt
[ Option B ]
These Linux commands are executed step by step. First, mkdir a creates a directory named a, and cd a moves inside it. Then touch b and touch c create two empty files named b and c inside directory a.
Next, ls>d.txt lists all files in the directory (b and c) and stores this output in a file named d.txt. So, d.txt contains, bc.
Finally, grep "b" d.txt searches for lines containing b in the file d.txt. Since only one line contains b, the output will be b.
Q: 8 Which of the following is TRUE about a hypervisor in a virtualized system?
It lets each guest OS control hardware and manage other VMs.
It allows secure sharing of hardware among multiple guest OSs.
It enables guest OSs to run in kernel mode and manage devices.
It isolates VMs but prevents live migration between platforms.
[ Option B ]
A Hypervisor is a software layer that enables virtualization, allowing multiple guest operating systems (OSs) to run simultaneously on a single physical machine. It manages and allocates hardware resources securely among the virtual machines (VMs), ensuring that each VM operates independently without interfering with others.
Hypervisors do not allow guest OSs to directly control hardware or run in kernel mode for managing devices.
Q: 9 What is the command used to attach a new file system to the existing directory structures in UNIX?
attach
link
mount
move
[ Option C ]
In Unix/Linux systems, the mount command is used to attach a new file system to the existing directory structure.
It makes the files and directories of the new storage device accessible at a specific directory called the mount point.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.