functions in C programming

functions in C programming

University

10 Qs

quiz-placeholder

Similar activities

Quiz on Functions#1

Quiz on Functions#1

University

15 Qs

C++ Quiz-1

C++ Quiz-1

University

15 Qs

CSC404 Quiz 1

CSC404 Quiz 1

University

10 Qs

C++ - Functions

C++ - Functions

University

14 Qs

UNIT 5 Function Types

UNIT 5 Function Types

University

7 Qs

C Flow Control and Functions

C Flow Control and Functions

University

8 Qs

TECHNICAL C JIT03

TECHNICAL C JIT03

University

15 Qs

C++ Functions

C++ Functions

University

10 Qs

functions in C programming

functions in C programming

Assessment

Quiz

Computers

University

Medium

Created by

Satya Suneetha

Used 13+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?