Which of the following is NOT a method of passing data in C?
Multi-Paradigm Programming with Modern C++ - Passing Things Around

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Quizizz Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
By constant array
By constant pointer
By constant reference
By value
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the recommended maximum number of arguments for a function to maintain simplicity?
2
6
4
8
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why should you avoid relying on interfaces of other packages in your interface design?
It might expose implementation details
It makes the code run faster
It increases the number of arguments
It simplifies the code
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default method for passing arguments when a copy is cheap?
By pointer
By constant reference
By value
By reference
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a better alternative to using out arguments in a function?
Using a global variable
Using a return statement
Using a raw pointer
Using a constant pointer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a major downside of using raw pointers?
They are too complex
They are ambiguous
They are too fast
They are too simple
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When is it acceptable to use raw pointers?
When using a legacy API
When using a constant reference
When using a smart pointer
When using a modern API
Similar Resources on Quizizz
2 questions
Complete Modern C++ - Weak Ownership

Interactive video
•
University
2 questions
Multi-Paradigm Programming with Modern C++ - Arguments and Return Values

Interactive video
•
University
4 questions
Complete Modern C++ - Reference Versus Pointer

Interactive video
•
University
2 questions
Complete Modern C++ - Reference Versus Pointer

Interactive video
•
University
6 questions
Complete Modern C++ - Function Pointers

Interactive video
•
University
3 questions
Complete Modern C++ - Sharing std::unique_ptr

Interactive video
•
University
8 questions
Complete Modern C++ - Reference Versus Pointer

Interactive video
•
University
2 questions
Mastering C++ Standard Library Features [Video] - Smart Pointers: Guidelines

Interactive video
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade