Computer Programming Function

Computer Programming Function

University

10 Qs

quiz-placeholder

Similar activities

UTB - FCNS 221PB

UTB - FCNS 221PB

University

10 Qs

Firewall and Network Security

Firewall and Network Security

University

15 Qs

Week 4

Week 4

University

15 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

Software Engineering :TEST 2

Software Engineering :TEST 2

University

10 Qs

ADVACOMT-Quiz No.1 (final term)

ADVACOMT-Quiz No.1 (final term)

University

15 Qs

SAN Module 4 Quiz

SAN Module 4 Quiz

University

15 Qs

WN-CELLULAR CONCEPT

WN-CELLULAR CONCEPT

University

10 Qs

Computer Programming Function

Computer Programming Function

Assessment

Quiz

Computers

University

Hard

Created by

Thomas Martinez

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

In C, what is the meaning of following function prototype with void parameter list:


void fun(void)

{

/* .... */

}

Function can be called with any number of parameters of any types

Function can only be called without any parameter

Function can be called with one integer parameter.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of the function with prototype: "int func(char x, float v, double t);"?

char

int

float

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

While creating a C function, you give a definition of what the function has to do. To use a function, you will have to ___________ to perform the defined task.

call the function

declare the function

define the function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following is a valid function call to call the above function?

print;

print x, y;

print( );

int print( );

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The _______ is the part of a function definition that shows the function name, return type, and parameter list.

function call

function body

function header

function prototype

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Based on the above function header, which statement should be used to call function showValue( ) with argument 5?

showValue(5);

showValue(int 5);

quantity = showValue(5);

quantity = showValue(int 5);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a Mathematical Library Function (math.h)?

cos(a)

abs(a)

fabs(a)

log(a)

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?

Discover more resources for Computers