Programming and Data Structures-Parameter Passing [GATE (Graduate Aptitude Test in Engineering) Computer Science & IT (CS)]: Questions 6 - 9 of 14

Choose Programs:

🎓 Study Material (1190 Notes): 2024-2025 Syllabus

Rs. 1000.00 -OR-

3 Year Validity (Multiple Devices)

Topic-wise Notes & SampleDetails

🎯 302 Numeric, 2894 MCQs (& PYQs) with Full Explanations (2024-2025 Exam)

Rs. 650.00 -OR-

3 Year Validity (Multiple Devices)

CoverageDetailsSample Explanation

Help me Choose & Register (Watch Video) Already Subscribed?

Question 6

Appeared in Year: 2014

Question MCQ▾

When an array is passed as parameter to a function, which of the following statements is correct? (December Paper II)

Choices

Choice (4)Response

a.

The function can change values in the original array.

b.

In C, parameters are passed by value, the function cannot change the original value in the array.

c.

It results in compilation error when the function tries to access the elements in the array.

d.

Results in a run time error when the function tries to access the elements in the array.

Edit

Question 7

Appeared in Year: 2017

Question MCQ▾

A recursive function h, is defined as follows:

If the value of h (4) is 88 then the value of k is: (January Paper III)

Choices

Choice (4)Response

a.

1

b.

0

c.

2

d.

Edit

Question 8

Appeared in Year: 2017

Question MCQ▾

Which of the following storage classes have global visibility in C/C ++ ? (January paper II)

Choices

Choice (4)Response

a.

Register

b.

Extern

c.

Static

d.

Auto

Edit

Question 9

Appeared in Year: 2014

Question True-False▾

Statements

  1. In call-by-value, anything that is passed into a function call is unchanged in the caller՚s scope when the function returns.

  2. In call-by-reference, a function receives implicit reference to a variable used as argument.

  3. In call-by-reference, caller is unable to see the modified variable used as argument.

Choices

Choice (4)Response

a.

Only statement Ⅲ is true.

b.

Both statement Ⅰ & statement Ⅱ are true.

c.

All the statements are correct.

d.

Both statement Ⅰ & statement Ⅲ are true.

Edit