CS101 Comprehensive Review

CS101 Comprehensive Review

Assessment

Flashcard

Computers

University

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?