Tag: programming languages

Questions Related to programming languages

  1. a) vforlk() allows more one child process to be created simaltaneously whereas for() allows only one

  2. b) vfork() retains same PID for child & parent known as virtual PID

  3. c) vfork() suspends the parent process until child process exits

  4. d) fork() & vfork() are same


Correct Option: C
  1. a) vforlk() allows more one child process to be created simaltaneously whereas for() allows only one

  2. b) vfork() retains same PID for child & parent known as virtual PID

  3. c) vfork() suspends the parent process until child process exits

  4. d) fork() & vfork() are same


Correct Option: C
  1. a) getenv(), setenv()

  2. b) getenv(), putenv()

  3. c) readenv(), writeenv()

  4. d) You cannot environmement variables inside a program


Correct Option: B
  1. a) sleep(1/10)

  2. b) Not possible

  3. c) usleep()

  4. d) ssleep()


Correct Option: C
  1. a) Using open()

  2. b) Using popen()

  3. c) Using fork()

  4. d) Using exec()


Correct Option: B
  1. a) session.contains() method to determine if an instance belongs to the session cache.

  2. b) session.contains() method to determine if an instance belongs to the data base .

  3. c) Both are correct

  4. d) none of the above


Correct Option: A
  1. a) Use popen() & pclose()

  2. b) Use wait()

  3. c) Use ps()

  4. d) None


Correct Option: B