Survey of Computer Science Exam Practice Tests - 350 Verified Questions

Page 1


Survey of Computer Science Exam Practice Tests

Course Introduction

This course provides an overview of the fundamental concepts and fields within computer science. Topics include the history of computing, hardware and software components, algorithm design, programming principles, data structures, networking, databases, artificial intelligence, and the societal impacts of computing. Through lectures, discussions, and hands-on activities, students gain a broad understanding of how computers work and how computer science shapes the modern world, preparing them for further study in the discipline.

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) ____ are named memory locations,whose contents can vary over time.

A) Named constants

B) Constants

C) Literals

D) Variables

Answer: D

Q2) Discuss rules for naming variables.

Answer: Answers will vary.Variable names must be one word.The name can contain letters,digits,hyphens,underscores,or any other characters you choose,with the exception of spaces.No programming language allows spaces within a variable name.Variable names should have some appropriate meaning.You might think you will remember how you intended to use a cryptic variable name within a program,but several months or years later when a program requires changes,you and your fellow programmers will appreciate clear,descriptive variable names.Some programmers have fun by naming variables after friends or creating puns with the names,but such behavior is unprofessional and marks those programmers as amateurs.

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

A)True

B)False

Answer: False

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) All logic problems can be solved using only the three structures-____.

A) sequence,assignment,and loop

B) sequence,selection,and loop

C) sequence,loop,and assignment

D) selection,loop,and assignment

Answer: B

Q2) You make the cookies,following the instructions step by step and then deciding to either bake them in the oven or microwave.This is an example of ____.

A) stacking structures

B) nesting structures

C) end-structure

D) loop structure

Answer: A

Q3) The endif and endwhile statements are know as ____ statements.

A) end-structure

B) end-decision

C) end-loop

D) end-module

Answer: A

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) In an OR decision,it is more efficient to first ask the question that is more likely to be

A) greater

B) Boolean

C) false

D) true

Answer: D

Q2) True/false evaluation is "natural" from a computer's standpoint because computer circuitry consists of two-state on-off switches,often represented by ____.

A) 1 or -1

B) 1 or 0

C) light or dark

D) plus or minus

Answer: B

Q3) Write structured pseudocode to fix this statement: if hourlyWage > 8.50 and < 15.80 then

Answer: if hourlyWage > 8.50 and hourlyWage < 15.80 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) A ____ is the structure that repeats actions while some condition continues.

A) decision

B) loop

C) branch

D) block

Q2) Name three common mistakes that programmers make when programming with loops.

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

Q4) While making decisions is what makes computers seem intelligent,it's looping that makes computer programming both efficient and worthwhile.

A)True

B)False

Q5) Loops are frequently used to ____ data; that is,to make sure values fall within an acceptable or reasonable range.

A) validate

B) enter

C) add

D) manipulate

Q6) Write the logic for a program that outputs every even number from 2 through 16.

Page 6

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

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) All array elements have the same ____ name.

A) group

B) target

C) structure

D) collection

Q2) Learning to use arrays correctly can make many programming tasks far more ____ and professional.

A) confusing

B) efficient

C) slick

D) literal

Q3) Each separate array variable is one ____ of the array.

A) element

B) aspect

C) index

D) member

Q4) You cannot initialize array elements when you declare the array.

A)True

B)False

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

Page 7

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

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) A method's name and parameter list constitute the method's ____.

A) header

B) profile

C) signature

D) outline

Q2) The calling method needs to understand only the ____ to the method that is called.

A) input

B) connection

C) border

D) interface

Q3) ____ variables and constants are those that are known to the entire program.

A) Global

B) Local

C) Universal

D) Portable

Q4) In most circumstances,you should not declare global variables and constants.

A)True

B)False

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

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

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) Objects are ____,meaning one object can inherit characteristics from another,like objects in the real world.

A) encapsulated

B) extensible

C) invisible

D) definable

Q2) Write the pseudocode for a class named Product that holds a product name.Include methods to get and set the value for each data field.

Q3) It is possible to create a lengthy chain of inheritance.

A)True

B)False

Q4) ____ is the ability to create classes that take on the attributes and methods of existing classes,but with more specific features.

A) Heritage

B) Instantiation

C) Heredity

D) Inheritance

Q5) Why do object-oriented programmers usually specify that their data fields will have private access?

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