Programming and Data Structures (GATE Computer Science): Questions 134 - 139 of 151

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: 134

» Programming and Data Structures » Programming in C

MCQ▾

Question

The channel capacity of a band-limited Gaussian channel is given by

Choices

Choice (4) Response

a.

B log2 (2 + S/N)

b.

B log2 (1 + S/N) < /

c.

B log2 (2 + 2S/N)

d.

B log10 (2 + S/N)

Question number: 135

» Programming and Data Structures » Programming in C

MCQ▾

Question

Which of the following page replacement algorithms suffers from Belady’s anomaly?

Choices

Choice (4) Response

a.

FIFO

b.

Optimal replacement

c.

LRL

d.

Question does not provide sufficient data or is vague

Question number: 136

» Programming and Data Structures » Programming in C

MCQ▾

Question

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

  1. #define call(x#x void main()
  2. {
  3.     printf("%s",call(c/c++));
  4. }

Choices

Choice (4) Response

a.

Java

b.

C

c.

C++

d.

Both b. and c. are correct

Question number: 137

» Programming and Data Structures » Binary Heaps

MCQ▾

Question

Binary numbers need more places for counting because -

Choices

Choice (4) Response

a.

They are always big numbers

b.

Binary base is small

c.

Any no. of 0’s can be added in front of them

d.

All a. , b. and c. are correct

Question number: 138

» Programming and Data Structures » Binary Heaps

MCQ▾

Question

What is the two’s complement of 1010?

Choices

Choice (4) Response

a.

10110

b.

0101

c.

1100

d.

Question does not provide sufficient data or is vague

Question number: 139

» Programming and Data Structures » Functions

MCQ▾

Question

The goal of structured programming is to

Choices

Choice (4) Response

a.

be able to infer the flow of control from the compiled code

b.

have well indented programs

c.

avoid the use of GOTO statements

d.

be able to infer the flow of control from the program text

Sign In