Code HS
Las últimas cargas en Code HS. ¿Buscando notas en Code HS? Tenemos muchas notas, guias de estudio y notas de estudio disponsible para tu escuela.
-
220
- 0
-
15
All courses for Code HS
-
Code HS 1
-
Code HS 220
-
Code-HS 3
Último contenido Code HS
Code HS Answers: Lessons 1-20 Complete Test Answered Correctly. 
 
Which is a valid Karel command? 
move; 
MOVE 
move(); 
move() 
move(); 
What is a street in a Karel world? 
Row 
What is an avenue in a Karel world? 
Column 
If Karel starts at Street 1 and Avenue 3 facing East, what street (row) and avenue (column) will Karel be on after this code runs? 
move(); 
move(); 
move(); 
turnLeft(); 
move(); 
Street 2 Avenue 6 
If Karel is facing North and the code 
turnLeft(); 
turnLeft(); 
runs; whic...
- Examen
- • 28 páginas's •
-
Code HS•Code HS
Why does a programmer indent their code? Easier for other people to understand, it helps 
show the structure of the code, and it's a key part of good programming style! 
 
Which of these is a valid way to write a single line comment in Java? 
 
/ / This is a comment 
 
+ + This is a comment 
 
This is a comment / / 
 
/ * This is a comment / / This is a comment 
 
What is a method in Karel? A method is a command that Karel can do. It has a name and a 
set of instructions
- Examen
- • 20 páginas's •
-
Code HS•Code HS
Which of the following is the proper format for an HTML tag? <h1>Content Affected by 
Tag</h1> 
 
Which of the following best describes the difference between the domain and path of a URL? 
The domain specifies where the browser's request should be sent. 
 
The path specifies exactly what file is being requested. 
 
What is the domain of this URL: 
 
What is generated from the following HTML code: 
 
<h1>Hello</h1> 
 
<h3>Hello</h3> 
 
<h6>Hello</h6...
- Examen
- • 8 páginas's •
-
Code HS•Code HS
Who creates the look and feel of a website? A web designer 
 
Who writes the HTML and CSS that brings the site to life? A web developer 
 
Who thinks about the best way to display information on the site? A web designer 
 
True or False: The majority of the world has access to the Internet. False 
 
Which of the following is related to the issue of censorship on the Internet? A government 
filtering search results to limit the access of information and suppress discussion amongst its 
citizens 
...
- Examen
- • 38 páginas's •
-
Code HS•Code HS
2.1.4 stretched slinky circle(35) 
forward(40) 
circle(35) 
forward(40) 
circle(35) 
forward(40) 
circle(35) 
forward(40) 
circle(35) 
forward(40) 
 
2.2.4 shorter dashed line penup() 
backward(200) 
pendown() 
forward(50) 
penup()
- Examen
- • 39 páginas's •
-
Code HS•Code HS
Cyber-security the state of being protected against the criminal or unauthorized use of 
electronic data, or the measures taken to achieve this. 
 
Why is it important to learn about Cyber-security? So we learn how to protect our 
information/data from being leaks. 
 
What is not true about Cyber-Security? Cyber attacks can devastate large organizations, but 
individuals are largely unaffected. 
 
Cyber Meaning dealing with computers or computer network. 
 
Security Measure taken to guard agains...
- Examen
- • 10 páginas's •
-
Code HS•Code HS
Which is a valid Karel command? 
 
move; 
MOVE 
 
move(); 
move() move(); 
 
What is a street in a Karel world? Row 
 
What is an avenue in a Karel world? Column 
 
If Karel starts at Street 1 and Avenue 3 facing East, what street (row) and avenue (column) will 
Karel be on after this code runs? 
move(); 
move(); 
move(); 
turnLeft();
- Examen
- • 71 páginas's •
-
Code HS•Code HS
When using view page source, it's possible to see the following: All of them are true. 
 
What does it mean for code to be minified? All of the spaces are removed from the code so 
that it is unreadable. 
ANSWERED 
 
When we inspect an element through developer tools, we are looking at: The current state of 
the page after it has been loaded. 
ANSWERED 
 
Developer tools can help with 
A. Testing and debugging a site or web app. B. Diagnosing problems quickly on a site or web 
app. C. Building ...
- Examen
- • 6 páginas's •
-
Code HS•Code HS
Which is an operating system not responsible for? 
1)Manages hardware such as a mouse 
2)Keeps tracks of files and folders 
3)Supplies power to peripherals such as a printer 
4)Secures the computer with user accounts and passwords 3 
 
What is not a mobile os? 
1) Mac OS 
2) android 
3) Windows 
4) Linux Android 
 
What type of operating system is permant key programmed into a hardware device? 
Firmware
- Examen
- • 7 páginas's •
-
Code HS•Code HS
What is data abstraction? The process of simplifying complicated data into manageable 
chunks 
 
