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

» Programming and Data Structures » Programming in C

MCQ▾

Question

  1. main() {
  2.     unsigned char i = 0;
  3.     for (; i >= 0i++);
  4.     printf(“ % d n”, i);
  5. }

Choices

Choice (4) Response

a.

compiler error

b.

99999

c.

infinite loop

d.

None of the above

Question number: 30

» Programming and Data Structures » Programming in C

MCQ▾

Question

Length of the linear array can be found by using the formula?

Choices

Choice (4) Response

a.

LB - UB

b.

LB + UB

c.

UB - LB + 1

d.

None of the above

Question number: 31

» Programming and Data Structures » Programming in C

MCQ▾

Question

Shareware is software that is:

Choices

Choice (4) Response

a.

Provided with accompanying source code.

b.

Available for free use for a limited time.

c.

Provided with accompanying code.

d.

Question does not provide sufficient data or is vague

Question number: 32

» Programming and Data Structures » Programming in C

MCQ▾

Question

A DFD is composed of which elements?

Choices

Choice (4) Response

a.

Data sources and destinations

b.

Transformation processes

c.

Data flows, data store

d.

All a. , b. and c. are correct

Question number: 33

» Programming and Data Structures » Programming in C

MCQ▾

Question

  1. main() {
  2.     static int
  3.     var = 6;
  4.     printf(“ % d”,
  5.         var ++);
  6.     if (varmain();
  7. }

Choices

Choice (4) Response

a.

1 2 3 4 5 6

b.

6 5 4 3 2 1

c.

5 8 9 10 12

d.

None of the above

Question number: 34

» Programming and Data Structures » Programming in C

MCQ▾

Question

Choose the correct way to indicate that a line in a C++ program is a comment line i. e. a line they will not be executed as an instruction________.

Choices

Choice (4) Response

a.

Begin the line with double slashes (/ /)

b.

Begin the line with a # sign

c.

Begin and end the line with double hyphens (-_-)

d.

None of the above

f Page
Sign In