Tag: programming languages

Questions Related to programming languages

  1. Use ls -l

  2. Use sizeof()

  3. Use filesize()

  4. Use fstat()


Correct Option: D
  1. Use getmemory()

  2. Use sysctl()

  3. Use freemem()

  4. Use malloc()


Correct Option: B
  1. A port to connect printer

  2. A port to connect keyboard

  3. An abstraction to pass data across processes

  4. A hardware device


Correct Option: C
  1. A mechanism to share non-sharable resources

  2. A mechanism to access memory very fast

  3. A mechanism to access kernel details

  4. None


Correct Option: A
  1. A printer queue

  2. An IPC mechanism with destructive execute

  3. An IPC mechanism with destructive write

  4. An IPC mechanism with destructive read


Correct Option: D
  1. No differences

  2. IPC mechanism vs Non-IPC mechanism

  3. Non-destructive read vs destructive read

  4. Destructive read vs non-destructive read


Correct Option: C
  1. sed 's/ */$//' test1

  2. sed 's/ *$//' test1

  3. sed 's/ *$//' test1

  4. sed 's/ *$\/\/' test1


Correct Option: B
  1. duplicate()

  2. dup()

  3. cp()

  4. mknod()


Correct Option: B
  1. Use chshell command

  2. update the file /var/passwd

  3. update the file /etc/users

  4. update the file /etc/passwd


Correct Option: D
  1. Both are Unix scheduling utilities

  2. at is restricted one and crontab is not restricted

  3. No difference

  4. at takes input from user while cron takes from a confiuration file


Correct Option: D