Ch. 5 Exam Review

Ch. 5 Exam Review

8th Grade

20 Qs

quiz-placeholder

Similar activities

Semester 1 games Review

Semester 1 games Review

8th Grade

25 Qs

ASESMEN KELAS 8

ASESMEN KELAS 8

8th Grade

20 Qs

Informatika_Kelas 8_Sistem Komputer

Informatika_Kelas 8_Sistem Komputer

8th Grade

15 Qs

Mock-Up Academy Programming Online Test

Mock-Up Academy Programming Online Test

6th Grade - University

20 Qs

Python 8 klasa

Python 8 klasa

8th Grade

20 Qs

Input vs Output Devices

Input vs Output Devices

6th - 8th Grade

20 Qs

Web Development Quiz

Web Development Quiz

8th Grade

15 Qs

 BAB 4 | 4.1 KOD ARAHAN | SUBTOPIK 4.1.2

BAB 4 | 4.1 KOD ARAHAN | SUBTOPIK 4.1.2

2nd Grade - University

15 Qs

Ch. 5 Exam Review

Ch. 5 Exam Review

Assessment

Quiz

Information Technology (IT)

8th Grade

Medium

Created by

Ashley Brown

Used 11+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you concatenate strings together with the plus sign (+), which of the following statements is true?

No spaces will be added to separate the parts within the output string

A space will be automatically added to separate each part within the output string

Only the longer input string will appear in the output string

The resulting string must be less than 128 characters in length

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When you use the print() statement to automatically concatenate multiple parameters together, which of the following statements is true?

No spaces will be added to separate the parts within the output string

A space will be automatically added to separate each part within the output string

Only the first parameter will be present in the output string

The resulting string must be less than 128 characters in length

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output when the following statements are run? favoriteColor = "purple" print("My favorite color is", favoriteColor)

purple

My favorite color ispurple

My favorite color is favoriteColor

My favorite color is purple

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output when the following statements are run? accountBalance = 112.5 print("My balance is: $", accountBalance)

$ 112.5

My balance is: $ accountBalance

My balance is: $ 112.5

You will see an error because you can't use a numeric parameter inside print()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which answer shows the output from the following print() statement? print("If you can dream it", "you can do it.", sep="#")

If you can dream it#you can do it.

If you can dream it, you can do it.

If#you#can#dream#it#you#can#do#it.

you can do it.#sep#If you can dream it

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many lines of output will be shown from the following code? print("Line 1", end = " ") print("Line 2") print("Line 3", end = " ")

1

2

3

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following two statements about the print() function are true?

print() with multiple parameters will automatically convert all values to strings and join them together with a space

print() with a single string parameter will display the exact string that you pass in

Both of these are true

Neither of these 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?