CodeHS Answers Key 2021 [*FREE ACCESS TO ALL TOPICS*]


Are you a student who enrolled in coding class with CodeHS and looking for solutions or CodeHS answers key for the most popular topics?

We know how hard is to find organized answers for CodeHS topics. But no worries as we solved every problem for you down below.

Note: All coding answers for CodeHS are checked multiple times before being shown to you.

CodeHS Answers Key – Quiz Solutions To All Units

As assured, we will be covering all possible quiz answer keys for CodeHS below. Please go through them.

If any important topics are missing then please let us know through our comment box at the end of this session.

 

CodeHS Karel Answers

Another important topic especially designed for beginners. Just click on the below button for getting answers:

CodeHS karel Answers

 

CodeHS Java Answers

Let us first dive into answers for the most popular coding language which is none other than Java:

Q. Describe: println
Ans: println allows us to print output to the screen.

Q. What is a variable?
Ans: A variable is a storage location for a value in a program.

Q. How do u declare a variable? (what does declaring mean)?
Ans: Declaring means allocating (providing) space for a variable. We accomplish this by saving var variableName where variableName is a meaningful name for your variable. (ex: var numApples;).

Q. How do you initialize a variable? (What does initializing mean)?
Ans: Initializing a variable means giving it a value for the first time (ex: var numApples = 5; This declares and initializes the variable numApples).

Q. How do you reset a variable that has already been declared and initialized?
Ans: You give it a new value (ex: numApples = 10; Notice I did not say var again).

Q. What is assignment?
Ans: Assignment is setting a variable equal to a value (ex: numApples = 15; I assigned numApples a value of 15).

Q. How do you combine variables and text?
Ans: You can combine variables and text by using concatenation.

Q. What is concatenation?
Ans: Concatenation is the process of combining variables and text. (ex: println (“Hi” ” + name + ” , you want ” + numApples + “apples and ” + numOranges + ” oranges. “);)

Q. What are three basic data types?
Ans:
-> Number – integers
-> Boolean – has a value of true or false
-> String – these are typical characters

Q. What are valid variable names?
Ans: Valid variable’s names start with a letter, the underscore, or a dollar sign.

Q. What is a lower camel case?
Ans: This is a convention we follow where the first word in a variable name is all lower case and any subsequent words are capitalized (ex: numApples).

Q. What is a convention?
Ans: A convention is something we will follow even though our program would work without following it.

Q. What is a prompt?
Ans: A prompt is a question for the user.

Q. What is output?
Ans: Output is what is displayed on the screen.

Q. What is increment and decrement?
Ans: Increment means adding one and decrement means subtracting one. This can be accomplished by i++; or i = i; or i = i – 1;

Q. What is modulus?
Ans: Modulus is the remainder function, represented by % (the percent sign). 17%5 = 2 (meaning when we divide 17 by 5 we get the remainder of 2).

Q. What is a canvas?
Ans: Canvas – getWidth(), getHeight(). The canvas is the output screen. The upper left-hand corner of the canvas is always 0,0. The getWidth() function gives us the width of the canvas and the getHeight() function gives us the height of the canvas.

Q. What is a boolean?
Ans: A boolean is a variable that has a value of true or false.

Q. What are the logical operators?
Ans:
! means- not
&& means- and
| | means- or
What are the comparison operators?
> means- greater than
>= means- greater than or equal to
< means- less than
<= means- less than or equal to
== means- equal to
!= means- not equal

Q. What are if statements?
Ans: These are similar to Karel if statements (ex: if (age >= 18) {…} the statements in the curly brackets will be run if it is true that age is greater than or equal to 18).

Q. What are conditionals?
Ans: This is the condition that goes in the parentheses for an if or a while statement.

Q. What are if/else statements?
Ans: These are similar to Karel if/else statements – the code after the conditional will be running if the conditional is true and the code after the else will be running if the conditional is false.

Q. What are for loops?
Ans: These are similar to Karel for loops. (ex: var i=0; i < 100; i++) {…} the code in the curly brackets after this will be executed a fixed number of times.

