Skip to main content

Computer Science I Exam Answer Key - 350 Verified Questions

Page 1


Computer Science I

Exam Answer Key

Course Introduction

Computer Science I is an introductory course providing a foundation in the principles of computer science and programming. Students explore problem-solving techniques, algorithms, and software design using a high-level programming language. Key topics include variables, control structures, data types, functions, arrays, and fundamental object-oriented programming concepts. Through hands-on programming assignments and projects, students develop logical thinking, computational skills, and an understanding of core concepts essential for advanced study in computer science.

Recommended Textbook

Just Enough Programming Logic and Design 2nd Edition by Joyce Farrell

Available Study Resources on Quizplus

7 Chapters

350 Verified Questions

350 Flashcards

Source URL: https://quizplus.com/study-set/2426 Page 2

Chapter 1: An Overview of Computers and Logic

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/48218

Sample Questions

Q1) You represent a decision in a flowchart by drawing a decision symbol,which is shaped like a ____.

A) diamond

B) parallelogram

C) rectangle

D) triangle

Answer: A

Q2) A magic number is a named constant whose meaning is not immediately apparent.

A)True

B)False

Answer: False

Q3) A(n)____ loop is a repeating flow of logic that never ends.

A) definite

B) finite

C) circling

D) infinite

Answer: D

To view all questions and flashcards with answers, click on the resource link above.

Page 3

Chapter 2: Understanding Structure

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/48219

Sample Questions

Q1) The following pseudocode is an example of a ____ structure. if on the beach

Use sunscreen

A) do loop

B) repetition

C) single-alternative selections

D) dual-alternative selections

Answer: C

Q2) Every day,you bring two cookies to work until you run out of cookies at home.This is an example of a ____ structure.

A) sequence

B) single-alternative selection

C) dual-alternative selection

D) loop

Answer: D

Q3) In code,it is perfectly correct for one branch of the selection to be a "do nothing" branch.

A)True

B)False

Answer: True

To view all questions and flashcards with answers, click on the resource link above.

Page 4

Chapter 3: Making Decisions

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/48220

Sample Questions

Q1) Every decision you make in a computer program involves evaluating a Boolean expression.

A)True

B)False

Answer: True

Q2) Many programming languages allow you to use ____ to correct your logic when using ANDs and ORs and force the OR expression to be evaluated first.

A) parentheses

B) braces

C) underscores

D) brackets

Answer: A

Q3) Boolean (true/false)expressions are named for George Boolean.

A)True

B)False

Answer: False

Q4) Rewrite this structured pseudocode without a NOT operator but keeping the same logic:

if NOT hourlyWage <= 20.50 then

Answer: if hourlyWage > 20.50 then

To view all questions and flashcards with answers, click on the resource link above. Page 5

Chapter 4: Looping

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/48221

Sample Questions

Q1) Business reports that list no individual detail records,just totals,are called ____ reports.

A) overall

B) summary

C) executive

D) roll-up

Q2) Many programs are not run at the command prompt in a text environment,but are run using a ____,which allows users to interact with a program in a graphical environment.

A) UML

B) GOOY

C) GUM

D) GUI

Q3) You can use any of the ____ comparison operators to control a loop.

A) three

B) four

C) five

D) six

Q4) Using a for loop,write the pseudocode to display "I love programming!" five times.

To view all questions and flashcards with answers, click on the resource link above. Page 6

Chapter 5: Arrays

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/48222

Sample Questions

Q1) Frequently,a flag holds a ____ value.

A) subscript

B) true or false

C) string

D) junk

Q2) In many languages,when you declare an array,a constant that represents the array size is automatically created for you.

A)True

B)False

Q3) In ____ arrays,each element in one array is associated with the element in the same relative position in the other array.

A) parallel

B) related

C) grouped

D) combined

Q4) Subscript values can be negative integers in all languages.

A)True

B)False

Q5) Define and initialize an array that contains the names of the days of the week.

To view all questions and flashcards with answers, click on the resource link above. Page 7

Chapter 6: Using Methods

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/48223

Sample Questions

Q1) List two occasions when you might consider declaring variables and constants globally.

Q2) Write the pseudocode for the method named computeArea.The method should display "The area is " and numeric value: result.It should have two numeric parameters: width and length.width multiplied by length is equal to result.

Q3) In many environments,collections of pre-written methods are called ____.

A) templates

B) libraries

C) foundations

D) packages

Q4) A method's ____ includes the method identifier and possibly other identifying information.

A) header

B) body

C) declaration

D) return

Q5) When a method accepts multiple arguments,does it matter what order the arguments are passed in?

Q6) What is the difference between an argument and a parameter variable?

Page 8

To view all questions and flashcards with answers, click on the resource link above.

Chapter 7: Object-Oriented Programming

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/48224

Sample Questions

Q1) Object-oriented programming uses few of the concepts you are familiar with from modular,procedural programming.

A)True

B)False

Q2) The syntax used to declare a class differs among programming languages.

A)True

B)False

Q3) A(n)____ is a term that describes a group of objects with common properties.

A) object

B) interface

C) class

D) method

Q4) What features must a programming language have for it to be considered an object-oriented language?

Q5) A class ____ describes what attributes its objects will have and what those objects will be able to do.

A) profile

B) definition

C) interface

D) signature

To view all questions and flashcards with answers, click on the resource link above. Page 9

Turn static files into dynamic content formats.

Create a flipbook
Computer Science I Exam Answer Key - 350 Verified Questions by Quizplus - Issuu