aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Computer Science (GATE Exam) 2008 - Previous Question Paper Solution
  • A process executes the following code for (i = 0; i < ...
Multiple choice

A process executes the following code for (i = 0; i < n; i++) for (); The total number of child processes created is

  1. n

  2. 2n −1

  3. 2n

  4. 2n+1 -1

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Keep practicing — related questions

  • A process executes the code fork ( ); fork ( ); fork ( ); The total number of child processes created is
  • How many child processes are created if two fork () system calls are called?
  • How many times will the body of the following loop execute? nt m = 10,n = 7; while(m%n>0) {… m = m+1; n = n...
  • When a process executes, it changes its state. Through how many states does a process undergo?
  • int n = 0; for ( ; ; ) { if (n++ == 5) break; continue; } printf("x=%d\n", x); What will be printed when th...
  • Consider the following segment of C-code: int j, n; j = 1; while (j <= n) j = j*2 The number of comparisons...
  • Consider the following segment of C-code: int j, n; j = 1; while (j <= n) j = j*2 The number of comparisons...
  • The following program consists of 3 concurrent processes and 3 binary semaphores. The semaphores are initia...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy