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