Crash Course Computer Science #12

Crash Course Computer Science #12

Assessment

Interactive Video

Computers

9th - 12th Grade

Medium

Created by

Crystal Samsel

Used 1+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What was a primary reason for developing programming languages?

To write programs in native machine code.

To increase the number of low-level details programmers had to manage.

To allow programmers to focus on solving problems with computation rather than hardware details.

To make computers run faster.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In programming, what is syntax?

Individual complete thoughts or instructions.

A method for assigning values to variables.

The set of rules that govern the structure and composition of statements in a language.

A list of instructions for the computer to follow.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the context of programming a game, what does it mean to "initialize" variables?

To change their values during gameplay.

To set their initial values before the game starts.

To delete variables that are no longer needed.

To make variables unique.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary function of a "While" loop in programming?

To execute a piece of code a fixed number of times.

To choose between two different paths of code execution.

To repeat a piece of code as long as a specified condition remains true.

To assign a value to a variable.

5.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Are you enjoying the video lesson?

Yes

No

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a typical FOR loop structure, what happens to the loop variable (e.g., 'I') each time the 'NEXT' statement is executed?

It is reset to its starting value.

It is decremented by one.

It is incremented by one.

It is multiplied by a fixed value.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary benefit of packaging pieces of code into named functions (also called methods or subroutines)?

It makes the code run faster.

It allows for easier copying and pasting of code.

It helps to compartmentalize and hide complexity, making code more manageable.

It automatically fixes bugs in the code.

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When defining a function like EXPONENT(BASE, EXP), what do BASE and EXP represent?

Fixed values that cannot be changed.

Variable names whose initial values are passed into the function from another part of the program.

The names of other functions that will be called.

Keywords that define the function's return type.

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In modern programming, why is it common for functions to call other functions, and for programs to consist of thousands of smaller functions?

It makes the code more difficult to understand for new programmers.

It is a requirement of all programming languages.

It allows for modularity, efficient teamwork, and managing complex programs by hiding internal complexities.

It reduces the overall number of lines of code in a program.