What is a Boolean?
A data type that represents one of two values: True or False
Boolean values are often used in conditional statements and logical operations.
What does casting refer to in programming?
The process of converting one data type to another
Example: int(input(“Enter a number”)) converts a string to an integer.
Define a function in programming.
A pre-made block of code designed to perform a specific task
Examples include print() and input().
What is the purpose of the input function?
A function that prompts the user to enter data, which is then stored as a string
Example: input(“What is your name?”).
What does the print function do?
A function used to display output on the screen
Example: print(“Hello World”). Also known as print statement.
What is a syntax error?
An error caused by breaking the rules of the programming language, such as incorrect punctuation or spacing
Syntax errors must be corrected for the code to run properly.