81.
Which one of the following string will print first by this program?
#include<stdio.h>
#include<pthread.h>
 
void *fun_t(void *arg);
void *fun_t(void *arg)
{
    printf("Example\n");
    pthread_exit("Bye");
}
int main()
{
    pthread_t pt;
    void *res_t;
    if(pthread_create(&pt,NULL,fun_t,NULL) != 0)
        perror("pthread_create");
    printf("Linux\n");
    if(pthread_join(pt,&res_t) != 0)
        perror("pthread_join");
    return 0;
}

86.
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;    
}

87.
Functions improves the shell's programmability significantly, because

Read More Section(Linux)

Each Section contains maximum 100 MCQs question on Linux. To get more questions visit other sections.