The Internet
There's math in computer science?
Algorithms
It's all just bits
Let's Code
100

Before conducting ecommerce on a site, one should ensure that a safe connection has been established based on the protocol such as https://. In this case, the hypertext transfer protocol is ______.

What is secure

100

DISPLAY (20 mod 4) + 3

What is 3

100

The type of data represented with GIF, PNG, JPEG, BMP file formats.

What is images or pictures

100

The name for the base 2 number system.

What is binary

100

The type of control structure that can be used for making decisions in a program based on the value of a Boolean expression.

What is an if statement (or selection, or branching)

200

The Internet depends on a layered communication system of _______ that manage abstractions.

What are protocols

200

___ distinct numbers can be represented with 9 bits

What is 512

200

The question below uses a robot in a grid of squares. The robot is represented by a triangle, which is initially at the bottom-left square of the grid facing toward the right of the grid. The robot can move into a white or gray square, but cannot move into a black region.

The goal is to move the robot in a grid to a gray square.

Consider the example grid above. Assuming our code segment needs to work when the gray square is anywhere in the top row, which of the following code segments will always get the robot to the gray square?

 REPEAT UNTIL (CAN_MOVE (left))
{
    MOVE_FORWARD ()
}
ROTATE_LEFT ()
MOVE_FORWARD ()

200

RGB color values mimic the human eye by representing colors using 3 values of ____ bits each.

What is 8 bits

200

The process of placing a loop inside another loop.

What is nesting

300

Websites for a college or university should have this domain extension.

What is .edu

300

HTML uses 6-digit hexadecimal notation for identifying colors on webpages so that the Red/Green/Blue values are each represented by a 2-digit Hexadecimal (16-bit) number. What is the decimal number for the Green color value in the color AC0BFF?

What is 11

300

In determining the best route to take on recent trip, a maps application gave the user three options based on traffic patterns, road construction, and roadways. This term refers to the method for choosing the best alternative among the three possible routes.

What is a heuristic solution

300

You are currently using a certain number of bits, n, to store values. Suppose you increase the number of bits you are using to store values by one. How many more values can you now represent?

two times the number of values

300

The failure to create a correct condition that controls a repeat statement results in this type of programming error.

What is an infinite loop

400

An attempt to deny users access to a Web site's resources by flooding the website with requests from multiple systems.

What is a Distributed Denial of Service (DDoS) attack

400

How many more values can be represented by one hexadecimal digit than one binary digit?

 what is 8 times

400

Given the following algorithms, which of the algorithms require both selection and iteration?

I. Given a basket of produce, get the number of pieces of produce in the basket.
II. Given a basket of produce, remove all produce of type vegetable.
III. Given a basket of produce remove all produce of type fruit.
IV. Given an apple and a carrot, return the one that has the type of vegetable.

 what is II and III

400

Tiffani has a channel on a popular video sharing site and has over 100 thousand subscribers. After making her latest video and uploading to her channel, she notices that the quality of video better on her home computer than the uploaded version. This is the likely cause of Tiffani’s video quality.

What is lossy compression

400

The following code should display "even" if the positive number num is even.


IF (MISSING CONDITION)

DISPLAY ("EVEN")


Give a Boolean expression that could replace MISSING CONDITION

What is num MOD 2 == 0

500

The system used for translating a web address like www.google.com into an IP address that can be used to connect to the site's server.

What is the Domain Name System (DNS)

500

The binary number 00101101 in base-10.

What is 45

500

Assuming that forward tells a robot to move forward by 10 pixels and turn tells it to turn right by 90 degrees, this shape would be drawn by the following algorithm. forward forward turn forward turn forward forward turn forward turn

What is a rectangle

500

A computer program uses 3 bits to represent integers. When the program adds the decimal (base 10) numbers 5 and 3, the result is 0. Name the type of error that occurred.

What is an overflow error

500

i <- 0

sum <- 0

REPEAT UNTIL i = 4

sum <- sum + i

i <- i + 1

DISPLAY (sum)

What is 6

M
e
n
u