Linux Startup and Shutdown Interview Preparation Guide
Linux Shutdown & Startup frequently Asked Questions by expert members with experience in Linux Startup and Shutdown. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts21 Linux Shutdown & Startup Questions and Answers:
1 :: Single user mode shell runs as:
a) Admin user
b) Root user
c) normal user
d) Log user
b) Root user
5 :: The shell used for Single user mode shell is:
a) bash
b) Csh
c) ksh
d) sh
d) sh
6 :: Bootstrapping is also known as:
a) Quick boot
b) Cold boot
c) Hot boot
d) Fast boot
b) Cold boot
8 :: The process of starting up a computer is known as:
a) Boot Loading
b) Boot Record
c) Boot Strapping
d) Booting
c) Boot Strapping
9 :: In this program the allocated memory block can store
<pre lang="c" line="1" cssfile="hk1_style">
#include<stdio.h>
#include<stdlib.h>
int main()
{
int *ptr;
ptr = malloc(10);
return 0;
}
a) int
b) char
c) float
d) all of the mentioned
d) all of the mentioned
Explanation:
When the malloc() is used without typecasting the default type is void*.
Explanation:
When the malloc() is used without typecasting the default type is void*.
10 :: Please tell me output of this program?
#include<stdio.h>
#include<stdlib.h>
int main()
{
int *ptr;
ptr = (int *)calloc(1,sizeof(int));
if (ptr != 0)
printf("%dn",*ptr);
return 0;
}
a) 0
b) -1
c) garbage value
d) none of the mentioned
a) 0
Explanation:
The memory allocated by calloc() contains 0 until process does not make any change to it.
Output:
[root@localhost google]# gcc -o san san.c
[root@localhost google]# ./san
0
[root@localhost google]
Explanation:
The memory allocated by calloc() contains 0 until process does not make any change to it.
Output:
[root@localhost google]# gcc -o san san.c
[root@localhost google]# ./san
0
[root@localhost google]