Search Header Logo

EC8393_FDS_WEEKLY_TEST3(18.08.20)

Authored by D Jeyakumar

Computers

University

Used 5+ times

EC8393_FDS_WEEKLY_TEST3(18.08.20)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The keyword used to transfer control from a function back to the calling function is

switch

goto

return

exit

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the default return type if it is not specified in function definition?

void

int

float

short int

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The default parameter passing mechanism is

Call by value

call by reference

call by value result

None

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In C, what is the meaning of following function prototype with empty parameter list

void fun()

{

/* .... */

}

Function can only be called without any parameter

Function can be called with any number of parameters of any types

Function can be called with any number of integer parameters.

Function can be called with one integer parameter.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What error would the following function give on compilation ?


f(int a,int b)

{

int a;

a = 20;

return a;

}

Missing parentheses in return statement

Function should be define as int f(int a,int b)

Redeclaration of a

No error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A function that is prototype as


int calculate(int num);


may

Recieve an integer variable named num from the main () program

Receive any integer variable from the main() program

Either (a) or (b)

None of these

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The declaration


void function1(int)


indicates the function1 is a function which

Has no arguments

Returns nothing

Both (a) and (b)

None of these

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?