Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

Codehs Study Guide || EXAM STYLE QUESTIONS WITH CORRECT SOLUTIONS!!

Document preview thumbnail
Preview 1 out of 4 pages

Characteristics of a command correct answers *No spaces in commands *Need to match exact capitalization *Every command ends in ( ) ; Function correct answers allows us to break down our program into smaller parts, and makes the program easier to understand. Rules for defining a function correct answers *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." Start function correct answers All of our programs start with We use functions to correct answers *break down our program into smaller parts *avoid repeated code *make our program more readable Comments correct answers Notes that you leave in your code so others can know what your code is doing For loops correct answers repeats a section of code a fixed number of times Conditions correct answers is a function that returns a true/false answer If statements correct answers a programming conditional statement that, if proved true, performs a function or displays information. if-else statements correct answers it executes a block of code if is true. If it's false, another block of code can be executed. While loops correct answers allows us to repeat a section of code as long as some condition is true. Computer correct answers is a computing machine that performs calculations according to precise instructions. Uses for computers correct answers *To keep counts *Marketplace *Calculate astronomical positions *Solves math problems *Military and business uses Hardware correct answers Physical components

Content preview

Codehs Study Guide || EXAM STYLE QUESTIONS
WITH CORRECT SOLUTIONS!!
Characteristics of a command correct answers *No spaces in commands
*Need to match exact capitalization
*Every command ends in ( ) ;

Function correct answers allows us to break down our program into smaller parts, and makes
the program easier to understand.

Rules for defining a function correct answers *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."

Start function correct answers All of our programs start with

We use functions to correct answers *break down our program into smaller parts
*avoid repeated code
*make our program more readable

Comments correct answers Notes that you leave in your code so others can know what your
code is doing

For loops correct answers repeats a section of code a fixed number of times

Conditions correct answers is a function that returns a true/false answer

If statements correct answers a programming conditional statement that, if proved true,
performs a function or displays information.

if-else statements correct answers it executes a block of code if is true. If it's false, another
block of code can be executed.

While loops correct answers allows us to repeat a section of code as long as some condition is
true.

Computer correct answers is a computing machine that performs calculations according to
precise instructions.

Uses for computers correct answers *To keep counts
*Marketplace
*Calculate astronomical positions
*Solves math problems
*Military and business uses

Hardware correct answers Physical components

Document information

Uploaded on
May 19, 2025
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ProPerfomer
3.8
(84)
Sold
443
Followers
322
Items
8859
Last sold
2 months ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions