Computer Science Refreshment

Computer Science Refreshment

12th Grade

19 Qs

quiz-placeholder

Similar activities

Recuperacion final parte 1

Recuperacion final parte 1

8th Grade - University

20 Qs

Quiz Pemrograman Phyton

Quiz Pemrograman Phyton

9th - 12th Grade

20 Qs

Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade - University

15 Qs

LETS PLAY QUIZ - PYTHON CBSE CLASS XII

LETS PLAY QUIZ - PYTHON CBSE CLASS XII

11th - 12th Grade

20 Qs

Assessment #2

Assessment #2

5th Grade - Professional Development

20 Qs

Python Programming Quiz

Python Programming Quiz

10th Grade - University

20 Qs

String Data Type(Python)

String Data Type(Python)

12th Grade

20 Qs

IDT S1 Final Review - Part 1

IDT S1 Final Review - Part 1

8th - 12th Grade

20 Qs

Computer Science Refreshment

Computer Science Refreshment

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Evan Jackson

Used 2+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Which Python code segment will display “Hello, world!” on the screen?

display Hello, world!

print("Hello, world!")

print "Hello, world!"

"Hello, world!"

2.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What does the following Python code display?

print("Hello")

print("World")

Hello

World

HelloWorld

Hello World

Hello

World

3.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What type is the following variable?

x = "Hi there"

float

integer

boolean

string

4.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What does the following Python program print?

x = "I am"

y = 6

z = "feet tall"

print(x)

print(y)

print(z)

I am 6 feet tall

I am6feet tall

I am

6

feet tall

x

y

z

5.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What is the type of the variable x in the following Python program?

x = input("Enter something: ")

string

integer

float

the type cannot be determined

6.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Suppose you run the following Python program:

x = input("Enter some text: ")

print(x)

While the program is running, after the prompt has been printed, the user types the following and presses Enter:
Delaware ratified the U.S. Constitution in 1787.
What does the program print?

Delaware ratified the U.S. Constitution in

Delaware

Delaware ratified the U.S. Constitution in 1787.

(The program does not print anything)

7.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What does the following Python program print?

x = 9 + 6 / 3 * 2 - 1

print(x)

9

12

15

21

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?