Practice Unit Test Computer Sci

5.0(1)
studied byStudied by 14 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

42 Terms

1
New cards
<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

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

What does line 5 output?

Doe

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

What does line 6 output?

JaneDoe

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

What does line 7 output?

Jane Doe

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

What does line 4 output?

Jane

6
New cards

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.

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

Is this output correct?

No

8
New cards

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

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

What will this output?

3

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

What will this output?

7

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

What will this output?

ic

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

What will this output?

1

13
New cards

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
"""
14
New cards
<p>What type of variable is this number?</p>

What type of variable is this number?

String variable

15
New cards
<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!

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

What will this output?

BE NICE TO EVERYONE

17
New cards
<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

18
New cards

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

19
New cards

What will be displayed exactly by this line of code:

1    print("Hello Class!")

Hello Class!

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

What is the output of line 1?

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

What is the output of the two input or gate?

True

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

What is the output of the two input and gate?

True

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

What is the value quizIsEasy in line 6?

True

24
New cards
<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)

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

What is the 3rd number printed?

7

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

What is the output of the two input or gate?

False

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

What is the output of the two input or gate?

False

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

What is the output of this line of code?

True

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

What is the output of the two input and gate?

False

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

What is the correct output?

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

What is the value of result for the following equation?

False

32
New cards
<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

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

What is the last number printed?

12

34
New cards
<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

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

What is line 1? (one word answer)

Comment

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

What is the output of the two input and gate?

False

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

What is the output of this line of code?

True

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

What is the output of the two input or gate?

True

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

What is the output of this line of code?

False

40
New cards
<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

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

What is the output of this line of code?

Helleman == Teacher

42
New cards
<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")