Search Header Logo
Programming Recap 1

Programming Recap 1

Assessment

Presentation

Computers

10th Grade

Hard

Created by

Leah Tomlinson

Used 3+ times

FREE Resource

8 Slides • 5 Questions

1

Programming Recap 1

A recap lesson of programming basics covering: Inputs, Outputs, Variables and Constants

Slide image

2

Fill in the Blank

What is missing in the code below:


print(Hello World")

3

Multiple Choice

Which of the following lines of code is the correct way to create an input stored in a variable called age?

1

input("What is your age?") = age

2

Age = input("What is your age?")

3

age = input("What is your age")

4

age = input "What is your age?"

4

Multiple Select

Which of the following variables will have a string data type

1

x = 5

2

x = "5"

3

y = "Hello"

4

y = Hello

5

Multiple Choice

The code 'x = int(input("Enter a number"))' will cast/change an input to be stored as an integer (number).


What code is used to cast a value to a string?

1

float()

2

string()

3

str()

4

stg()

6

Multiple Select

In which of the following programs will the total return the value of 10?

1

x = "7"

y = 3

total = x + y

2

x = 5

y= 5

total = x + y

3

x = "4"

y= "6"

total = x + y

4

x = "3"

y = 5

total = y + y

7

Slide image

8

Slide image

9

Slide image

10

Slide image

11

Slide image

12

Slide image

13

Task

Use the document posted in Google Classroom which is attached to this assignment and complete the programming tasks using Google Colab

Programming Recap 1

A recap lesson of programming basics covering: Inputs, Outputs, Variables and Constants

Slide image

Show answer

Auto Play

Slide 1 / 13

SLIDE