Font size
WorksheetsRWMS Coding Basics Semester Exam Review
Total questions: 20
Worksheet time: 11mins
Enter the correct PYTHON command code to display Hello World in the console.
(a)
What is the purpose of leaving comments in ANY code we create?
To provide human readable notes for clarification
To run the code
They allow words to be printed on the screen
They allow the program to run functions and conditionals
What will happen when the following code is run?
Nothing happens
The words Welcome to my underground lair print on the screen
The site window's tab becomes titled Welcome to my underground lair
The word body prints on the screen
How do you insert COMMENTS in PYTHON code?
//This is a Python comment
/*This is a Python comment*/
#This is a Python comment
<! --This is a Python comment-->
What is the name of the style customarily used for variables in most coding languages?
sunglassesCase
cobraKaiCase
briefCase
camelCase
What type of information is an int?
question
whole numbers
number with decimals
words
What will be printed on the screen from the following PYTHON code?
print(14+7)
14,7
21
14+7
Nothing prints
What is this creating in PYTHON?
def right_Ans();
a loop
a function
a variable
a conditional
What is the correct name for a word, words or phrase used in most code?
syntax
comment
string
integer
One of, if not THE, MOST important aspect of any code is...
writing long code
indentation
using camelcase
syntax
Which symbol is used for division in most coding languages?
%
/
*
#
Which parts of your written code make most of the decisions?
conditionals
loops
functions
the user
What symbols MUST be present at the beginning and ending of the main body of PYTHON code?
( )
{ }
/ /
[ ]
Which is the proper way to write a conditional in PYTHON?
IF (x == y):
IF (x = y):
WHEN (x <= y):
IF (x == y) THEN;
Functions are placeholders or containers to store information used in a program.
True.
False.
Variables are ''mini-programs" used in a program, front-loaded, that can be called up at any time to perform a task.
True.
False.
What symbol must be used to insert a COMMENT in html?
<! –– HTML comment ––>
#HTML comment#
//HTML comment//
<com> HTML comment </com>
What would this code output on the screen in HTML?
I Love Sports!
"I Love Sports!"
(nothing)
I REALLY Love Sports!
What does this do in your paragraph? <br>
Breaks the line and moves the text to the next line
Lets you brag about your kickin' programing skills
Lets the user know that you're cold
Tells the user to take a break from using the internet because they've been on it for hours
Which of the following is/are valid types of variables in PYTHON? (check all that apply)
int
float
string
double
boolean
