Linux

A visually engaging image representing Linux operating system concepts, such as terminal commands, process management, and system architecture, in a modern, tech-inspired design.

Test Your Linux Knowledge!

Welcome to the ultimate quiz designed to challenge your understanding of Linux operating systems. Whether you’re a beginner or an experienced user, this quiz covers a variety of topics from processes to system calls.

Challenge yourself with:

  • 10 thought-provoking questions
  • A mix of theoretical and practical scenarios
  • A chance to boost your confidence in Linux!
10 Questions2 MinutesCreated by CodingFox412
What is the default maximum number of processes that can exist in Linux?
A) 32768
B) 1024
C) 4096
D) unlimited
Parent process id of a deamon process is_________________
A) 2
B) 3
C) 4
D) 1

What is the output of the below code?
 

 
 void exit_handler1();   
 void exit_handler2();    
 int main() 
 {     
	int pid;        
	atexit(exit_handler1);      
	atexit(exit_handler2);     
	pid = fork();       
	if(pid == 0) 
	{        
		_exit(0);      
        } 
        else 
	{          
		sleep(2);            
		exit(0);     
	}     
	return 0;    
}
A) Only child executes the exit_handler 1 and 2
B) Only parent executes the exit_handler 1 and 2
C) Both parent and child executes the exit_handler 1 and 2
D) Neither parent nor child executes the exit_handler 1 and 2
Return value of fork() system call can be:
A) -1,<0, 0
B) -1,>0, 0
C) -1,<0
D) none of the mentioned
Among these files which has an ELF format
A) shared objects
B) core
C) executables
D) all of the mentioned
Which one can be a real time schedule policy?
A) SCHED_FIFO
B) SCHED_SPF
C) SCHED_OTHER
D) SCHED_FILO
Each process has unique
A) fd table
B) file table
C) inode table
D) data block table
File descriptor table indexes which kernel structure?
A) struct file
B) strruct fs_struct
C) files_struct
D) struct inode
Which signal is sent when the Child process terminates?
A) SIGINIT
B) SIGKILL
C) SIGSTOP
D) SIGCHLD

What is the output of the below code?

    void sig_handler ( int signum) {
        printf(“Handled the signal\n”);
    }
 
    int main() {
        int pid;
        signal (SIGKILL, sig_handler);
        pid = fork();
        if (pid==0) {
            kill(getppid(), SIGKILL);
            exit(0);
        } else {
            sleep(20);
        }
        return 0;
    }
A) Error child cannot send a SIGKILL signal to parent
B) Parent goes to the signal handler, prints handled the signal and goes back to sleep
C) Parent goes to the signal handler, prints handled the signal and exits
D) Parent exits without going to the signal handler
{"name":"Linux", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Welcome to the ultimate quiz designed to challenge your understanding of Linux operating systems. Whether you’re a beginner or an experienced user, this quiz covers a variety of topics from processes to system calls.Challenge yourself with:10 thought-provoking questionsA mix of theoretical and practical scenariosA chance to boost your confidence in Linux!","img":"https:/images/course8.png"}
Powered by: Quiz Maker