Q. What is a counter?
Ans: A counter is a variable that gets incremented or decremented each pass through repeated code.

Q. How do I keep a running total of something?
Ans:
var total = 0;
for (var i = 1; i <= 10; i++){
total = total + i;
}
println(total);

Q. What is a randomizer?
Ans: The randomizer will generate a random int, float, boolean, or color.

Q. What are while loops?
Ans: These are similar to Karel while loops.

Q. Why do we want to use variables in our program instead of hardcoding values?
Ans: This is a convention we will follow so that our program will work in multiple situations & not just a particular situation.

Q. What is a global variable?
Ans: A global variable is a variable that is known everywhere throughout your code.

Q. What is a function and why should I use them?
Ans: A function is defined for a specific task that needs to be done. We use functions because they make the program more readable & understandable, they break your program into smaller, more manageable pieces, & they allow for repeated codes.

Q. What is a local variable?
Ans: A local variable is a variable that only exists inside of a function.

Q. What are the parameters of a function?
Ans: The parameters to a function are the inputs to the function which is being passed into the function.

Q. What is the scope of a variable?
Ans: The scope of a variable is the area in your code in which the variable is known or usable.

Q. How do I call a function? How do I call a function with parameters?
Ans:
We can call a function by saying its name followed by ().
We call a function with parameters by saying its name with the parameters in the () separated by commas if there are multiple.

Q. What is the return value from a function?
Ans: A return value from a function is an output of a function. It is what is sent back from calling a function.

 

Solved Java Sample Problems

Q. 3.3.4: Your Name and Hobby
Ans:
function start(){
println(“My name is Leo.”);
println(“I like to hunt.”);
}

Q. 3.4.4: Apples and Oranges
Ans:
function start(){
var numApps = 20;
println(“Number of Apples: ” + numApps);
var numOra = 15;
println(“Number of Oranges: ” + numOra);
var numOrg = 0;
println(“Number of Apples: ” + numApps);
println(“Number of Apples: ” + numOra);
}

Q. 3.5.4: Obi-Wan Says
Ans:
function start(){
var name = readLine(“YourName? “);
var age = readInt(“How many driods do you want to met?”);
var wookies = readInt(“How many wookies? “);
println(“Hi ” + name + ” you want to meet ” + age + ” droids and ” + wookies + ” Wookie.”);
}

Q. 3.6.6: Sporting Goods Shop
Ans:
function start(){
var COST_OF_FRISBEE = 15;
var amount = readInt(“How many would like?”);
var sum = COST_OF_FRISBEE * amount;
println(sum);
}

Q. 3.6.7: Running Speed
Ans:
function start(){
var miles = readInt(” How far did you run? “);
var minutes = readInt(“How many minutes”);
var hours = minutes / 60;
var speed = miles/ hours;
println(“Speed in mph: ” +speed);
}

Q. 3.7.7: French Flag
Ans:
function start(){
var rectWidth = getWidth() / 3;
var rectHeight = getHeight();
var blueRect = new Rectangle(rectWidth, rectHeight);
blueRect.setPosition(0, 0);
blueRect.setColor(Color.blue);
add(blueRect);
var redRect = new Rectangle(rectWidth, rectHeight);
redRect.setPosition(rectWidth * 2, 0);
redRect.setColor(Color.red);
add(redRect);
}

Q. 3.7.8: Snowman
Ans:
var BOTTOM_RADIUS = 100;
var MID_RADIUS = 60;
var TOP_RADIUS = 30;
function start(){
var circle = new Circle(30);
circle.setPosition(200, 130);
circle.setColor(Color.grey);
add(circle);
var circle = new Circle(60);
circle.setPosition(200, 220);
circle.setColor(Color.grey);
add(circle);
var circle = new Circle(100);
circle.setPosition(200, 380);
circle.setColor(Color.grey);
add(circle);
}

 

CodeHS Javascript and Graphics Answers