Which of the following are examples of encoding information? Representing fast food meals 
as numbers on the menu. For example a number 1 represents a hamburger. 
 
Assigning a numeric value to every area of a region, for example zip codes in the United States 
 
Assigning a number to every character of the alphabet so we can represent sentences as series of 
simple digits. 
 
What is the number base...
- Examen
- • 4 páginas's •
-
Code HS•Code HS
What is an object in Java? An object is something that contains both state and behavior. 
 
What is the difference between a class and an object? Objects are instances of classes. The 
class is the general template, and the object is the specific version. 
 
What does it mean to be a client of a class? Being a client of a class means that we can use 
its methods and functionality without necessarily understanding how it works. 
 
What is a constructor in Java? A constructor allows us to create a...
- Examen
- • 4 páginas's •
-
Code HS•Code HS
Why are parameters useful? They allow us to tailor functions to be used in multiple 
situations 
 
How many parameters can we use in each function? As many as we need 
 
What is the default starting value of i in a for loop? 0 
 
What will the values of i be at each iteration of the loop below? 
 
For i in range(3): 0, 1, 2 
 
What will happen when the value of i reaches 5 in the loop below? 
 
for i in range(5): 
left(i)
- Examen
- • 2 páginas's •
-
Code HS•Code HS
Comments are written for... Humans to read and to understand 
 
What symbol is used at the beginning of an in-line comment? # 
 
What punctuation is used to begin a multi-line comment? """ 
 
What name follows all naming rules? make_square 
 
If I am creating a function that makes two squares, what would be the best name option? 
draw_squares 
 
What is not a way functions make our code more readable? Each function only contains one 
command 
 
What two things must be included in your functio...
- Examen
- • 3 páginas's •
-
Code HS•Code HS
For Loop for(var i = 0; i < COUNT; i++){ 
} 
 
While Loop while(boolean expression){ 
/* Repeat code betweeen brackets while 
* 'boolean expression' is true */ 
} 
 
If Statement if(BOOLEAN_EXPRESSION){ 
// code to execute if true 
} 
 
If/Else if(BOOLEAN_EXPRESSION){ 
// code if true 
 
} else { 
// code if false
- Examen
- • 7 páginas's •
-
Code HS•Code HS
Suppose you have a function that computes the area of a diamond. Which of the following 
comments would be the best yo use? 
 
//This is a function 
// This function computes the area 
// Computes and returns the area of a diamond using the parameters height and width 
The function doesn't need a comment // Computes and returns the area of a diamond using 
the parameters height and width 
 
The following if statement should check that an object will fit on the screen. The variables height 
and ...
- Examen
- • 6 páginas's •
-
Code HS•Code HS
Which of these is a valid Karel command? 
 
move; 
 
MOVE 
 
move(); 
 
move() move(); 
 
What is a street in a Karel world? 
 
A row 
 
A column
- Examen
- • 35 páginas's •
-
Code HS•Code HS
4.1.4: Fix This Program brought_food = True 
brought_drink = False 
print(brought_food) 
print(brought_drink) 
# These lines don't work! Fix them so that they do. 
print(type ("Did the person bring food? " + str(brought_food))) 
print(type ("Did the person bring a drink? " + str(brought_drink))) 
 
4.1.5: Plants needs_water = True 
needs_to_be_repotted = False 
print("Needs water: " + str(needs_water)) 
print (str(needs_to_be_repotted)) 
print(needs_water) 
 
4.2.5: Fix This Program can_j...
- Examen
- • 6 páginas's •
-
Code HS•Code HS
What is an object in Java? An object is something that contains both state and behavior. 
 
Which of the following best describes the relationship between a class and an object? A class 
definition specifies the attributes and behavior of every object that will be made. 
 
Every class definition has each of the following EXCEPT 
A name 
Defined attributes 
Defined behaviors to manipulate the state of the objects 
Defined objects as copies of the class Defined objects as copies of the class 
 
Co...
- Examen
- • 32 páginas's •
-
Code HS•Code HS
For Loop for(var i = 0; i < COUNT; i++){ 
} 
While Loop while(boolean expression){ 
/* Repeat code betweeen brackets while 
* 'boolean expression' is true */ 
} 
If Statement if(BOOLEAN_EXPRESSION){ 
// code to execute if true 
} 
If/Else if(BOOLEAN_EXPRESSION){ 
// code if true 
} else { 
// code if false
- Examen
- • 7 páginas's •
-
Code HS•Code HS
Who creates the look and feel of a website? A web designer 
 
Who writes the HTML and CSS that brings the site to life? A web developer 
 
Who thinks about the best way to display information on the site? A web designer 
 
True or False: The majority of the world has access to the Internet. False 
 
Which of the following is related to the issue of censorship on the Internet? A government 
filtering search results to limit the access of information and suppress discussion amongst its 
citizens 
...
- Examen
- • 38 páginas's •
-
Code HS•Code HS