2026 FULL SOLUTION QUESTIONS AND
ANSWERS GRADED A+
●● True or False: Python automatically inserts a newline character when
you use the print command..
Answer: True
●● Fill in the blanks below about comments in Python.
In Python, the # symbol means a _________ comment, and the ''' symbol
means a ________ comment..
Answer: single-line
multi-line
●● What does the print statement do?
A) Sends your output to the printer
B) Sends your output to a file
C) Sends your output to the screen
D) Sends your output to the compiler.
Answer: C
●● Which statement below will print Hi! without a newline character?
,A) print("Hi!", end='')
B) print("Hi!", end=N/A)
C) print("Hi!", stop='')
D) print("Hi!").
Answer: A
●● True or False: the two names refer to the same variable.
My_Variable
my_variable.
Answer: False
●● Complete the line of code below so that variable declaration is
correct.
my_string = "This is a string.
Answer: Add " to the end
●● What is the rule regarding boolean values in Python?
A) Boolean values are case sensitive and must be lowercase.
B) Boolean values are not case sensitive and can be either uppercase or
lowercase.
C) Boolean values are case sensitive and must be uppercase.
D) Boolean values are case sensitive and must be all caps..
Answer: C
,●● Select the properly formatted integer from the list below.
A) '20000'
B) 20000
C) 20,000
D) 020000.
Answer: B
●● What is the difference between a 'float' and an 'int'?.
Answer: A float is a decimal number, while an int is a whole number
●● Which of the following items is a correct variable name?
A) my-variable
B) _my_variable
C) 1_my_variable
D) my_variable!.
Answer: B
●● What are the four basic data types of Python?
A) strings, boolean, ints, and floats
B) strings, true/false, numbers, decimals
C) boolean, hexadecimal, ints, strings
, D) numbers, images, audio, video.
Answer: A
●● What happens when you add an int and a float?
A) You get a syntax error
B) You get an int
C) You get a float.
Answer: C
●● Select the line of code below that increments the variable a by 1.
A) a++
B) a = 1
C) a -= 1
D) a = a + 1.
Answer: D
●● Which of the following lines of code is not an example of type
casting?
A) int(a)
B) string(a)
C) float(a)
D) bool(a).