Functions and Subroutines - General Questions Online Exam Quiz

Functions and Subroutines - General Questions GK Quiz. Question and Answers related to Functions and Subroutines - General Questions. MCQ (Multiple Choice Questions with answers about Functions and Subroutines - General Questions

Which of the following will be the correct output for the C#.NET program given below?

Options

A : 1, 1, 1, 1,

B : 11, 1, 11, 11,

C : 11, 11, 11, 11,

D : 11, 11, 21, 11,

View Answer

What will be the output of the C#.NET code snippet given below?

Options

A : 1 2 3 4 5

B : 6 7 8 9 10

C : 5 10 15 20 25

D : 5 25 125 625 3125

View Answer

Which of the following statements are correct?

Options

A : 1, 2

B : 2, 3

C : 3, 4

D : 4, 5

View Answer

A function returns a value, whereas a subroutine cannot return a value.

Options

A : True

B : False

C : -

D : -

View Answer

Which of the following statements are correct about functions and subroutines used in C#.NET?

Options

A : 1, 2, 4

B : 2, 3, 5

C : 3, 5

D : 4, 5

View Answer

Which of the following will be the correct output for the C#.NET program given below?

Options

A : 0 0

B : 25 25

C : 125 125

D : 25 125

View Answer

What will be the output of the C#.NET code snippet given below?

Options

A : 10.000000 34.340000

B : 10 34

C : 10 34.340

D : 10 34.34

View Answer

Which of the following statements are correct?

Options

A : 1, 3, 5

B : 3, 4, 5

C : 2, 5

D : 4, 5

View Answer

If a function fun() is to receive an int , a Single & a double and it is to return a decimal then which of the following is the correct way of defining this function?

Options

A : decimal static fun( int i, Single j, double k) { ... }

B : decimal fun( int i, Single j, double k) { ... }

C : static decimal fun( int i, Single j, double k) { ... }

D : static decimal fun( int i, Single j, double k) decimal { ... }

View Answer

Which of the following statements are correct about functions used in C#.NET?

Options

A : 1, 2, 5

B : 2, 3, 5

C : 2, 3

D : 4, 5

View Answer

Attributes - General Questions more Online Exam Quiz

Datatypes - General Questions

Delegates - General Questions

.NET Framework - General Questions

Enumerations - General Questions

Exception Handling - General Questions

Inheritance - General Questions

Interfaces - General Questions

Namespaces - General Questions

Operators - General Questions