Q Which of the following API is used to hide a window
a) ShowWindow
b) EnableWindow
c) MoveWindow
d) SetWindowPlacement
e)None of the above
Ans) a
Q enum number { a=-1, b= 4,c,d,e} what is the value of e ?
a)6
b)7
c)8
d)9
ans b
Q PS1 pwd
export PS1 results in
a). your primary prompt being your current directory
b). " " and secondary prompts being the current dir
c). " " prompt being your home dir
d). " " and secondary prompts being the home dir
e). None of the above.
ans a
Q In the process table entry for the kernel process, the process id value is
a) 0
b) 1
c) 2
d) 255
e) it does not have a process table entry
Ans) a
Q + means * and * means / and / means % what is the value of 2+3*5/7
ans 1.2
18)What will be the result of the following program?
main()
{
char p[]="String";
int x=0;
if(p=="String")
{
printf("Pass 1");
if(p[sizeof(p)-2]=='g')
printf("Pass 2");
else
printf("Fail 2");
}
else
{
printf("Fail 1");
if(p[sizeof(p)-2]=='g')
printf("Pass 2");
else
printf("Fail 2");
}
}
a) Pass 1, Pass 2
b) Fail 1, Fail 2
c) Pass 1, Fail 2
d) Fail 1, Pass 2
e) syntax error during compiation
a) ShowWindow
b) EnableWindow
c) MoveWindow
d) SetWindowPlacement
e)None of the above
Ans) a
Q enum number { a=-1, b= 4,c,d,e} what is the value of e ?
a)6
b)7
c)8
d)9
ans b
Q PS1 pwd
export PS1 results in
a). your primary prompt being your current directory
b). " " and secondary prompts being the current dir
c). " " prompt being your home dir
d). " " and secondary prompts being the home dir
e). None of the above.
ans a
Q In the process table entry for the kernel process, the process id value is
a) 0
b) 1
c) 2
d) 255
e) it does not have a process table entry
Ans) a
Q + means * and * means / and / means % what is the value of 2+3*5/7
ans 1.2
18)What will be the result of the following program?
main()
{
char p[]="String";
int x=0;
if(p=="String")
{
printf("Pass 1");
if(p[sizeof(p)-2]=='g')
printf("Pass 2");
else
printf("Fail 2");
}
else
{
printf("Fail 1");
if(p[sizeof(p)-2]=='g')
printf("Pass 2");
else
printf("Fail 2");
}
}
a) Pass 1, Pass 2
b) Fail 1, Fail 2
c) Pass 1, Fail 2
d) Fail 1, Pass 2
e) syntax error during compiation
Comments
Post a Comment