stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Programming Fundamentals Flashcards | StudBud
Explore
/
Programming Fundamentals
Programming Fundamentals
15 terms
·
StudBud Administration
·
15 plays
Test your knowledge on basic programming concepts and best practices
Flashcards
15 cards
F
Practice quiz
P
Host live
L
Questions
15
Answers
1
What is the data type for age?
Boolean
String
Float
Integer
2
True or false: Variables can only contain letters.
False
True
3
Which solution is more flexible?
Static methods
Generalized solutions
Specialized solutions
Hardcoded values
4
True or false: Repeating calculations can cause bugs.
True
False
5
What is a good practice for naming variables?
No underscores
Single letters only
Descriptive names
Use random letters
6
True or false: Variable names can include spaces.
False
True
7
Which of these is a valid variable name?
_myVariable
2ndVariable
1stVariable
my Variable
8
True or false: Height can be a float.
True
False
9
True or false: You can use special characters in variable names.
False
True
10
Which of these is a string?
"John Doe"
True
5.8
16
11
What is the data type for pizza preference?
Float
Boolean
String
Integer
12
What should you do to avoid redundant calculations?
Repeat calculations
Store in a variable
Use random values
Ignore results
13
Which data type is for true/false values?
Boolean
String
Float
Integer
14
True or false: Variable names can start with a number.
False
True
15
What is a common mistake with variable names?
Using spaces
Starting with letters
Using underscores
Being too descriptive