NTA-NET (Based on NTA-UGC) Computer Science (Paper-II): Questions 639 - 641 of 2012

Access detailed explanations (illustrated with images and videos) to 2012 questions. Access all new questions we will add tracking exam-pattern and syllabus changes. Subscription can be renewed yearly absolutely FREE! View Sample Explanation or View Features.

Rs. 550.00 or

How to register?

Question number: 639

» Operating Systems with Unix » Multiprogramming, Multiprocessing, and Multitasking

Edit

Appeared in Year: 2013

Match List-Ⅰ List-Ⅱ▾

Question

Match the following: (September Paper II)

List-Ⅰ (Process State Transition) List-Ⅱ (Reason For Transition)

(A)

Blocked Ready

(i)

Request made by the process is satisfied or an event for which it was waiting occurs.

(B)

Running Blocked

(ii)

Process wishes to wait for some action by another process.

(C)

Running Ready

(iii)

The process is dispatched.

(D)

Ready Running

(iv)

The process is preempted.

Choices

Choice (4) Response
  • (A)
  • (B)
  • (C)
  • (D)

a.

  • (iv)
  • (iii)
  • (i)
  • (ii)

b.

  • (i)
  • (ii)
  • (iv)
  • (iii)

c.

  • (ii)
  • (iv)
  • (iii)
  • (i)

d.

  • (iii)
  • (i)
  • (ii)
  • (iv)

Question number: 640

» Analysis and Design of Algorithms » Quicksort-Non-Recursive Implementation with Minimal Stack Storage

Edit

Appeared in Year: 2013

MCQ▾

Question

Suppose that the splits at every level of Quicksort are in proportion where is a constant. The number of elements in an array is n. The maximum depth is approximately (September Paper II)

Choices

Choice (4) Response

a.

b.

c.

d.

Question number: 641

» Programming in C and C Plus Plus » Programming in C » Structured Data Types in C-Arrays, Struct, Union, String, and Pointers

Edit

Appeared in Year: 2013

MCQ▾

Question

Consider the following sequence of operations:

(i) Pointer is set to point at a new heap-dynamic variable.

(ii) Pointer is assigned ’s value.

(iii) The heap dynamic variable pointed to by is explicitly de-allocated, but is not changed by the operation.

This situation leads to which of the following: (September Paper-III)

Choices

Choice (4) Response

a.

becomes a dangling pointer

b.

becomes a dangling pointer

c.

and are now dangling pointers

d.

Neither nor is now a dangling pointer

Developed by: