Code
Latest uploads at Code. Looking for notes at Code? We have lots of notes, study guides and study notes available for your school.
-
26
- 0
-
1
All courses for Code
-
Code 26
-
Code; 1
-
Code/ 1
Latest content Code
Midterm Code Section
- Exam (elaborations)
- • 38 pages's •
-
CODE•CODE
Preview 4 out of 38 pages
Getting your document ready...
Midterm Code Section
TESTBANK for 3-2-1 Code It! 2024 Edition, 12th Edition Michelle A. Green
- Package deal
- Exam (elaborations)
- • 296 pages's •
-
Code•Code
-
3-2-1 Code It TESTBANK AND SOLUTION MANUAL• By storetestbanks
Preview 10 out of 296 pages
Getting your document ready...
TESTBANK for 3-2-1 Code It! 2024 Edition, 12th Edition Michelle A. Green
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)
- Exam (elaborations)
- • 2 pages's •
-
Code•Code
Preview 1 out of 2 pages
Getting your document ready...
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)
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 function definition...
- Exam (elaborations)
- • 3 pages's •
-
Code•Code
Preview 1 out of 3 pages
Getting your document ready...
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 function definition...
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 against spying...
- Exam (elaborations)
- • 10 pages's •
-
Code•Code
Preview 2 out of 10 pages
Getting your document ready...
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 against spying...
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();
- Exam (elaborations)
- • 71 pages's •
-
Code•Code
Preview 4 out of 71 pages
Getting your document ready...
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();
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
- Exam (elaborations)
- • 7 pages's •
-
Code•Code
Preview 2 out of 7 pages
Getting your document ready...
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
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 widt...
- Exam (elaborations)
- • 6 pages's •
-
Code•Code
Preview 2 out of 6 pages
Getting your document ready...
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 widt...
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 and ma...
- Exam (elaborations)
- • 6 pages's •
-
Code•Code
Preview 2 out of 6 pages
Getting your document ready...
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 and ma...
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
- Exam (elaborations)
- • 7 pages's •
-
Code•Code
Preview 2 out of 7 pages
Getting your document ready...
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