Programming and Data Structures-Parameter Passing [GATE (Graduate Aptitude Test in Engineering) Computer Science]: Questions 1 - 5 of 14

Access detailed explanations (illustrated with images and videos) to 2122 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 1

Appeared in Year: 2011 (UGC-NET)

Question

MCQ▾

What features make C ++ so powerful? (June Paper 2)

Choices

Choice (4)Response

a.

Easy implementation

b.

Reusing old code

c.

Easy memory management

d.

All a., b. and c. are correct

Question 2

Appeared in Year: 2012 (UGC-NET)

Question

MCQ▾

The Default Parameter Passing Mechanism is called as (December Paper III)

Choices

Choice (4)Response

a.

Call by Address

b.

Call by Value

c.

Call by Name

d.

Call by Reference

Question 3

Appeared in Year: 2013 (UGC-NET)

Question

MCQ▾

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

Choices

Choice (4)Response

a.

The function cannot change values in the original array.

b.

The function can change values in the original array.

c.

Results in compilation error.

d.

Results in runtime error.

Question 4

Appeared in Year: 2013 (UGC-NET)

Question

MCQ▾

Which of the following is/are the fundamental semantic model (s) of parameter passing? (June Paper III)

Choices

Choice (4)Response

a.

In mode

b.

Out mode

c.

In-out mode

d.

All a., b. and c. are correct

Question 5

Appeared in Year: 2013 (UGC-NET)

Question

MCQ▾

What is the output of the following program segment?

  1. sum(n)
  2. {
  3.     if (n<1)returnn;
  4.     elsereturn (n+sum(n1));
  5. }
  6. main()
  7. {
  8.     printf(“%d”,sum(5));
  9. }

(September Paper II)

Choices

Choice (4)Response

a.

10

b.

16

c.

15

d.

14

Developed by: