CSNP-04103 Chapter 6 - Functions

CSNP-04103 Chapter 6 - Functions

University

10 Qs

quiz-placeholder

Similar activities

DBC CHAPTER 3 - REVISION

DBC CHAPTER 3 - REVISION

University

15 Qs

Data Structures: Linked Lists and Hashtables

Data Structures: Linked Lists and Hashtables

11th Grade - University

14 Qs

Web-II-Loop and Function

Web-II-Loop and Function

University

10 Qs

Workshop_1

Workshop_1

University

11 Qs

Programming

Programming

University

12 Qs

Algorithm analysis: divide & conquer theory

Algorithm analysis: divide & conquer theory

University

10 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

OS(II UNIT)

OS(II UNIT)

University

15 Qs

CSNP-04103 Chapter 6 - Functions

CSNP-04103 Chapter 6 - Functions

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Rafael Orta

Used 189+ 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 SELECT QUESTION

30 sec • 1 pt

What are the methods used to pass parameters to a function in C++?

Call by memory

Call by reference

Call by duplicating the argument

Call by value

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Select all that apply. Functions can:

Return no value

Return exactly one value

Return more than one value

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++ What is the symbol used to tell the compiler that you are sending a parameters to a function by reference?.

&&

@

*

&

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++ when sending parameters by reference the & is placed.

&<Data Type>

<Data Type>&

<Data Type> <Variable Name>&

<Data Type> <Constant Name>&

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++ if you are calling a function passing parameters by reference, the function itself must be of type:.

void

int

float

string

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++ When passing parameters by reference to a function, you are passing:

A copy of the value in the calling function.

The value of the parameters in the calling function

The memory address of the variable in the calling function

None of the above.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++, If you need to send a value to a function by using parameters, and you do not need to return anything from the function, what type of call will you use:

Call by Value

Call by Reference

Call by Cellular phone

A void call

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?