Javascript and graphics is part of java but mentioned separately by educators so we are here starting with its basic definitions that you must understand first:

Q. Why do we use while loops in JavaScript?
Ans: To repeat some code while a condition is true.

Q. Why do we use if/else statements in JavaScript?
Ans: To either do something if a condition is true or do something else.

Q. println
Ans: JavaScript function that prints out a line to the user

Q. boolean
Ans: A true or false value

Q. Declare a variable
Ans: Defining a variable for the first time

Q. variable
Ans: A symbol or container that holds a value

Q. integer
Ans: A whole number (not a fraction)

Q. string
Ans: A sequence of characters

Q. initialize a variable
Ans: Giving a variable its first value

Q. float
Ans: A numeric value that can have a decimal

Q. readLine
Ans: Allows for the reading of user input when a string is used

Q. readInt
Ans: Allows for the reading of user input when an integer is used

Q. readFloat
Ans: Allows for the reading of user input when float number is used

Q. constant
Ans: A variable in a program that has a value that does not change

Q. magic number
Ans: A number in your code that seems arbitrary. Should be replaced with calculations

Q. increment
Ans: To add or increase

Q. decrement
Ans: To subtract from or decrease

Q. canvas
Ans: The screen in which graphics programs are drawn

Q. coordinate system
Ans: Uses numbers as coordinates to place objects in geometric space

Q. getWidth()
Ans: JavaScript function that returns the width of the graphics canvas

Q. getHeight()
Ans: JavaScript function that returns the height of the graphics canvas

Q. radius
Ans: The length between the center and edge of a circle

 

CodeHS Javascript and Graphics Quiz [SOLVED ANSWERS]

Following are answers to the quiz questions that are being asked recently:

Q. A store has 20 apples in its inventory. How can you store this information in a JavaScript variable?
Ans: var numApples = 20;

Q. You want to read input from the user to know how many apples they would like to buy. Which statement should you use to read in a number from the user?
Ans: var applesToBuy = readInt(“How many apples would you like? “);

Q. You are splitting up all of your apples equally between 3 people. Which statement below will calculate how many apples will be left over?
Ans: var leftOver = numApples % 3;

Q. In a graphics canvas, what are the coordinates of the bottom right corner of the window?
Ans: getWidth(), getHeight()

Q. What are the coordinates of the center of the window?
Ans: getWidth() / 2, getHeight() / 2

Q. In the following code:
var size = 20;
var x = 100;
var y = 200;
var ball = new Circle(size);
ball.setPosition(x, y);
What is the meaning of the x variable?
Ans: The x coordinate of the center of the circle

Q. The following program should draw a circle on the screen
1 function start(){
2 var circle = new Circle(40);
3 circle.setPosition(getWidth() / 2, getHeight() / 2);
4 circle.setColor(Color.blue);
5 }
But when we run this code, we don’t see the circle. What is missing from our start function?
Ans:
We create the circle and position it correctly on the screen, but we never add it to the screen. We need to add the following line:
add(circle);
after line 4

Q. What is the value of the boolean variable canVote at the end of this program?
var age = 17;
var isCitizen = true;
var canVote = age >= 18 && isCitizen;
Ans: false

Q. What is printed by the following program?
var isRaining = false;
var isCloudy = false;
var isSunny = !isRaining && !isCloudy;
var isSummer = false;
var isWarm = isSunny || isSummer;
println(“Is it warm: ” + isWarm);
Ans: Is it warm: true

Q. What is printed by the following program?
var numApples = 10;
var numOranges = 5;
if(numApples < 20 || numOranges == numApples){
println(“Hello, we are open!”);
} else {
println(“Sorry, we are closed!”);
}
println(“Sincerely, the grocery store”);
Ans:
Hello, we are open!
Sincerely, the grocery store

Q. We want to print the phrase “CodeHS is the best” exactly 25 times. What kind of control structure should we use?
Ans: For loop

Q. What is the output of the following program?
var result = 0;
var max = 5;
for(var i = 0; i < max; i++){
result += i;
}
println(result);
Ans: 10

