Programming and Data Structures-Programming in C (GATE Computer Science): Questions 87 - 92 of 134

Get 1 year subscription: Access detailed explanations (illustrated with images and videos) to 913 questions. Access all new questions we will add tracking exam-pattern and syllabus changes. View Sample Explanation or View Features.

Rs. 450.00 or

Question number: 87

» Programming and Data Structures » Programming in C

MCQ▾

Question

What will be output if you will compile and execute the following code?

  1. void main()
  2. {
  3.     int a=25;
  4.     clrscr();
  5.     printf("o %x",a,a);
  6.     getch();
  7. }

Choices

Choice (4) Response

a.

31 39

b.

12 42

c.

25 25

d.

025 x 25

Question number: 88

» Programming and Data Structures » Programming in C

MCQ▾

Question

Spiral Model was developed by?

Choices

Choice (4) Response

a.

Berry Bohem

b.

Victor Bisili

c.

Roger Pressman

d.

Bev Littlewood

Question number: 89

» Programming and Data Structures » Programming in C

MCQ▾

Question

What will be output if you will compile and execute the following c code?

  1. void main()
  2. {
  3.     int i=320;
  4.     char *ptr=(char *)&i;
  5.     printf("%d",*ptr);
  6. }

Choices

Choice (4) Response

a.

Error

b.

1

c.

64

d.

320

Question number: 90

» Programming and Data Structures » Programming in C

MCQ▾

Question

Thrashing can be avoided if

Choices

Choice (4) Response

a.

the speed of CPU is increased

b.

the speed of I/O processor is increased

c.

the pages, belonging to the working set of the programs, are in main memory

d.

Question does not provide sufficient data or is vague

Question number: 91

» Programming and Data Structures » Programming in C

MCQ▾

Question

The LRU algorithm

Choices

Choice (4) Response

a.

pages out pages that have not been used recently

b.

pages out pages that have been least used recently

c.

pages out pages that have been used recently

d.

None of the above

Question number: 92

» Programming and Data Structures » Programming in C

MCQ▾

Question

Situation where two or more processes are reading or writing some shared data and the final result depends upon who runs precisely is called?

Choices

Choice (4) Response

a.

mutual exclusion

b.

critical section

c.

message passing

d.

race condition

Sign In