Variables

Variables

6th - 8th Grade

9 Qs

quiz-placeholder

Similar activities

Computer System

Computer System

8th - 9th Grade

10 Qs

Питон

Питон

7th Grade

10 Qs

TMK A

TMK A

6th Grade

11 Qs

Praktik Lintas bidang

Praktik Lintas bidang

7th Grade

10 Qs

APPS FOR GOOD - END OF TOPIC TEST

APPS FOR GOOD - END OF TOPIC TEST

7th - 8th Grade

12 Qs

C Variables and Constants

C Variables and Constants

7th Grade

10 Qs

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

1st Grade - Professional Development

10 Qs

Computer Hardware For Grade 6 Students

Computer Hardware For Grade 6 Students

6th Grade

10 Qs

Variables

Variables

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Christian Farley

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

9 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

3 mins • 1 pt

x = 3

y = x

x = 4

print(y)

2.

FILL IN THE BLANK QUESTION

3 mins • 1 pt

What is the output

y = 4

x = y

x = 3

print(x + y)

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will the output be from the following code?
print(3+4)

3+4
7
SyntaxError
print(3+4)

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will the output be from the following code?
print("3+4")

7
3+4
34
SyntaxError

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which of the following input commands would allow the user to receive and store a string from the keyboard?

string = input("Please enter a string:")

string = int(input("Please enter a string:"))

string = float(input("Please enter a string:"))

string = bool(input("Please enter a string:"))

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

How do you compare values in Python

@

==

=

*

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

You assign a value to a variable with which symbol

@

==

=

*

8.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

The function you use to receive and input from the keyboard

enter()

add()

receive()

input()

9.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList = [John, Harry, Jesse, John, Harry, Harry]

Discover more resources for Computers