stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
C++ Basics Flashcards | StudBud
Explore
/
C++ Basics
C++ Basics
10 terms
·
StudBud Administration
·
19 plays
A #programming quiz to verify the retention of #c++ concepts
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
Streams are passed by these.
<< / >>
{{ / }}
(( / ))
[[ / ]]
2
Life is like a box of chocolates...
...it's rare, and only available in very particular places
...you can't answer this wrong.
...you never know what you're going to get.
...it's sweet, but the more you enjoy, the faster it's over.
3
Arrays are denoted in a declaration by these:
<>
[]
()
{}
4
A static array can change its size
True
False
5
This would declare an array properly in C++:
int[6] arr = {2,3,4,5,6,7};
int arr = {2,3,4,5,6,7}
int arr[6] = {2,3,4,5,6,7};
int arr[] = new int[6](2,3,4,5,6,7);
6
A
scope
is defined on this line:
( //code )
< //code >
{ //code }
[ //code ]
7
A C++ application will stop and issue an error message if an array is accessed out-of-bounds
False
True
8
This is a properly formed class declaration:
SampleClass( //params ) { //code }
class SampleClass { //code }
class SampleClass ( //params ) { //code }
9
Function parameters are defined and included between these.
< //params >
[ //params ]
{ //params }
( //params )
10
This is the sound a doggy makes
Bark bark
Ruff
Woof
Moo