GATE (Graduate Aptitude Test in Engineering) Computer Science: Questions 128 - 133 of 2080

Access detailed explanations (illustrated with images and videos) to 2080 questions. Access all new questions- tracking exam pattern and syllabus. View the complete topic-wise distribution of questions. Unlimited Access, Unlimited Time, on Unlimited Devices!

View Sample Explanation or View Features.

Rs. 550.00 -OR-

How to register? Already Subscribed?

Question 128

Question

MCQ▾

What will be output if you will compile and execute the following c code?

  1. voidmain()
  2. {
  3.     inti=4,x;
  4.     x=++i +++i +++i;
  5.     printf("%d",x);
  6. }

Choices

Choice (4)Response

a.

18

b.

Error

c.

12

d.

21

Question 129

Question

MCQ▾

The way a card game player arranges his cards as he picks them up one by one, is an example of?

Choices

Choice (4)Response

a.

merge sort

b.

bubble sort

c.

insertion sort

d.

selection sort

Question 130

Question

MCQ▾

What will be output if you will compile and execute the following c code?

  1. voidmain() {
  2.     staticmain;
  3.     intx;
  4.     x=call(main);
  5.     clrscr();
  6.     printf("%d ",x);
  7.     getch();
  8. }
  9. intcall(intaddress){
  10.     address++;
  11.     returnaddress;
  12. }

Choices

Choice (4)Response

a.

1

b.

garbage value

c.

0

d.

compiler error

Question 131

Question

MCQ▾

The DDL part of SQL is

Choices

Choice (4)Response

a.

delete

b.

count

c.

insert

d.

update

Question 132

Question

MCQ▾

The strategy of allowing processes that are logically runnable to be temporarily suspended is called

Choices

Choice (4)Response

a.

shortest job first

b.

first come first served

c.

preemptive scheduling

d.

non preemptive scheduling

Question 133

Question

MCQ▾

What will be output if you will compile and execute the following c code?

  1. #include "string.h" voidmain()
  2. {
  3.     clrscr();
  4.     printf("%d%d",sizeof("string"),strlen("string"));
  5.     getch();
  6. }

Choices

Choice (4)Response

a.

6,7

b.

6,8

c.

7,6

d.

7,7

Developed by: