JavaScript Concepts
Coding History
JavaScript Symbols
Computational Thinking
CodeHs.com
100

Why does a programmer indent their code?


What is?? Any of the answers below are accepted.

  1. Helps show the structure of the code.

  2. More manageable for other people to understand.

  3. A key part of good programming style!

100

Java and JavaScript are the same language.

(True or False)

What is False?

100

This symbol is used to end most JavaScript statements.

What is a semicolon (;)?

100

A self-contained, step-by-step set of instructions to solve a problem

What is an algorithm?

100

This popular learning path on CodeHS introduces students to programming concepts.

What is "Karel the Dog" or JavaScript Fundamentals?

200

A reusable block of code that performs a specific task.

What is a function?

200

Known as the "Queen of Code, "she coined the term bug after finding an actual moth in a computer.

Who is Grace Hopper?

200

This JavaScript method is used to join multiple strings together.

What is concat () or the + operator?

200
  1. Which of the following best describes computational thinking?

    • A) The ability to write code in multiple programming languages
    • B) A problem-solving approach that uses computer science concepts to formulate and solve problems
    • C) The process of debugging computer programs
    • D) The knowledge of computer hardware components

What is Choice B?

What is a problem-solving approach that uses computer science concepts to formulate and solve problems?

200

On CodeHS, this term refers to the environment where a coder can write or test code.

What is the Sandbox or editor?

300
What is the purpose of adding comments to your coding?

What is ??

300

Created in 2007 at MIT, this block-based programming language was designed to teach coding concepts to beginners.

What is Scratch?

300

These two symbols are used to create a single-line comment in JavaScript.

What is //?

300

Which computational thinking concept involves breaking down a complex problem into smaller, more manageable parts?

  • A) Abstraction
  • B) Pattern Recognition
  • C) Decomposition
  • D) Algorithm Design

What is choice C? 

What is Decomposition?

300

On CodeHS, this type of grading system provides feedback on your code.

What is autograder?

400

What is at least one reason we use functions in programs?

What is? Either answer below is accepted.

  1. Break down our program into smaller parts

  2. Avoid repeating code

  3. Make our program more readable

400

James Gosling created this programming language at Sun Microsystems, which uses the slogan, "Write Once, Run Anywhere."

(JavaScript, Java, C++, Scratch)

What is Java?

400

In JavaScript regular expressions, this symbol means"zero or more occurrences" of the preceding element.

What is the asterisk (*)?

400
  1. In computational thinking, which concept involves identifying the relevant characteristics of a problem while ignoring irrelevant details?

    • A) Abstraction
    • B) Decomposition
    • C) Pattern Recognition
    • D) Algorithmic Thinking


What is Choice A?

What is Abstraction?

400

CodeHS courses help students track their progress through the material. 

What are badges or achievements?

500

This statement executes a block of code a specified number of times.

What is a for loop?

500

What was the primary purpose of the "Hello, World" program when it was first introduced? 

A) To test printer functionality and output capabilities,

 B) To demonstrate the basic syntax of a programming language, and verify that the programming environment was correctly set up 

C) To establish a universal greeting protocol across early computing networks

 D) To calculate system processing speed on different hardware configurations

What is Choice B?

What is to demonstrate the basic syntax of a programming language and verify that the programming environment was correctly set up?

500

While JavaScript uses curly braces for code blocks, this language uses only indentation.

(Scratch, Python, C++, Kodu, Java)

What is Python?

500
This woman was the first programmer to write an algorithm for Charles Babbage's Analytical Engine in the 1840s.

Who is Ada Lovelace?

500

This CodeHS feature allows teachers to view and comment on a student's code while they work.

What is code review or the teacher dashboard?