Mock Quiz Hub
Dark
Mock Quiz Hub
1
Recent Updates
Added: OS Mid 1 Quiz
Added: OS Mid 2 Quiz
Added: OS Lab 1 Quiz
Check back for more updates!
Time: 00:00
Quiz
Navigate through questions using the controls below
0%
Question 1 of 30
Quiz ID: q1
What is the primary purpose of the BIOS during the computer boot process?
Manages user logins
Reads the hard drive and loads the boot loader into RAM
Executes user applications
Formats the hard drive
Question 2 of 30
Quiz ID: q2
In a simple OS kernel project, why do we need a loader written in Assembly?
To print messages on the screen
To set the stack pointer and call the kernel's main function
To compile C++ code
To manage files
Question 3 of 30
Quiz ID: q3
Which memory address is typically used for directly writing characters to video memory in a simple PC OS kernel?
0x00007C00
0xB8000
0xFFFF0000
0x100000
Question 4 of 30
Quiz ID: q4
Why is extern "C" used with the kernel main function in C++?
To allow the loader to call the function without name mangling
To allow usage of C++ exceptions
To enable dynamic memory allocation
To support printf
Question 5 of 30
Quiz ID: q5
What is the purpose of the .multiboot section and the magic number 0x1badb002 in kernel development?
To identify the kernel file to the boot loader
To set the stack pointer
To initialize video memory
To allocate heap space
Question 6 of 30
Quiz ID: q6
What is the recommended emulator for running Pintos OS?
VMware
VirtualBox
QEMU
Bochs
Question 7 of 30
Quiz ID: q7
Which Linux command can you use to verify that your toolchain supports 32-bit x86 architecture?
uname -a
objdump -i | grep elf32-i386
gcc --version
lscpu
Question 8 of 30
Quiz ID: q8
What is the purpose of the Makefile in the Pintos kernel project?
To edit the kernel source code
To automate compilation and linkage of project files
To manage user commands
To allocate memory
Question 9 of 30
Quiz ID: q9
Where can you find utility scripts like pintos and pintos-gdb in the Pintos distribution?
src/kernel/
src/utils/
src/devices/
src/threads/
Question 10 of 30
Quiz ID: q10
What does the Pintos shell prompt look like according to the lab material?
$
#
CS2042>
Pintos>
Question 11 of 30
Quiz ID: q11
Which of the following is NOT a shell command you are required to implement in the Pintos OS lab?
whoami
shutdown
mkdir
ram
Question 12 of 30
Quiz ID: q12
In Pintos OS, which command is used to display the number of seconds since the Unix epoch?
time
date
uptime
seconds
Question 13 of 30
Quiz ID: q13
Why can’t you use the standard C library functions (like printf, scanf) in Pintos kernel mode?
Because they are not implemented in C
Because the kernel runs in user mode
Because the standard C library uses system calls unavailable in kernel mode
Because Pintos does not support input/output
Question 14 of 30
Quiz ID: q14
Which of the following is a recommended tool for debugging Pintos OS, as per the setup instructions?
cgdb
nano
emacs
gedit
Question 15 of 30
Quiz ID: q15
Which file should you edit to add the toolchain binaries to your environment PATH?
/etc/passwd
.bashrc
Makefile
kernel.c
Question 16 of 30
Quiz ID: q16
If i386-elf-gcc is not recognized after building the toolchain, what is the most likely cause?
The kernel is corrupted
The utility scripts are missing
The PATH environment variable is not updated correctly
The system does not support virtual memory
Question 17 of 30
Quiz ID: q17
What is the function of the shutdown command in the Pintos shell?
Restarts the shell
Shuts down Pintos OS and exits the QEMU emulator
Logs out the current user
Deletes all files
Question 18 of 30
Quiz ID: q18
Which Pintos directory contains the file where you implement the shell's main loop?
threads/
devices/
lib/
utils/
Question 19 of 30
Quiz ID: q19
What is the purpose of the .space 2*1024*1024; directive in the loader assembly code?
To clear the screen
To allocate space for the kernel stack
To allocate space between kernel and kernel stack
To reserve space for video memory
Question 20 of 30
Quiz ID: q20
What is the outcome if you run make in pintos/src/threads and everything is set up correctly?
The kernel source files will be deleted
The kernel and shell will be compiled and built
QEMU will automatically start
The system will reboot
Question 21 of 30
Quiz ID: q21
Which utility script is a wrapper around i386-elf-gdb and loads GDB macros for Pintos?
pintos-run
pintos-gdb
pintos-debug
pintos-emu
Question 22 of 30
Quiz ID: q22
Why is it recommended to use a UNIX/LINUX based OS for Pintos development?
Because Windows does not support GCC
Because UNIX/LINUX terminates processes faster
Because the toolchain and emulator are easier to set up and run
Because QEMU does not run on Windows
Question 23 of 30
Quiz ID: q23
Which function is the entry point for the Pintos kernel code (after the loader)?
main
kernelMain
pintos_main
start
Question 24 of 30
Quiz ID: q24
What is the purpose of the priority command in the Pintos shell?
To set thread priority
To display the thread priority of the current thread
To view process priorities
To change CPU scheduling
Question 25 of 30
Quiz ID: q25
What happens if no command line arguments are supplied to Pintos at boot?
The kernel runs an interactive shell
The system shuts down
The kernel panics
The user is prompted for input
Question 26 of 30
Quiz ID: q26
Which file in Pintos should you examine to understand or implement the shell functionality?
devices/input.c
threads/init.c
lib/stdio.c
kernel/loader.c
Question 27 of 30
Quiz ID: q27
Which command in the Pintos shell is used to quit the interactive shell?
halt
quit
exit
close
Question 28 of 30
Quiz ID: q28
What is the recommended way to run Pintos OS after making and building it?
./run
make run
make build
pintos --
Question 29 of 30
Quiz ID: q29
Which of the following is NOT an essential requirement to build and run Pintos OS?
Perl >= 5.8.0
QEMU
An x86 cross-compiler toolchain
Python 3.10
Question 30 of 30
Quiz ID: q30
What is the main reason for modifying the PATH environment variable during Pintos setup?
To enable network access
To run utility scripts and toolchain binaries from anywhere in the terminal
To change default shell
To enable debugging
Quiz Summary
Review your answers before submitting
30
Total Questions
0
Answered
30
Remaining
00:00
Time Spent
Submit Quiz
Back to Questions
Previous
Question 1 of 30
Next
!
Confirm Submission
Cancel
Submit Quiz