31. Which GDB command prints the value of a variable in hex.
32. The file /proc/[PID]/cmdline holds the complete command line for the process, unless the process is a
33. User id 0 is
34. What is the output of this progarm?
#include<stdio.h>
#include<unistd.h>
int main()
{
pid_t child;
int a, b;
a = 10;
b = 20;
child = fork();
a = a + b;
if(child > 0){
printf("%d\n",a);
}
return 0;
}
#include<stdio.h>
#include<unistd.h>
int main()
{
pid_t child;
int a, b;
a = 10;
b = 20;
child = fork();
a = a + b;
if(child > 0){
printf("%d\n",a);
}
return 0;
}
35. Which of the following is not a valid file type on Linux
36. What is the output of this program?
#! /usr/bin/awk -f
BEGIN {
var1="example"
var2="linux"
print var1" provides "var2" MCQs "
}
#! /usr/bin/awk -f
BEGIN {
var1="example"
var2="linux"
print var1" provides "var2" MCQs "
}
37. To redefine a variable, it can be removed from the list of variables by using the command
38. The built-in function tolower()
39. Which compilation step makes sure that all the undefined symbols in the code are resolved.
40. Macros for the makefile can be defined in
Read More Section(Linux)
Each Section contains maximum 100 MCQs question on Linux. To get more questions visit other sections.