Search Header Logo

Intro to Computer Science Final Exam 2025

Authored by Tami Mackenroth

others

8th Grade

Used 4+ times

Intro to Computer Science Final Exam 2025
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

48 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

1) What would be the output of running the following code (assuming all import statements are present)?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

2) What attribute do we need to set to ‘center’ in the styleSheet if we want the items inside to be centered vertically? (Assume flexDirection is set to column)

height
alignItems
justifyContent
The default is for items to be aligned vertically, so no additional attribute is needed.

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

3) What line of code would need to be included on line 32 in order to create the following phone output?

justifyItems: 'center'
alignItems: 'center'
justifyContent: 'center'
alignContent: 'center'

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

4) What would be the output when the following code is run?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

5) What attribute(s) are missing from the container stylesheet below in order to produce the following output?

justifyContent: 'center' AND alignItems: 'center'
justifyContent: 'center' AND flexDirection: 'column'
alignItems: 'center' AND flexDirection: 'row'
flexDirection: 'row'

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

6) What attribute changes the font color of text?

backgroundColor
textColor
fontColor
color

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

7) What is the difference between fontWeight and fontSize?

fontWeight controls the boldness of the text while fontSize controls how large or small each character is.
fontWeight is used to make text italic while fontSize is used to make text bold.
fontWeight controls how large or small each character is while fontSize controls the boldness of the text.
fontWeight controls the boldness of the text underline while fontSize controls how large or small each character is.

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?