Q641
Open questionSelect an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
996
Questions
33/50
Page
Pick an option on a question to see the right answer and solution.
Q641
Open questionSelect an option to see the answer and solution.
Q642
Open questionSelect an option to see the answer and solution.
Q643
Open questionSelect an option to see the answer and solution.
Q644
Open questionSelect an option to see the answer and solution.
Q645
Open question#include<stdio.h>
#include<fcntl.h>
#include<errno.h>
#include<sys/stat.h>
#include<sys/mman.h>
int main()
{
int s_id;
s_id = shm_open("shared_mem",O_CREAT|O_RDWR,0666);
if(s_id != EACCES)
perror("Permission granted\n");
return 0;
}Select an option to see the answer and solution.
Q646
Open questionSelect an option to see the answer and solution.
Q647
Open questionSelect an option to see the answer and solution.
Q648
Open question#include<stdio.h>
#include<unistd.h>
int main()
{
long int value;
value = sysconf(_SC_OPEN_MAX);
printf("%ld\n",value);
return 0;
}Select an option to see the answer and solution.
Q649
Open questionSelect an option to see the answer and solution.
Q650
Open questionSelect an option to see the answer and solution.
Q651
Open questionSelect an option to see the answer and solution.
Q652
Open questionSelect an option to see the answer and solution.
Q653
Open questionSelect an option to see the answer and solution.
Q654
Open questionSelect an option to see the answer and solution.
Q655
Open question#!/bin/bash
function hello_function1 {
echo "This is first function"
}
hello_function2() {
echo "This is second function"
}
hello_function1
hello_function2
exit 0Select an option to see the answer and solution.
Q656
Open questionSelect an option to see the answer and solution.
Q657
Open questionSelect an option to see the answer and solution.
Q658
Open question#include<stdio.h>
#include<sys/time.h>
#include<sys/resource.h>
int main()
{
struct rlimit limit;
limit.rlim_cur = 10;
limit.rlim_max = 20;
if(setrlimit(RLIMIT_NOFILE,&limit) != 0)
perror("setrlimit");
if(getrlimit(RLIMIT_NOFILE,&limit) != 0)
perror("getrlimit");
printf("%lu\n",limit.rlim_cur);
printf("%lu\n",limit.rlim_max);
return 0;
}Select an option to see the answer and solution.
Q659
Open questionSelect an option to see the answer and solution.
Q660
Open questionSelect an option to see the answer and solution.