Multi-Paradigm Programming with Modern C++ - Passing Things Around

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Wayground 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
2 questions
Type-Safe Interfaces with Modern C++ - What Is an Optional?

Interactive video
•
University
2 questions
Complete Modern C++ - Move Semantics – Basics

Interactive video
•
University
6 questions
Learn and Master C Programming - Introduction & Section Overview

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
3 questions
Complete Modern C++ - Sharing std::unique_ptr

Interactive video
•
University
2 questions
Structural Design Patterns in Modern C++ - User Interface (UI) Example - Part III

Interactive video
•
University
8 questions
Mastering C++ Standard Library Features [Video] - Smart Pointers – What Problem Do They Solve?

Interactive video
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Information Technology (IT)
15 questions
Disney Trivia

Quiz
•
University
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University
20 questions
Disney Trivia

Quiz
•
University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
5 questions
Examining Theme

Interactive video
•
4th Grade - University
23 questions
Lab 4: Quizziz Questions

Quiz
•
University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University