GATE Computer Science: Questions 162 - 167 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: 162

» Operating System » CPU Scheduling

MCQ▾

Question

CPU scheduling is the basis of ________ operating systems.

Choices

Choice (4) Response

a.

Multiprogramming

b.

Multitasking

c.

Multiprocessing

d.

All of the above

Question number: 163

» Programming and Data Structures » Programming in C

MCQ▾

Question

To avoid the race condition, the number of processes that may be simultaneously inside their critical section is

Choices

Choice (4) Response

a.

1@

b.

4

c.

8

d.

0

Question number: 164

» Programming and Data Structures » Programming in C

MCQ▾

Question

The #ifndef directive tests to see whether ________

Choices

Choice (4) Response

a.

a variable has been given a value

b.

a class has no variable definitions

c.

a class has been defined

d.

any objects of the class have been instantiated

Question number: 165

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

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

» Databases » Query Languages

MCQ▾

Question

A query is as follows

SELECT DISTINCT LOC_NAME FROM DEPT WHERE DEPT_ID IN (10, 20, 30);

In the above example, departments 10, 20 and 30 are in the city Chicago where as that of 40, 50 and 60 are in St. Louis. How many values of LOC_NAME are returned?

Choices

Choice (4) Response

a.

One value of St. Louis

b.

Three values of St. Louis

c.

Three values of Chicago

d.

One value of Chicago

Sign In