C Functions

C Functions

University

10 Qs

quiz-placeholder

Similar activities

P3 Quiz 😸

P3 Quiz 😸

University

10 Qs

aircraft avionics and automatic flight

aircraft avionics and automatic flight

University

12 Qs

Introduction to Python Programming Quiz 9E

Introduction to Python Programming Quiz 9E

10th Grade - University

13 Qs

IoT และโหนด -Red

IoT และโหนด -Red

University - Professional Development

10 Qs

CSC264 Javascript Basic

CSC264 Javascript Basic

University

15 Qs

Lobby ,entrance & Equipment

Lobby ,entrance & Equipment

University

10 Qs

MP Proficiency Test - RAIZE

MP Proficiency Test - RAIZE

University

15 Qs

Flash Backyard (HH)

Flash Backyard (HH)

1st Grade - Professional Development

9 Qs

C Functions

C Functions

Assessment

Quiz

Other

University

Medium

Created by

Azrinna Muhamad

Used 71+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in C programming?

A variable type

A block of code that performs a specific task

A data type

A comment section

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the function prototype specify?

Function name and how to call the function

The specific task performed by the function

Only the return type of the function

Only the parameters of the function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable created inside the function has_____ scope.

local

global

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

No output

Compilation error

Hello, World!

Runtime error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function call in C programming?

Defining the function

Declaring the function

Invoking the function to perform its task

Documenting the function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly calls a function named displayMessage with no arguments?

displayMessage;

displayMessage();

displayMessage[];

call displayMessage();

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a function named calculate takes two integer arguments, which of the following is a correct function call?

calculate();

calculate(x, y);

calculate(int x, int y);

calculate[x, y];

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?