str vs int

str vs int

8th Grade

10 Qs

quiz-placeholder

Similar activities

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

Python Basic Unit 1

Python Basic Unit 1

7th - 8th Grade

14 Qs

AstepI Quiz 2

AstepI Quiz 2

4th - 8th Grade

10 Qs

J277 - 10QQ - Basic Python 1

J277 - 10QQ - Basic Python 1

8th - 10th Grade

10 Qs

Python Homework

Python Homework

8th Grade

12 Qs

CodeHS Python Variables

CodeHS Python Variables

7th - 12th Grade

10 Qs

Variables and Data Types

Variables and Data Types

8th Grade

14 Qs

ASAS SAINS KOMPUTER TING 2 - 3.1 PERSEKITARAN KOD

ASAS SAINS KOMPUTER TING 2 - 3.1 PERSEKITARAN KOD

8th - 10th Grade

11 Qs

str vs int

str vs int

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Joshua Coleman

Used 21+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is "UB4 9LE"

String

Integer

Character

Float

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of concatenating 'Hello' and 'World' in Python?

word1 = "Hello"

Word2 = "World"

print(Word1 + Word2)

HelloWorld

Hello World

['Hello', 'World']

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type would be best for storing a person's age?

String

Integer

Float

Boolean

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type does the following line of code use?

year = int(input("What year is it?")

input

string

integer

number

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

integers are used to...

display information

complete calculations

gather user input

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Strings are used to...

display information

complete calculations

gather user input

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Identify the variable that uses strings.

age

currentYear

print

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?