Programming and Data Structures-Programming in C (GATE Computer Science): Questions 61 - 67 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: 61

» Programming and Data Structures » Programming in C

MCQ▾

Question

Banker’s algorithm for resource allocation deals with?

Choices

Choice (4) Response
a.

Dead lock avoidance

b.

Dead lock recovery

c.

Dead lock prevention

d.

mutual exclusion

Question number: 62

» Programming and Data Structures » Programming in C

MCQ▾

Question

What will the function rewind () do?

Choices

Choice (4) Response
a.

Reposition the file pointer to begining of file.

b.

Reposition the file pointer to begining of that line

c.

Reposition the file pointer stream to end of file.

d.

Reposition the file pointer to a character reverse.

Question number: 63

» 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.     int a,b;
  3.     a=1,3,15;
  4.     b=(2,4,6);
  5.     clrscr();
  6.     printf("%d ",a+b);
  7.     getch();
  8. }

Choices

Choice (4) Response
a.

21

b.

7

c.

3

d.

27

Question number: 64

» Programming and Data Structures » Programming in C

MCQ▾

Question

When you omit parameters from a function call, values can be provided by

Choices

Choice (4) Response
a.

reference parameters

b.

overloaded parameters

c.

default parameters

d.

formal parameters

Question number: 65

» Programming and Data Structures » Programming in C

MCQ▾

Question

The index register in a digital computer is used for?

Choices

Choice (4) Response
a.

Keeping track of number of times a loop is executed

b.

Address modification

c.

Pointing to the stack address

d.

Indirect addressing

Question number: 66

» Programming and Data Structures » Programming in C

MCQ▾

Question

A computer cannot “boot” if it does not have the

Choices

Choice (4) Response
a.

Operating System

b.

Compiler

c.

Assembler

d.

Loader

Question number: 67

» Programming and Data Structures » Programming in C

MCQ▾

Question

Which method must be defined by a class implementing the java. lang. Runnable interface?

Choices

Choice (4) Response
a.

void run ()

b.

public void run ()

c.

public void start ()

d.

void run (int priority)

Sign In