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 1638 people
Updated ... ago
5.0 Stars(10)
note Note
studied byStudied by 30 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 438 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 21 people
Updated ... ago
4.0 Stars(1)
note Note
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 100 people
Updated ... ago
4.7 Stars(3)
note Note
studied byStudied by 613 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard61 terms
studied byStudied by 71 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard30 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard26 terms
studied byStudied by 11 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard20 terms
studied byStudied by 25 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard21 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard50 terms
studied byStudied by 10 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard45 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard347 terms
studied byStudied by 3875 people
Updated ... ago
4.3 Stars(32)