stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Session 15. Data types, variables and constants_P2_PLC Flashcards | StudBud
Explore
/
Session 15. Data types, variables and constants_P2_PLC
Session 15. Data types, variables and constants_P2_PLC
10 terms
·
StudBud Administration
·
24 plays
Imported from external platform
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
What is a constant?
A value that can change during the program
A type of variable that can be modified
A value that is always negative
A value that does not change during the program's execution
2
What is "camelCase"?
A rule for constant names
A mathematical operation in programming
A convention for writing variable names
A way to combine String and Float data
3
What is data?
Instructions for a program
Information that a computer can process
Mathematical operations
Information that only humans can understand
4
Which of the following is a correct example of an operation with Integer data?
"5" + 7 = 12
5 + 7 = 12
5.0 + 7 = 12
"5" + "7" = 57
5
Which of the following statements about variables is correct?
Variables allow storing data that can change
Variable names must be reserved words of the language
Variables always start with a number
Variables are not case-sensitive
6
What type of data stores words and always goes in quotes?
Integer (int)
String (str)
Boolean (bool)
Float
7
Which of the following is an example of a Boolean value?
5
3.1
"False"
True
8
Which of the following variable names is correct and follows the best practices
totalValue
_TotalQuantity
3_values
TOTALVaule
9
What happens when you try to mix String and Integer data without using the correct syntax?
The numeric data is ignored
An error occurs
The data is automatically mixed
It is automatically converted to a Float
10
What type of data can store numbers with decimals?
Integer (int)
String (str)
Float
Boolean (bool)