Search Header Logo

functions in C programming

Authored by Satya Suneetha

Computers

University

Used 14+ times

functions in C programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The parameters in a function definition are

real parameters

formal parameters

actual parameters

dummy parameters

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The parameters in a function call are

real parameters

formal parameters

actual parameters

dummy parameters

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A function can be called in a program

Only two times

Only once

Any number of times

Only three times

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The names of actual parameters and formal parameters

always same

should be same

need not be same

almost same

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will be the output of the following program

main()

{

int i;

i = abc();

printf("%d",i);

}

abc()

{

return(1000);

}

Compiler error

Compiler error

Prints garbage

Prints garbage

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will be the output of the following program

main()

{

int a=4;

change(a);

printf(“%d”,a);

}

change(int a)

{

printf(“%d”,++a);

} outputs

5 5

4 5

5 4

4 4

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Actual and formal parameters must agree in

data types

number of argument and datatypes

names and data type

names and number of arguments

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?