C Functions

C Functions

University

10 Qs

quiz-placeholder

Similar activities

Global Mobility Mini-Game Sunday Funday

Global Mobility Mini-Game Sunday Funday

University

10 Qs

Econ Macro 24 - 24.1

Econ Macro 24 - 24.1

University

10 Qs

Intro To CJ Chapter 1

Intro To CJ Chapter 1

12th Grade - University

10 Qs

Dragon ball quiz

Dragon ball quiz

5th Grade - University

6 Qs

football of world

football of world

1st Grade - University

13 Qs

Anime 99

Anime 99

9th Grade - Professional Development

13 Qs

QUIZ TPHTP 5 - Pengolahan Teh Hitam

QUIZ TPHTP 5 - Pengolahan Teh Hitam

University

10 Qs

K-POP #ICTA-PRISKA

K-POP #ICTA-PRISKA

1st Grade - University

10 Qs

C Functions

C Functions

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Azrinna Muhamad

Used 71+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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];

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?