Maggie Samson
Quiz by , created more than 1 year ago

Geography Quiz on GEOM 73 - Programming Concepts, created by Maggie Samson on 16/04/2019.

6
0
0
Maggie Samson
Created by Maggie Samson about 5 years ago
Close

GEOM 73 - Programming Concepts

Question 1 of 10

1

A memory location that can store a value is called a ____.

Select one of the following:

  • function

  • array

  • keyword

  • variable

  • statement

Explanation

Question 2 of 10

1

A set of rules that dictate how words and symbols can be put together to form valid program statements is called ____.

Select one of the following:

  • a program

  • a programming language

  • an algorithm

  • logic

  • syntax

Explanation

Question 3 of 10

1

Using a conditional statement to allow for choosing between two or more execution paths is called ____.

Select one of the following:

  • branching

  • selecting

  • iteration

  • looping

Explanation

Question 4 of 10

1

A programming technique used to execute a block of code multiple times is called ____.

Select one of the following:

  • repetition

  • controlling

  • looping

  • selection

  • branching

Explanation

Question 5 of 10

1

How many different values can a Boolean contain?

Select one of the following:

  • 0

  • 1

  • 2

  • 3

  • 5

Explanation

Question 6 of 10

1

A collection of data elements that are organized in some way is called a(n) ____.

Select one of the following:

  • algorithm

  • data type

  • data structure

  • string

  • classification

  • array

Explanation

Question 7 of 10

1

Which one of the following is a valid Python if statement?

Select one of the following:

  • if a >= 22

  • if (a = > 17):

  • if a >= 17:

  • if (a >= 17)

Explanation

Question 8 of 10

1

How do you create a variable called count that is equal to 17?

Select one of the following:

  • var count = 17

  • variable count = 17

  • count == 17

  • assign 17 to count

  • count = 17

Explanation

Question 9 of 10

1

The variable element is an integer. How would you cast this variable into text?

Select one of the following:

  • cast element to text

  • str(element)

  • string(element)

  • cast element to string

  • text(element)

Explanation

Question 10 of 10

1

Which of the following can be used to comment out a line of code?

Select one of the following:

  • *

  • //

  • #

  • (comment)

  • [ ]

Explanation