Programming and Data Structures (GATE Computer Science): Questions 40 - 46 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: 40

» 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: 41

» 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: 42

» 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: 43

» 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: 44

» 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

Question number: 45

» Programming and Data Structures » Programming in C

MCQ▾

Question

Which of the following is not typically found in the status register of micro processor?

Choices

Choice (4) Response

a.

overflow

b.

negative result

c.

zero result

d.

None of the above

Question number: 46

» Programming and Data Structures » Programming in C

MCQ▾

Question

If you want to write macro constant in new line the end with the character

Choices

Choice (4) Response

a.

C#

b.

php

c.

c and c++

d.

java

Sign In