Search Header Logo

CS1_Unit 1 Review

Authored by VIRENA MERLA

Computers

9th - 10th Grade

Used 17+ times

CS1_Unit 1 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

You are writing a program and you want to move the cursor to the next line without writing any text. Which command would you use?

\t

\s

\n

\title

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What does \t do in programming?

adds a tab

adds a space

goes to the next line

adds a title

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

In slicing, what number do we start with?

a

one

zero

100

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

a = "camp"

print(a[2])

What is printed?

mp

ca

m

a

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

a = "camp"

print(a[-4])

What is printed?

a

m

c

error

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

x = input()

y=input()

print(x + y)

What is the expected output if the user enters 2 and 4?

2

6

24

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

print("The", "house", "is", "red", end="!!")

What is printed?

The house is red!

The!!house!!is!!red!!

Thehouseisred!!

The house is red!!

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?