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
Which of the following is NOT a method of passing data in C?
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 Wayground
5 questions
Complete Modern C++ - Circular References

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

Interactive video
•
University
2 questions
Multi-Paradigm Programming with Modern C++ - Passing Things Around

Interactive video
•
University
4 questions
Multi-Paradigm Programming with Modern C++ - Passing Things Around

Interactive video
•
University
6 questions
Learn and Master C Programming - Passing By Value vs. Passing By Pointer

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
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade