ExamVeda
Login
Home
1
Which one of the following command saves the command history of GDB in a file?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
2
When a target of makefile fails to execute
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
3
Which command sets the number for all lines?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
4
Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
5
Which one of the following is not true?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
6
Which of the following commands will allow the user to search contents of a file for a particular pattern
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
7
Daemon process is a?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
8
What is the output of this program?
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<sys/types.h>
#include<sys/ipc.h>
#include<sys/msg.h>
 
struct data_st{
    long int id;
    char buff[11];
};
int main()
{
    int m_id;
    struct data_st data1, data2;
    m_id = msgget((key_t)181,0666|IPC_CREAT);
    if(m_id == -1)
        perror("msgget");
    data1.id = 1;
    strcpy(data1.buff,"Example");
    if(msgsnd(m_id,&data1,11,0) == -1)
        perror("msgsnd");
    if(msgctl(m_id,IPC_RMID,0) != 0)
        perror("msgctl");
    if(msgrcv(m_id,&data2,11,1,0) == -1)
        perror("msgrcv");
    printf("%s\n",data2.buff);
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
9
Which of the following umask settings doesn't allow execute permission to be set by default on directory files
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
10
The directories of /sys directory
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board