WorksheetsUnit 1- Intro to Computer Science Review
Total questions: 20
Worksheet time: 10mins
Many tasks, large and small, can be solved by performing a specific set of actions and making a particular set of decisions in very precise ways. What are these sets of actions and decisions called?
Algorithms
Building Blocks
Source Code
Machine Language
Which of the following types of languages is optimized for machine processing and may be written and expressed as a series of binary digits (e.g., ones and zeros), making it difficult for humans to read and write?
Pseudocode
Natural Language
High-Level Language
Low-Level Language
Which of the following statements about high-level programming languages when compared to low-level programming languages is true?
High-level programming languages provide programmers with more abstractions but are more difficult for people to read
High-level programming languages provide programmers with more abstractions and are easier for people to read
High-level programming languages provide programmers with less abstractions and are more difficult for people to read
High-level programming languages provide programmers with less abstractions but are easier for people to read
Why is there a need for more than one programming language?
Some programming languages are designed for specific uses and are best used in those situations.
Some programming languages cannot implement needed algorithms
Some programming languages cannot be compiled and therefore cannot run efficiently
There is not real need, just the preference of those who create new languages.
Which of the following is the best description of a low-level language?
A language that is easier for humans to program.
A language that is easier for humans to debug.
A language that is easier for a computer to interpret but difficult for humans to interpret.
A language that is built for beginner programmers.
Which of the following would result in a computing innovation that is bias?
Making sure the development team includes people with different social and ethnic backgrounds to ensure diverse perspectives.
Making sure that during the testing phase, people of all socioeconomic backgrounds are involved to ensure that it can be used by everyone who might be interested in it.
Making sure that the development team includes people from similar backgrounds, to ensure that the product has consistency.
Making sure that during the testing phase, you include people who would use the computing innovation so that the product is properly tested.
The following algorithm was developed by a student in class: Step 1: Create a variable called x and give it the value 5 Step 2: Take x and multiply it by 2 and assign that new value to x Step 3: Take x and add 3 to it and assign that new value to x Step 4: Repeat steps 2 and 3 What is the value of x after the algorithm is executed?
10
13
26
29
Lucas is part of the planning committee for the local 4H fair. He wants to develop an app to help communicate the fair events with the guests. Which of the following would be the best first step for Lucas to take in developing his app?
Develop all of the major algorithms which will be required for the app
Write thorough documentation explaining how the code for the app works
Write some sample code to understand how the app might work
Find out from the potential visitors what information and format they think should be used for the app
What of the following pseudocodes correctly identifies the maximum number between two numbers?
Step 1: Start Step 2: Declare variables n1, n2 Step 3: If n1 is greater than n2, Display "n1 is Maximum" else Display "n2 is Maximum" Step 4: Stop
Step 1: Start Step 2: Declare variables n1, n2 Step 3: If n1 is less than n2, Display "n1 is Maximum" else Display "n2 is Maximum" Step 4: Stop
Step 1: Start Step 2: Declare variables n1, n2 Step 3: Repeat n1 is greater than n2, Display "n1 is Maximum" While Display "n2 is Maximum" Step 4: Stop
Step 1: Start Step 2: Declare variables n1, n2 Step 3: Repeat n1 is less than n2, Display "n1 is Maximum" While Display "n2 is Maximum" Step 4: Stop
Which of the following is an advantage that block-based programming languages have over text-based programming languages?
Block-based programming languages do not require the programmer to worry about syntax, capitalization, or punctuation.
Programs written in block-based programming languages do not require debugging.
Block-based programming languages allow programmers to write programs in English and other natural languages.
Block-based programming languages offer programmers more detailed control over lower-level functionality when writing a program.
Which of the following traits is NOT necessary for effective collaboration?
Conflict resolution and negotiation
Proximity
Consensus building
Communication
What is a code segment?
A collection of program statements that perform a specific task when run by a computer
How software behaves and how it functions
A collection of program statements that are part of a program
A computing innovation that solves a problem
The algorithm below simulates rolling a regular 6-sided die twice and then finding if the sum of the numbers is an even or odd number. Step 1: Using a random number generator, get a value between 1 and 6 Step 2: Repeat step 1 Step 3: Add the two numbers together and store it in a variable called "sum" Step 4: Divide the "sum" by 2 and store it in a variable called "result" What conclusion can be made in determining if the number is even or odd from the algorithm?
If "result" is a whole number, the sum is an even number.
If "result" is a decimal, the sum is an even number.
If "sum" is a whole number, one of the dice was odd and one was even.
If "sum" is a decimal, one of the dice was odd and one was even.
What is the structure and organization that modern computational devices are based on?
Turing Machine
Quantum Computing
Boolean Logic
Von Neumann Architecture
What is the purpose of the control unit in the CPU?
Store data and instructions
Render and display graphics
Manage the execution of instructions
Perform mathematical and logical operations
Scratch is a Programming Language
True
False
Which of the following is a characteristic of a compiled language?
It is executed line by line at runtime.
It is translated into machine code before execution.
It is easier to debug than interpreted languages.
It does not require a compiler to run.
What is the primary purpose of an Integrated Development Environment (IDE)?
To compile code into machine language.
To provide a platform for writing, testing, and debugging code.
To execute code directly without any translation.
To convert high-level language into low-level language.
Which of the following best describes an algorithm?
A step-by-step procedure for solving a problem or accomplishing a task.
A high-level programming language used for web development.
A type of data structure used to store information.
A software tool used to manage databases.
