GATE Computer Science: Questions 125 - 131 of 913

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

» Programming and Data Structures » Programming in C

MCQ▾

Question

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

  1. int extern x;
  2. void main() {
  3.     printf("%d",x);
  4.     x=2;
  5.     getch();
  6. }
  7. int x=23;

Choices

Choice (4) Response

a.

0

b.

compiler error

c.

23

d.

2

Question number: 126

» Operating System » Threads

MCQ▾

Question

The many-to-many model multiplexes many user-level threads to ________ of kernel threads.

Choices

Choice (4) Response

a.

A greater or equal number

b.

A smaller or equal number

c.

A smaller or greater number

d.

None of the above

Question number: 127

» Programming and Data Structures » Programming in C

MCQ▾

Question

Which of the following unit can be used to measure the speed of a computer?

Choices

Choice (4) Response

a.

FLOPS

b.

MIPS

c.

SYPS

d.

Both a. and b. are correct

Question number: 128

» 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.     char c=125;
  4.     c=c+10;
  5.     printf("%d",c);
  6. }

Choices

Choice (4) Response

a.

-121

b.

135

c.

-8

d.

+INF

Question number: 129

» Programming and Data Structures » Programming in C

MCQ▾

Question

What advantage do ICs have over discrete devices due to their greater complexity?

Choices

Choice (4) Response

a.

Lower cost

b.

Smaller size

c.

Higher Reliability

d.

All a. , b. and c. are correct

Question number: 130

» Databases » Database Design

MCQ▾

Question

Why are I/O costs important in a DBMS?

Choices

Choice (4) Response

a.

memory

b.

increase in time

c.

increase in speed

d.

Both b. and c. are correct

Question number: 131

» Programming and Data Structures » Programming in C

MCQ▾

Question

Input/output function prototypes and macros are defined in which header file?

Choices

Choice (4) Response

a.

stdio. h

b.

conio. h

c.

stdlib. h

d.

dos. h

Sign In