stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Mastering Programming Fundamentals Flashcards | StudBud
Explore
/
Mastering Programming Fundamentals
Mastering Programming Fundamentals
28 terms
·
StudBud Administration
·
32 plays
Test your knowledge and deepen your understanding of programming concepts and fundamentals
Flashcards
28 cards
F
Practice quiz
P
Host live
L
Questions
28
Answers
1
What is a pointer?
A variable
A class
A loop
A function
2
The number 4345.15 can be stored as the following type:
string
bool
double
int
3
Which operator is used for OR?
&&
==
!
||
4
What is a pointer?
Operator
Memory address
Variable
Function
5
Variables store data
True
False
6
Pointers can be compared
True
False
7
Which operator increments a value?
--
==
+=
++
8
What is pointer arithmetic?
Value manipulation
Function manipulation
Class manipulation
Address manipulation
9
Which loop runs at least once?
for
do-while
if
while
10
define return datatype of this function. int myFunction(double);
double
void
float
int
11
Arrays store multiple values
True
False
12
What is an array index?
Size
Type
Value
Position
13
Functions can return values
True
False
14
Which operator is used to get the address?
*
#
%
&
15
Which operator is used for equality?
==
!=
=
Empty choice
16
what does this code do? int *ptr = new int;
assigns an address to the variable ptr
creates a new pointer named *ptr
results in a compiler error
assigns an integer less than 32767 to the variable ptr
17
Pointers can be used in arrays
True
False
18
Functions can have parameters
False
True
19
Pointers can be null
True
False
20
What does '!=' mean?
Equal
Not equal
Greater than
Less than
21
What does the * operator do?
Multiplies
Addresses
Dereferences
Divides
22
Pointers store what type of data?
Values
Functions
Classes
Addresses
23
Which keyword declares a variable?
int
for
if
while
24
int number = 22;int *var = &number;cout << *var << endl;
22
an asterisk followed by 22
the address of number
an asterisk followed by the address of number
25
What does '&&' represent?
XOR
NOT
OR
AND
26
a user wants to buy a house that is 200,000 or less, which would be the correct way to write the if statement?
if(price<200000)
if(price<=200000)
if(price<200000 || price=200000)
if(price<200000 && price==200000)
27
What is a conditional statement?
Variable
Decision-making
Loop
Function
28
Pointers point to memory
False
True