Search Header Logo

CSC1024 - Quiz

Authored by Yoke Yong

Computers

University

Used 1+ times

CSC1024 - Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What must you use to create a multi-line comments?

A single pair of double quotation marks

A single pair of single quotation marks

A single pair of three consecutive double quotation marks

Embedded newline characters

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The expression 2 ** 2 ** 3 evaluates to which of the following values?

64

8

256

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following lists of operators is ordered by decreasing

precedence?

+, * , **

*, /, %

**, *, +

-, /, %

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT an escape sequence?

\b

\t

\n

\\"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name?

totalTax

2MoreToGo

halt!

@2nd_var

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name the documentation that provides the guideines and best practices on how to write Python code

SO/IEC 9075:2023

ASCII

UNICODE

PEP - 8

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type would most appropriately be used to represent your monthly salary?

Integer

Float

String

Boolean

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?