stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Programming Fundamentals Flashcards | StudBud
Explore
/
Programming Fundamentals
Programming Fundamentals
10 terms
·
StudBud Administration
·
19 plays
Test your knowledge on basic programming concepts and syntax
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
What does the -= operator do?
Increments value.
Compares values.
Subtracts and assigns.
Adds and assigns.
2
How to declare a double variable?
double value;
float value = 3.14;
decimal value = 3.14;
double value = 3.14;
3
Which is NOT a valid assignment operator?
-+
-=
+=
=
4
What is the correct syntax for declaring a constant?
Both b and c are correct.
constant int value = 10;
const int value = 10;
int const value = 10;
5
The int type can store decimals.
False
True
6
An invalid variable name is 1value.
False
True
7
Which is a valid float declaration?
float #amount;
float amount = 5;
float amount;
float 2amount;
8
What does the assignment operator (=) do?
It adds two values.
It assigns right to left.
It checks for equality.
It compares two values.
9
How to assign x to y?
y = x;
y -> x;
y == x;
y := x;
10
The int type can store boolean values.
True
False