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

» Programming and Data Structures » Programming in C

MCQ▾

Question

What will be the output of following code?

  1. #include <stdio.h > 
  2. void main() {
  3.     char suite = 3;
  4.     switch (suite) {
  5.         case 1:
  6.             printf(“ALL QUIZ”);
  7.         case 2:
  8.             printf(“All quiz is great”);
  9.         default:
  10.             printf(“All quiz contains MCQs”);
  11.     }
  12.     printf(“Are you like All quiz ? ”);
  13. }

Choices

Choice (4) Response

a.

ALL QUIZ

b.

Quiz is great Are you like Al quiz

c.

Quiz contains MCQs

d.

Quiz is great

Question number: 49

» Programming and Data Structures » Programming in C

MCQ▾

Question

A system program that combines the separately compiled modules of a program into a form suitable for execution?

Choices

Choice (4) Response

a.

linking loader

b.

assembler

c.

load and go

d.

cross compiler

Question number: 50

» Programming and Data Structures » Programming in C

MCQ▾

Question

Overloaded functions are required to

Choices

Choice (4) Response

a.

have the same return type

b.

perform the same basic functions

c.

have the same number of parameters

d.

None of the above

Question number: 51

» 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. {
  3.     int i=4,x;
  4.     x=++i + ++i + ++i;
  5.     printf("%d",x);
  6. }

Choices

Choice (4) Response

a.

21

b.

12

c.

Error

d.

18

Question number: 52

» Programming and Data Structures » Programming in C

MCQ▾

Question

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 number: 53

» 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.     static main;
  3.     int x;
  4.     x=call(main);
  5.     clrscr();
  6.     printf("%d ",x);
  7.     getch();
  8. }
  9. int call(int address){
  10.     address++;
  11.     return address;
  12. }

Choices

Choice (4) Response

a.

compiler error

b.

garbage value

c.

0

d.

1

Sign In