Digital Information
The Internet
App Design
Variables, Conditionals, Functions
Lists
100

Which can be represented by 4 bits in binary?

a) Pi

b) The number of days in March

c) The population of Newnan

d) Unlucky number 13

d) Unlucky number 13

100

You cut a fiber line while digging. Internet traffic is still possible because of:

a) bandwidth

b) protocols

c) redundancy

d) latency

c) redundancy

100

An example of input and output in a program:

a) i: ask for feedback, o: get suggestions

b) i: put money in machine, o: get a soda

c) i: a user clicks a button, o: a sound is played

d) i: study hard, o: make good grades

c) i: a user clicks a button, o: a sound is played

100

The variable isOn is used to indicate whether a light is on or off.  Which is the best data type for isOn?

a) Boolean

b) number

c) string

d) list

a) Boolean

100

The list is indexed starting at 1.
var myNumbers = [2, 0, 10, 1, 16]
What is the value of myNumbers[2]?

a) 2

b) 0

c) 10

d) 1

b) 0

200
Translate 1110 from binary (base 2) to decimal (base 10)

a) 7

b) 13

c) 14

d) 15

c) 14

200

What is the relationship between the world wide web and the internet?

a) the www is a protocol accessed from the internet

b) the www is a network accessed over a protocol called the internet

c) the www is a system of linked pages and files accessed over a data stream called the internet

d) the www is a system of linked pages and files accessed over a network called the internet

d) the www is a system of linked pages and files accessed over a network called the internet

200

You are using the Uber app. What is LEAST likely to be input from you as the user?

a) the cost of your ride

b) your current location

c) your destination

d) your payment information

a) the cost of your ride

200

What is the value of score after running this?
score = 1;
score=score+3;
score="the score is " + score

a) 3

b) 4

c) the score is 3

d) the score is 4

d) the score is 4

200

This list is indexed starting at 1
colors="pink", "red", "orange"
colors="blue", "green", "violet"
display colors[1]

What is displayed?

a) pink

b) red

c) blue

d) green

c) blue

300

How many values can you represent with 8 bits?

a) 7

b) 8

c) 128

d) 256

d) 256

300

How are messages sent over the internet?

a) They are broken into packets which must be sent and received in order

b) They are broken into packets which can be received in any order

c) They are broken into two packets - the metadata and the message

d) They are sent as a single file

b) They are broken into packets which can be received in any order

300

One thing that does NOT help collaboration in app development

a) planning an app together

b) writing code independently, then combining it in the end

c) asking for input from potential users

d) asking friends for feedback

b) writing code independently, then combining it in the end

300

What is displayed is score=3 and lives=1?
If lives=0
   display "you lose!"
Else if score > 5 and lives=3
   display "Perfect!"
Else
   display "you win!"

a) you lose!

b) Perfect!

c) you win!

d) NaN


c) you win!

300
names = ["bob", "alice", "eve"]

names.append "jack"
names.remove "eve"
display names.length

What is displayed?

a) eve

b) 5

c) 4

d) 3

d) 3

400
What is the highest value you can represent with 7 bits?

a) 7

b) 8

c) 127

d) 128

c) 127

400

Why use protocols?

a) to ensure your data transmission is secure

b) to specify in advance how data is routed

c) to ensure all users have equal bandwidth

d) to standardize transmission between devices

d) to standardize transmission between devices

400

A good reason to have a diverse team working on an app:

a) avoid writing comments

b) eliminate software testing

c) reach the needs of many users 

d) no need for documentation

c) reach the needs of many users

400

What is displayed?
var day = "Saturday"
If day="Saturday" or day="Sunday
   weekend();
Else
   weekday();

function weekend
   display "Hooray!"

function weekday
   display "Bummer!"

a) weekend

b) weekday

c) Hooray!

d) Bummer!

c) Hooray!

400

What is the most important quality of lossless compression?

a) the transformed data is always smaller than the original

b) The compressed data can always be reconstructed to the original

c) The lost data can't be perceived by human eyes/ears

b) The compressed data can always be reconstructed to the original

500

Which binary number represents the decimal (base 10) number 64?

a) 0100 0000

b) 0111 1111

c) 1000 0000

d) 0000 1111

a) 0100 0000

500

Which is a likely problem due to the digital divide?

a) voter registration forms are available only online

b) you use an image on the internet without attributing the creator

c) libraries provide free internet access

d) packets arrive out of order

a) voter registration forms are available only online

500

Which would result in a better digital representation of an image?

a) less frequent sampling/larger sample squares

b) more frequent sampling/smaller sample squares

c) using decimal numbers to represent each pixel

d) using fewer bits to represent the image

b) more frequent sampling/smaller sample squares

500

var x = ""
function saySomething
   display "Hello"

Hello is never displayed.  Why?

a) x has no value

b) x does not have a meaningful name

b) saySomething is defined and called

c) saySomething is defined but not called

c) saySomething is defined but not called