Practice Unit Test Computer Sci

studied byStudied by 14 people
5.0(1)
Get a hint
Hint
<p>What is the output of line 1?</p>

What is the output of line 1?

1 / 41

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

42 Terms

1
<p>What is the output of line 1?</p>

What is the output of line 1?

Line 1 shows a variable, not a print. Therefore, line 1 will not output anything

New cards
2
<p>What does line 5 output?</p>

What does line 5 output?

Doe

New cards
3
<p>What does line 6 output?</p>

What does line 6 output?

JaneDoe

New cards
4
<p>What does line 7 output?</p>

What does line 7 output?

Jane Doe

New cards
5
<p>What does line 4 output?</p>

What does line 4 output?

Jane

New cards
6

Create the line of code required to print out the exact text below:

“There is no substitute for victory.”

print("\"There is no substitute for victory.\"")

Note of the way the slash goes.

New cards
7
<p>Is this output correct?</p>

Is this output correct?

No

New cards
8

What will be displayed exactly by this line of code:

1   print("Hello Class!\n")

2 print("I hope you find this quiz easy")

Hello Class!

I hope you find this quiz easy

New cards
9
<p>What will this output?</p>

What will this output?

3

New cards
10
<p>What will this output?</p>

What will this output?

7

New cards
11
<p>What will this output?</p>

What will this output?

ic

New cards
12
<p>What will this output?</p>

What will this output?

1

New cards
13

Create a multiline comment that includes 3 lines of text as follows:

Title: Quiz Program in Python

Programmed on: September 28, 2024

By: Your name

""" 
Title: Quiz Program in Python
Programmed on: January 31, 2024
By: Y/N
"""
New cards
14
<p>What type of variable is this number?</p>

What type of variable is this number?

String variable

New cards
15
<p>What will the output look like for this print statement?</p>

What will the output look like for this print statement?

Your name isSteveand that is fantastic!

New cards
16
<p>What will this output?</p>

What will this output?

BE NICE TO EVERYONE

New cards
17
<p>What is the purpose of ‘name’ in this code?</p>

What is the purpose of ‘name’ in this code?

The variable saves some memory for the data

New cards
18

What is the correct output for this program?

1    sentence = Hi there!
2
3 print(sentence)

Syntax Error: To assign words to a variable, they must be in quotations to signify a string

New cards
19

What will be displayed exactly by this line of code:

1    print("Hello Class!")

Hello Class!

New cards
20
<p>What is the output of line 1?</p>

What is the output of line 1?

New cards
21
<p>What is the output of the two input or gate?</p>

What is the output of the two input or gate?

True

New cards
22
<p>What is the output of the two input and gate?</p>

What is the output of the two input and gate?

True

New cards
23
<p><span>What is the value quizIsEasy in line 6?</span></p>

What is the value quizIsEasy in line 6?

True

New cards
24
<p>What is the output of this line of code?</p>

What is the output of this line of code?

Error (Helleman and Teacher are not defined)

New cards
25
<p>What is the 3rd number printed?</p>

What is the 3rd number printed?

7

New cards
26
<p>What is the output of the two input or gate?</p>

What is the output of the two input or gate?

False

New cards
27
<p>What is the output of the two input or gate?</p>

What is the output of the two input or gate?

False

New cards
28
<p>What is the output of this line of code?</p>

What is the output of this line of code?

True

New cards
29
<p>What is the output of the two input and gate?</p>

What is the output of the two input and gate?

False

New cards
30
<p>What is the correct output?</p>

What is the correct output?

knowt flashcard image
New cards
31
<p>What is the value of result for the following equation?</p>

What is the value of result for the following equation?

False

New cards
32
<p>What is the most appropriate item(s) that define what quizIsEasy?</p><p>Variable, Integer, Boolean, or Text?</p>

What is the most appropriate item(s) that define what quizIsEasy?

Variable, Integer, Boolean, or Text?

Variable and Boolean

New cards
33
<p>What is the last number printed?</p>

What is the last number printed?

12

New cards
34
<p><span>Which of the following lines will be printed?</span></p>

Which of the following lines will be printed?

Students are smarter than teacher

Smile

New cards
35
<p>What is line 1? (one word answer)</p>

What is line 1? (one word answer)

Comment

New cards
36
<p>What is the output of the two input and gate?</p>

What is the output of the two input and gate?

False

New cards
37
<p>What is the output of this line of code?</p>

What is the output of this line of code?

True

New cards
38
<p>What is the output of the two input or gate?</p>

What is the output of the two input or gate?

True

New cards
39
<p>What is the output of this line of code?</p>

What is the output of this line of code?

False

New cards
40
<p><span>What is its range of Level 4? Please enter integer numbers only. Example answer: </span><strong>34-38</strong></p>

What is its range of Level 4? Please enter integer numbers only. Example answer: 34-38

80-94

New cards
41
<p>What is the output of this line of code?</p>

What is the output of this line of code?

Helleman == Teacher

New cards
42
<p>What is the output of this line of code?</p>

What is the output of this line of code?

Error, to compare two strings, you must have two operators. In this case, it is supposed to be:

print ("A" == "A")
New cards

Explore top notes

note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 23 people
... ago
5.0(1)
note Note
studied byStudied by 14 people
... ago
5.0(2)
note Note
studied byStudied by 12 people
... ago
5.0(1)
note Note
studied byStudied by 19 people
... ago
5.0(1)
note Note
studied byStudied by 86 people
... ago
5.0(1)
note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 1207 people
... ago
5.0(9)

Explore top flashcards

flashcards Flashcard (41)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (28)
studied byStudied by 22 people
... ago
5.0(1)
flashcards Flashcard (550)
studied byStudied by 18 people
... ago
5.0(1)
flashcards Flashcard (36)
studied byStudied by 21 people
... ago
5.0(2)
flashcards Flashcard (25)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (105)
studied byStudied by 137 people
... ago
5.0(1)
flashcards Flashcard (97)
studied byStudied by 248 people
... ago
5.0(9)
robot