C Programming Functions Quiz

C Programming Functions Quiz

University

14 Qs

quiz-placeholder

Similar activities

Basic C++ Program Structures

Basic C++ Program Structures

University

10 Qs

Object Oriented Programming Evaluation 4

Object Oriented Programming Evaluation 4

University

15 Qs

Java 6

Java 6

University

10 Qs

PYTHON PROGRAMMING

PYTHON PROGRAMMING

University

10 Qs

Round 1

Round 1

University

10 Qs

Regression in Machine Learning

Regression in Machine Learning

University

10 Qs

Computer Programming

Computer Programming

University

11 Qs

Quiz6: Functions

Quiz6: Functions

University

10 Qs

C Programming Functions Quiz

C Programming Functions Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Satheesh D

Used 2+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in C programming?

A type of loop

A series of instructions with a specific purpose

A variable that stores data

A data structure

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a type of function in C?

Predefined functions

Static functions

User defined functions

Library functions

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'return' statement do in a function?

Prints output to the screen

Returns control to the calling function

Declares a variable

Ends the program

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of function declaration?

To call the function

To create a loop

To define the function's body

To specify the function's return type and parameters

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C, what are formal parameters?

Variables used in function calls

Variables defined in the function header

Local variables

Global variables

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the function call 'add(5, 10)' if 'add' is defined to return the sum?

Error

5

15

10

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly describes 'Call by Value'?

Values of actual parameters are copied to formal parameters

Addresses of actual parameters are passed

Only pointers are used

No parameters are passed

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?