Search Header Logo
Computer Science preparatory

Computer Science preparatory

Assessment

Presentation

Computers

1st - 5th Grade

Practice Problem

Medium

Created by

Henry Osbourne

Used 46+ times

FREE Resource

7 Slides • 16 Questions

1

Computer Science

Preparatory

2

These are the main topics for the exam for programming:

media

3

media

These are the main types of variables in Python. For the exam, you will use the basic ones which are.

Integers, Float and strings.

Types of variables

4

media

These are helpful to ask the user-specific information for the machine to answer, depending the instruction.

Inputs and outputs

5

media

conditionals are statements that allow the program to make decisions and execute different blocks of code depending on whether certain conditions are true or false.

Conditionals

6

​In Python, there are several math operators that are used to perform arithmetic operations on numbers. These operators include Addition, subtraction, multiplication, and division.

Math operators

media

7

media

A flowchart is a graphical representation of a process or algorithm that shows the sequence of steps involved and the flow of control between them.

Flowcharts

8

Multiple Choice

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

1

5

2

4

3

7

4

2

9

Multiple Choice

Numbers with a decimal point belong to a data type called...

1

Decimal

2

Float

3

Pointing

4

String

10

Multiple Choice

Which of the following text strings is correct?

1

new_var = "Tim/'s Computer"

2

new_var = "Tim's Computer"

3

new_var = "Tim\'s Computer"

4

new_var = Tim's Computer

11

Multiple Choice

Which of the following is not a string?

1

new_var = "True"

2

new_var = "3.123"

3

new_var = "3123"

4

new_var = False

12

Multiple Choice

Which of the following is a float?

1

new_var = 1234

2

new_var = 1.234

3

new_var = True

4

new_var = "True"

13

Multiple Choice

Choose the statement that assigns 4 to the power of 3 to the variable new_var...

1

new_var = 4 ** 3

2

new_var = 3 ** 4

3

new var = 3 ** 4

4

new_var = 4 ^^ 3

14

Multiple Choice

To create a variable named new_var and assign it a value of 81 divided by 9, which statement would you use?

1

new_var = 81 \ 9

2

new_var = "81 \ 9"

3

new_var = "81 / 9"

4

new_var = 81 / 9

15

Multiple Choice

Which symbol do we use if we want to add a comment to our code?

1

&

2

%

3

#

4

@

16

Multiple Choice

How would would you print a text string?

1

output "Hello!"

2

print (Hello!)

3

print ("Hello!")

4

output (Hello!)

17

Multiple Choice

How would you assign an integer to a variable?

1

new_var = 4

2

new_var = "4"

3

new_var == 4

4

new var "4"

18

Multiple Choice

How would you output new_var = 123 as a text string?

1

print str(new_var)

2

print str[new_var]

3

print new_var.str

4

print (new_var).str()

19

Multiple Choice

What does an IF statement do?

1

Closes the program

2

Asks a question

3

Makes a decision

4

Outputs information

20

Multiple Choice

What is a flowchart?

1

Just another diagram

2

A list of instructions

3

A diagram to represent an algorithm

4

All the options

21

Multiple Choice

What is the input/output symbol in flowcharts?

1

A circle

2

A rhombus

3

A rectangle

4

A parallelogram

22

Multiple Choice

Question image

This symbol SPLITS the flowchart sequence into multiple paths in order to represent SELECTION and REPETITION.

1

Input/Output

2

Start/End

3

Decision

4

Arrows

23

Multiple Choice

Which of the following Python operators is used for variable assignment?

1

=

2

/

3

+

4

-

Computer Science

Preparatory

Show answer

Auto Play

Slide 1 / 23

SLIDE