Programming and Data Structures-Programming in C (GATE (Graduate Aptitude Test in Engineering) Computer Science): Questions 14 - 20 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: 14

» Programming and Data Structures » Programming in C

MCQ▾

Question

A program P calls two subprograms P1 and P2. P1 can fail 60 % times and P2 can fail 50 % times. The program P can fail?

Choices

Choice (4) Response

a.

40 %

b.

70 %

c.

50 %

d.

80 %

Question number: 15

» Programming and Data Structures » Programming in C

MCQ▾

Question

An applet is a program written in________ on the server.

Choices

Choice (4) Response

a.

C++

b.

Java

c.

. Net

d.

All of the above

Question number: 16

» Programming and Data Structures » Programming in C

MCQ▾

Question

Which among following is commonly used language in Android applications?

Choices

Choice (4) Response

a.

C

b.

C++

c.

Java

d.

Question does not provide sufficient data or is vague

Question number: 17

» Programming and Data Structures » Programming in C

MCQ▾

Question

CPU burst time indicates the time, the process needs the CPU. The following are

the set of processes with their respective CPU burst time (in milliseconds).

Processes CPU-burst time (FCFS)

P1 5

P2 10

P3 6

Calculate the average waiting time if the process arrived in the following

Order:

Choices

Choice (4) Response

a.

9.00

b.

10

c.

6.66

d.

None of the above

Question number: 18

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

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

» 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

f Page
Sign In