ExamVeda
Login
Home
31
After using the shared library, memory can be done free by calling
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
32
Command line parameters are passed by the
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
33
What is the output of this program?
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
 
int main()
{
    pid_t child;
    int status;
    child = fork();        
        switch(child){
            case -1 :
                perror("fork");
                exit(1);
            case 0 :
                exit(2);
                break;
            default :       
                wait(&status);
                printf("%d\n",WEXITSTATUS(status));
                break;
        }
        return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
34
What is the output of this program?
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
 
int main()
{
    pid_t child;
    int status;
    child = fork();
    switch(child){
        case -1 ;
            perror("fork");
            exit(1);
        case 0 :
            printf("%d\n",getppid());
            break;
        default :
            printf("%d\n",getpid());
            wait(&status);
            break;
     }
     return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
35
After running this program, as you press 'e', what will be the output of the program?
#!/bin/bash
echo "press 'e' to print Example"
read var
if $var=e
then
echo "Example"
else
echo "You did not press e"
fi
exit 0
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
36
To print the value of a variable while debugging with GDB, . . . . . . . . command can be used.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
37
With the list command, by default GDB prints the . . . . . . . . source lines.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
38
Creation of hardlinks that point across partitions
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
39
The permission -rwxr–r– represented in octal expression will be
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
40
Which one of the following function is used to create a new attribute?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board