Q. What is the last thing printed by the following program?
var start = 30;
var stop = 10;
for(var i = start; i >= stop; i-=5){
if(i % 2 == 0){
println(i * 2);
} else {
println(i);
}
}
Ans: 20

Q. We want to position a Circle on our canvas to be at a random position, but we want to keep the entire shape on the screen. Which of the following will accomplish this?
Ans:
var x = Randomizer.nextInt(circle.getRadius(), getWidth() – circle.getRadius());
var y = Randomizer.nextInt(circle.getRadius(), getHeight() – circle.getRadius());
circle.setPosition(x, y);

Q. We want to simulate constantly flipping a coin until we get 3 heads in a row. What kind of loop should we use?
Ans: While loop

Q. How many times will the following program print “hello”?
var i = 0;
while(i < 10){
println(“hello”);
}
Ans: This code will loop infinitely

Q. The following code continually asks the user for a password until they guess the correct password, then ends. But there is one problem.
1 var SECRET_PASSWORD = “karel”;
2
3 function start(){
4 while(true){
5 var password = readLine(“Enter your password: “);
6 if(password == SECRET_PASSWORD){
7 println(“You got it!”);
8 }
9 println(“Incorrect password, please try again.”);
10 }
11 }
Ans: Add a break; statement after line 7 so that the program doesn’t loop infinitely

Q. Why do we write functions?
Ans:
->Make our code easier to understand by giving a readable name to a group of instructions
->Avoid writing repeated code
->Make our code reusable

Q. In the following function printThreeTimes:
function printThreeTimes(word){
println(word);
println(word);
println(word);
}
What is the parameter of the function?
Ans: Word

Q. What is the output of the following program?
function start(){
var x = 5;
sumTo(x);
println(x);
}
function sumTo(num){
var sum = 0;
for(var i = 0; i <= num; i++){
sum += i;
}
println(sum);
}
Ans:
15
5

Q. What is printed by the following program?
function printNumbers(two, one, zero){
println(two);
println(one);
println(zero);
}
function start(){
var zero = 0;
var one = 1;
var two = 2;
printNumbers(zero, one, two);
}
Ans:
0
1
2

Q. How many parameters go into the function sum, and how many return values come out of the function sum?
function sum(first, second, third){
var result = first + second + third;
println(first);
println(second);
println(third);
return result;
}
Ans: 3 parameters go in, 1 return value comes out

Q. “It’s a bird! It’s a plane! No, it’s Superman!”
We want to write a function isSuperman that takes in two parameters isBird and isPlane and returns true if it is in fact Superman, and false otherwise.
If it’s not a bird and it’s not a plane, it must be Superman.
Which of the following functions is the correct implementation of isSuperman?
Ans:
function is Superman(isBird, isPlane){
return !isBird && !isPlane;
}

Q. What is printed by the following program?
function product(x, y){
return x * y;
}
function difference(x, y){
return x – y;
}
function start(){
var x = 2;
var y = 5;
var value1 = product(x, y);
var value2 = difference(y, x);
var result = difference(value1, value2);
println(result);
}
Ans: 7

Q. In the following code:
var MAX_NUMBER = 10;
function sum(x, y){
var result = x + y;
//Point A
return result;
}
function start(){
var num1 = Randomizer.nextInt(0, MAX_NUMBER);
var num2 = Randomizer.nextInt(0, MAX_NUMBER);
println( sum(num1, num2) );
}
Which variables exist at point A? In other words, which variables are in scope at point A? Which variables could you type at point A and the program would still work?
Ans: result, x, y, and MAX_NUMBER

Q. 4.2.4: One Ball in Each Spot
Ans:
function start(){
checkBall();
move();
checkBall();
move();
checkBall();
move();
checkBall();
}
function checkBall(){
if(noBallsPresent()){
putBall();
}
}

Q. 4.2.5: Right Side Up
Ans:
function start(){
if (facingSouth()) {
turnRight();
}
if (facingWest()) {
turnAround();
}
}

