stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
C++ Programming Concepts Flashcards | StudBud
Explore
/
C++ Programming Concepts
C++ Programming Concepts
21 terms
·
StudBud Administration
·
20 plays
#programming concepts
Flashcards
21 cards
F
Practice quiz
P
Host live
L
Questions
21
Answers
1
What does a cout statement do?
outputs cout to the printer
Prints "cout"
Outputs the stuff in " " to the monitor
outputs cout to the monitor
2
What is the only function all C++ programs must contain?
start()
main()
program()
system()
3
What is a variable?
a value that can change
a value that always stays the same
a bull that is different from other bulls
Only ever X in math questions
4
What is Binary?
How computers program themselves
A wheel device with 2 wheels
A system of zero's and 1's
when you buy something
5
What is 15 in Binary notation
10111
15
1111
10110
6
Which of these are Boolean Variables?
Wrong
Truest
True
False
7
Which of the following is the boolean operator for OR?
&&
||
&
!!
8
What punctuation is used to signal the beginning and end of code blocks?
BEGIN and END
{}
-> and <-
( and )
9
A loop says while x< 10 do, x =5 there is a ++ at the end , how many times will the loop run?
5
6
0
3
10
A block comment can be written:
Starting with //* and ending with *//
Starting with /* and ending with */
Starting every line with double slashes (//)
Starting with anything
11
A single line comments
Use code and /* comment on the same line
Use any code
Use code and // comments on the same line
Use code and //* comments on the same line
12
What punctuation ends most lines of C++ code?
: (colon)
' (single quote)
. (dot)
; (semi-colon)
13
Which of these could be a string variable?
Austraila
The Cat Who barks
Mr S is very nice and tall
15
14
Which of the following is not a correct variable type?
Int
Float
Double
Real
15
What happens if a loop check is not true?
program crashes
Mr S runs
Else statement runs
If statement runs
16
What is - -?
Plus plus
decorationment
Minus minus
decrement
17
Which of these are loops in computers?
For
Between
Fruit
While do
18
Which of these are integers?
15
three and a half
2.5
-3
19
Can you muliply, divide, add or subtract a String variable?
Sometimes
No
Maybe
Yes
20
what is an example of a Char Variable
NoodleKing
N
yes
15
21
What is an example of a increment?
_ _
()
++
{}