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

» Programming and Data Structures » Programming in C

MCQ▾

Question

2d + 1

Choices

Choice (4) Response

a.

d + 3

b.

d + 1

c.

2d + 3

d.

Question does not provide sufficient data or is vague

Question number: 21

» Programming and Data Structures » Programming in C

MCQ▾

Question

________ synchronizes critical resources to prevent dead lock.

Choices

Choice (4) Response

a.

critical section

b.

Semaphore

c.

mutual exclusion

d.

Question does not provide sufficient data or is vague

Question number: 22

» Programming and Data Structures » Programming in C

MCQ▾

Question

What will be the output of program?

  1. #include<stdio.h> 
  2. int main( ) { 
  3.   printf(“aa /a/a aa/n”); 
  4.   return 0
  5. }

Choices

Choice (4) Response

a.

aa/a/n

b.

Nothing

c.

aa/a/a an

d.

Error

Question number: 23

» Programming and Data Structures » Programming in C

MCQ▾

Question

A simple, easy-to-learn scripting language designed for writing scripts on Web pages is called:

Choices

Choice (4) Response

a.

Javascript

b.

VB script

c.

Visual basic. net

d.

All of the above

Question number: 24

» Programming and Data Structures » Programming in C

MCQ▾

Question

What is the value fifteen in Base 10 equal to in Base 16?

Choices

Choice (4) Response

a.

F

b.

A

c.

E

d.

None of the above

Question number: 25

» Programming and Data Structures » Programming in C

MCQ▾

Question

Decimal value of binary number (11100) 2

Choices

Choice (4) Response

a.

28

b.

29

c.

20

d.

All of the above

Question number: 26

» Programming and Data Structures » Programming in C

MCQ▾

Question

a multiplexer is a also known as

Choices

Choice (4) Response

a.

decoder

b.

coder

c.

data selector

d.

All of the above

Question number: 27

» Programming and Data Structures » Programming in C

MCQ▾

Question

What will be the output of following program?

  1. #include<stdio.h> 
  2. int main( ) { 
  3.   int a=500,x,y
  4.   if(a>=600b=300c=400
  5.   printf(“%d,%dn”,x,y); 
  6.   return 0
  7. }

Choices

Choice (4) Response

a.

500, 200

b.

Garbage value

c.

Garbage value, 400

d.

200, 300

f Page
Sign In