Q. 4.3.1: Face the Right Direction
Ans:
function start()
{
if(noBallsPresent()){
turnAround();
} else {
turnRight();
}
}

Q. 4.3.2: Fetch Puzzle
Ans:
function start(){
if(facingEast()){
move();
takeBall();
}
if(ballsPresent()){
takeBall();
}
if( facingWest()){
turnAround();
}
}

 

CodeHS Web Design Answers

Web design is yet another important topic that is completely covered as in another section below. Just click the button:

CodeHS Web Design Answers

 

CodeHS Python Answers

Python is one of the very important topics among students since its job vacancies are booming. So, CodeHS come up with the best training ever which made us do this part as a separate section for including maximum answers & problem-solving. Just click on the below button:

CodeHS python Answers

 

CodeHS SQL Answers

SQL(Structured Query Language)  is one of the vast topics covered by CodeHS educators. Before solving SQL related problems let us answer few basic terms you must know:

Q. SELECT * FROM House;
Ans: Returns the entire table called House.

Q. SELECT name FROM House;
Ans: Returns the House table with only the name column.

Q. SELECT name, id from House;
Ans: Returns the House table with the name and id columns, in the order requested.

Q. What does the symbol “=” represents?
Ans: Equal to

Q. What does the symbol “<>” represents?
Ans: Not Equal to

Q. What does the symbol “>” represents?
Ans: Greater Than

Q. What does the symbol “<” represents?
Ans: Less Than

Q. What does the symbol “>=” represents?
Ans: Greater or Equal

Q. What does the symbol “<=” represents?
Ans: Less Than or Equal

Q. SELECT * FROM Person WHERE house = 1;
Ans: Returns everyone in house 1

Q. Value in a list SELECT first_name, last_name FROM Person WHERE last_name LIKE “P%”;
Ans: Looks for a string that starts with “P” and ends with anything

Q. SELECT first_name FROM Person WHERE last_name IN (“Potter”, “Weasley”);
Ans: Returns everyone in Potter and Weasley family

Q. SELECT * FROM Person ORDER BY first_name;
Ans: Returns everything from Person in alphabetical order by first_name

Q. SELECT * FROM Person ORDER BY first_name DESC;
Ans: Returns everything from Person in descending alphabetical order by first_name

Q. SELECT * FROM Person ORDER BY last_name, first_name;
Ans: Returns everything from Person in alphabetical order by last_name, then by first_name to break ties

Q. SELECT id AS “ID”, name AS “Name” FROM House;
Ans: ID NAME

Q. SELECT * FROM table1 JOIN table2;
Ans: Combines every element of table1 with every element from table2 in every possible combination

Q. SELECT *  FROM Person JOIN House WHERE Person.house = House.id;
Ans: Combines things

Q. SELECT * FROM Letter AS First Join Letter AS Second;
Ans: To join the list with itself

Q. Mention string patterns
Ans:
“A%” (words starting with “A”)
“%a” (words ending with “a”)
“%a%” (words with “a” in it)

 

Solved SQL Sample Problems

