

CS101 Comprehensive Review
Flashcard
•
Computers
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

21 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What will be the output for the following code: x + y = 104, x + y = x + y, An error will occur., x + y = 14
Back
x + y = 14
2.
FLASHCARD QUESTION
Front
What is the difference between the data types, integer (int) and float?
Back
Integers represent whole numbers, while floats represent numbers with decimal points.
3.
FLASHCARD QUESTION
Front
Which symbol is used to denote a comment in your code in Python?
Back
#
4.
FLASHCARD QUESTION
Front
What is the binary equivalent of the decimal number 15?
Back
1111
5.
FLASHCARD QUESTION
Front
What is the decimal equivalent of the binary number 110011?
Back
51
6.
FLASHCARD QUESTION
Front
Which of the following is the correct way to nest function1 inside function2? Options: function2()function1(), function2(function1()), function1(function2()), function2()function1()
Back
function2(function1())
7.
FLASHCARD QUESTION
Front
Which of the following best describes the purpose of an if statement in programming? Options: To define a function that can be called later, To execute a block of code only when a specific condition is true, To check for syntax errors in the code, To repeat a block of code multiple times
Back
To execute a block of code only when a specific condition is true
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?