Q. The Weasleys are a big family. Write a SQL query that will return the number of people in the Weasley family (people with the last name (Weasley). You should return a table with one column and one row. Name the resulting column “Num Weasleys”
Ans:
default.sql
SELECT COUNT(*) AS “Num Weasleys”
FROM Person
WHERE last_name = “Weasley”;

Q. Find the number of students who are enrolled in Transfigurations. You should write a query that returns one column with one row that has the number. The name of the resulting column should be “Num Students”.
Ans:
default.sql
SELECT COUNT(*) AS “Num Students”
FROM Enrollment JOIN Course
WHERE Enrollment.course = Course.id
AND Course.name = “Transfiguration”;

Q. Find the number of students who have a Z in their first name. You should write a query that returns one column with one row that has the number. The name of the resulting column should be “Num Students”.
Ans:
default.sql
SELECT COUNT(*) AS “Num Students”
FROM Person
WHERE first_name LIKE “%Z%”;

Q. Return a table showing the course enrollments for each course. Your result should have two columns: Course and Enrollment that show the name of the course & the number of students enrolled in the course. The courses should be listed in order of enrollment from highest to lowest. Break ties alphabetically by course name.
Hint: You can use ORDER BY on a COUNT function.
Ans:
default.sql
SELECT name as “Course”, COUNT(*) AS “Enrollment”
FROM Enrollment JOIN Course
WHERE Enrollment.course = Course.id
GROUP BY Enrollment.course
ORDER BY COUNT(*) DESC, name;

Q. Return a table showing the course enrollments for each course. This time for just the number of Hufflepuffs in the course. Your result should have two columns: Course and Enrollment that show the name of the course & the number of students enrolled in the course. The courses should be listed in order of enrollment from highest to lowest.
Hint: You can use ORDER BY on a COUNT function.
Ans:
default.sql
SELECT Course.name as “Course”, COUNT(*) AS “Enrollment”
FROM Enrollment JOIN Course JOIN Person JOIN House
WHERE Enrollment.course = Course.id
AND Person.id = Enrollment.person
AND Person.house = House.id
AND House.name = “Hufflepuff”
GROUP BY Enrollment.course
ORDER BY COUNT(*) DESC;

Q. How many professors come from each of the houses? Write a query that will return a list of each House and the number of professors who are in
that house. You can assume that all professors have a course in the Course table. Your result should have two columns: House with the name of the house and Professors with the number of professors in that house. Sort alphabetically by a house.
Ans:
default.sql
SELECT House.name as “House”, COUNT(*) AS “Professors”
FROM House JOIN Person JOIN Course
WHERE House.id = Person.house
AND Person.id = Course.professor
GROUP BY House.id
ORDER BY House.name;

Q. We want to know the biggest families in Magical Britain. To do this, we should return a table of the last names of the family, and the number of family members they have. Only include families with more than 1 person. Sort your results by a number of family members first and break ties alphabetically. The largest family should be the first row, the smallest family should be the last. The columns should be named Family, Count.
Ans:
default.sql
SELECT last_name AS “Family”, COUNT(*) AS “Count”
FROM Person
GROUP BY Person.last_name
HAVING COUNT(*) > 1
ORDER BY COUNT(*) DESC, last_name;

Q. It’s graduation time at Hogwarts, and everyone’s name is getting called in alphabetical order by last name and then by the first name. Find the last 5 names that will be called at graduation in the reverse order in which they will be called. Return a table with the first and last name only. You can assume that everyone in the Person table is graduating.
Ans:
default.sql
SELECT first_name, last_name
FROM Person
ORDER BY last_name DESC, first_name DESC
LIMIT 5;

Q. Find the first and last name of the Professor who teaches the least popular course at Hogwarts. This is the course that has the fewest students in it. You should just return the first_name, last_name of the professor.
Hint: Remember that you can rename tables that you join together, so you can distinguish between them.
Ans:
default.sql
SELECT Professor.first_name, Professor.last_name
FROM Person AS Professor
JOIN Person AS Student
JOIN Course JOIN Enrollment
WHERE Professor.id = Course.professor
AND Student.id = Enrollment.person
AND Course.id = Enrollment.course
GROUP BY Course.id
ORDER BY COUNT(*)
LIMIT 1;

Q. Find the first and last names of the 5 students sorted by most courses taken. You should return the first_name, last_name, courses of the students where courses are the number of courses in which they are enrolled. Sort the top 5 first by the most number of courses and then by the last name alphabetically.
Ans:
default.sql
SELECT Person.first_name, Person.last_name,
COUNT(*) AS “courses”
FROM Enrollment JOIN Person
WHERE Person.id = Enrollment.person
GROUP BY Enrollment.person
ORDER BY COUNT(*) DESC, Person.last_name
LIMIT 5;

 

CodeHS Study Guide

Following are a few commands and definitions if you are new to coding:

Q. Mention all possible characteristics of a command
Ans:
->No spaces in commands
->Need to match the exact capitalization
->Every command ends in ( ) ;

Q. Define Function
Ans: Function allows us to break down our program into smaller parts, and makes the program easier to understand.

Q. State the rules for defining a function
Ans:
->Name should start with a letter, and cannot have any spaces
->The name should describe what this function does
->The code in the function goes between the { and the } character, and this is called the “function body.”

Q. Define Start() function according to CodeHS
Ans: All of our programs start with an easy-to-understand by humans & by Karel.

Q. We use functions to:
Ans:
->Break down our program into smaller parts
->Avoid repeated code
->Make our program more readable

Q. Define Comments
Ans: Notes that you leave in your code so others can know what your code is doing.

Q. Define For-loops
Ans: Repeats a section of code a fixed number of times.

Q. Define Conditions
Ans: It is a function that returns a true/false answer.

Q. Define “if statements”
Ans: A programming conditional statement that, if proved true, performs a function or displays information.

Q. Define “if-else statements”
Ans: It executes a block of code if is true. If it’s false, another block of code can be executed.

Q. Define While-loops
Ans: This allows us to repeat a section of code as long as some condition is true.

Q. What is a Computer?
Ans: It is a computing machine that performs calculations according to precise instructions.

Q. Mention uses of computers
Ans:
->To keep counts
->Marketplace
->Calculate astronomical positions
->Solves math problems
->Military and business use

Q. Another phrase for Hardware
Ans: Physical components

Q. Define Software
Ans: Programs that run on any computer.

Q. Define System software
Ans: Programs that run on the computer that helps the computer perform tasks.

Q. What is a Binary?
Ans: This is a number system with only 0’s and 1’s.

Q. Define Byte
Ans: Unit of digital data.

Q. What is Digital Information?
Ans: It is nothing but any information which is stored as numerical digits.

Q. Define Data Abstraction
Ans: The process of simplifying complicated data into manageable chunks.

Q. Define Decimal Number System
Ans: A system with 10 numeric values, 0 through 9.

Q. Full form of ASCII
Ans: American Standard Code for Information Interchange.

Q. Define Pixels
Ans: The building blocks of digital images.

Q. Define Hexadecimal Number System
Ans: A base-16 system, consisting of the 16 symbols 0 through 9 and A through F.

Q. Summarize RGB Color Scheme
Ans: This allows us to encode colors as numeric data.

R = Math.min (R + 50, 255);
G = Math.min (G + 50, 255);
B = Math.min (B + 50, 255);
Brightness Filter

R = Math.max (R – 50, 0);
G = Math.max (G -50, 0);
B = Math.max (B – 50, 0);
Darkness Filter

Q. Define Internet
Ans: A global network connecting millions of computers, making it possible to exchange information.

Q. Define a Network
Ans: A group of 2 or more computer systems linked together.

Q. Define Bandwidth
Ans: The capacity of data transfer in a system and it’s measured by bitrate.

Q. Define Latency
Ans: The time it takes for a bit to travel from its sender to its receiver.

Q. What is “The Internet Protocol”?
Ans: A protocol that defines the layout of an Internet address.

Q. Define DNS
Ans: The service that translates URLs to IP addresses.

Q. Explain Routing
Ans: The process of deciding which path to take on a network. This is determined by the type of network and the software used to transmit data.

Q. Define Packets
Ans: Small chunks of information that have been carefully formed from larger chunks of information.

Q. Define Cybersecurity
Ans: The protection of computer systems, networks, and data from digital attacks.

Q. Full form of CIA Triad
Ans: Confidentiality, Integrity, Availability.

Q. Define Confidentiality
Ans: The protection of information from people who are not authorized to view it.

Q. Define Integrity
Ans: Aims at ensuring that information is protected from unauthorized or unintentional alteration.

Q. Define availability according to CodeHS
Ans: The assurance that systems and data are accessible by authorized users when and where needed.

Q. Define Digital Footprint
Ans: All of the information about a person can be found online due to their activity.

Q. What is Cyberbullying?
Ans: The use of electronic communication to bully a person, typically by sending messages of an intimidating or threatening nature.

Q. What is Privacy?
Ans: The appropriate use of your data.

Q. Define Copyright
Ans: A form of protection for intellectual property, usually applying to artistic work.

Q. Who is a Hacker?
Ans: A person who uses computers to gain unauthorized access to data on the internet.

Q. Who are White hat hackers?
Ans: They break into the systems for non-malicious reasons such as to test the system’s security vulnerabilities or to expose undisclosed weaknesses. Also known as ethical hackers.

Q. Who are Black hat hackers?
Ans: They break into other people’s computer systems and may just look around or may steal and destroy information.

Q. Who are Grey hat hackers?
Ans: A cross between black and white—they will often illegally break into systems merely to flaunt their expertise to the administrator of the system they penetrated or to attempt to sell their services in repairing security breaches.

Q. Define Cryptography
Ans: The study and use of techniques for securing communication.

Q. Another meaning for Encrypt
Ans: Scramble

Q. Another meaning for Decrypt
Ans: Unscramble

Q. What is Cryptanalysis?
Ans: The process of decrypting a message without knowing the cipher or key used to encrypt it.

Q. Define Cryptology
Ans: The study of solving and writing encryptions.

Q. Role of Symmetric Encryption
Ans: The same key is used to encode and decode.

Q. How many keys are used in Asymmetric Encryption & their roles?
Ans: Two keys are used; one key encodes the message, and the other key decodes the message.

Q. Define Hashing
Ans: Changing a message into an unreadable string of numbers.

 

About CodeHS

codehs answers key

CodeHS aims to provide outstanding computer science teaching and learning opportunities to students all around the globe.

The company thinks that education—specifically coding—in the official K-12 system, higher education, and beyond has the potential to enable everyone to reach their full potential.

Starting with basic level block programming classes and progressing to AP level text-based programming courses in various languages, CodeHS provides the complete course route throughout grades 6-12. Many state standards frameworks are aligned with their classes.

CodeHS emphasizes providing instructors, students, and team members with engaging, accessible, and innovative learning opportunities.

 

Reasons To Choose CodeHS

Following are the major reasons why an aspiring student who thinks of coding should go with CodeHS:

  • We think that, like reading and writing, coding is a fundamental talent in the twenty-first century. That is why CodeHS recommend reading, writing, and coding. This is accomplished by offering excellent curriculum, tools, and resources to instructors, students, and schools to help them execute high-quality computer science programs.
  • CodeHS think that everyone should have the opportunity to learn to code and that it is a skill that allows pupils to be as creative as they want. CodeHS aims to make computer programming education more enjoyable and accessible, and CodeHS think that excellent tools and a supportive community are required to do it.
  • With the assistance of their committed staff and outstanding tutors, CodeHS accomplish this through providing support for teachers, students, and schools.
  • To deploy computer science courses, CodeHS collaborate directly with students, instructors, schools, and districts.
  • CodeHS can provide a direct educational advantage to kids by developing an excellent curriculum, tools, and resources to enable high teachers to educate computer science.

 

Contact CodeHS Customer Service

The team is here to have a discussion with you, even if you don’t know precisely what you want computer science to be like at your school yet.

Therefore, CodeHS can assist you in choosing the best place to start (after-school club? one unit in another tech class? a complete programming course?) for your students.

To schedule a phone call or a demo, please fill out their Learn More form

To clear your doubts through email then use this emailID: [email protected]

You can also use their live chat option available on their official site.

 

We hope you find every possible CodeHS answer key for FREE.

Thank you for visiting our site and we also recommend you to visit our homepage to know answers for other related course answers.

Also, please do share with your friends who might be looking for the same.


2 thoughts on “CodeHS Answers Key 2021 [*FREE ACCESS TO ALL TOPICS*]”

Leave a Comment

Sorry! Copy-paste disabled.