Skip to main content

Introduction to Computer Science Question Bank - 350 Verified Questions

Page 1


Introduction to Computer Science Question Bank

Course Introduction

Introduction to Computer Science provides students with a comprehensive overview of fundamental concepts in the field of computing. The course covers essential topics including algorithms, programming languages, data structures, computer hardware, software development, and the basics of computer networks. Students will develop problem-solving skills through practical programming exercises and gain an understanding of how computers operate and interact with the world. This course serves as a foundation for further study in computer science and related disciplines, promoting both theoretical knowledge and practical application.

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) The programmer's job can be broken down into five development steps.

A)True

B)False

Answer: False

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) External storage is needed to run a program but it is volatile.

A)True

B)False

Answer: False

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

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) One of your friends at work eats one of your cookies and says it would be great if you could bring more of these cookies to the Monday status meeting.If it is Sunday night,you make the cookies for Monday's meeting.This is an example of a ____ structure.

A) sequence

B) single-alternative selection

C) dual-alternative selection

D) loop

Answer: B

Q2) As programs get bigger,they get more confusing if they're not structured.

A)True

B)False

Answer: True

Q3) Whether you are drawing a flowchart or writing pseudocode,to represent decision outcomes you can use either: Yes and No,or True and False.

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) 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

Q2) A(n)________ or unreachable path is a logical path that can never be traveled.

A) dead-end

B) dead

C) unstable

D) unattainable

Answer: B

Q3) Sometimes you want to take action when one or the other of two conditions is true,this type of compound condition is called a(n)____ decision.

A) AND B) OR C) NOR

D) NOT

Answer: B

Q4) 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

Page 5

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

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(n)____ value is a number you use to increase a loop control variable on each pass through a loop.

A) jump

B) bump

C) increment

D) step

Q2) Reports that include some output for every input record are ____ reports.

A) summary

B) detail

C) executive

D) running total

Q3) A ____ is the structure that repeats actions while some condition continues.

A) decision

B) loop

C) branch

D) block

Q4) It is always a mistake to fail to initialize a loop's control variable.

A)True

B)False

Q5) 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) A ____ is a variable that you set to indicate whether some event has occurred.

A) handler

B) rudder

C) flag

D) bug

Q2) When you have a six element array and use subscript 6,your subscript is said to be out of ____.

A) bounds

B) scope

C) range

D) array

Q3) A(n)____,also called an index,is a number that indicates the position of a particular item within an array.

A) indicator

B) element

C) subscript

D) script

Q4) Each array element occupies an area in memory next to the others.

A)True

B)False

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) There is a method with the header: void printData(num x,string y). There is a declared a numeric variable: test. What does this method return?

A) a numeric and a string variable

B) test

C) nothing

D) it depends on the parameters

Q2) To execute a method,you invoke it or ____ it from another program or method.

A) call

B) translate to

C) command

D) transfer to

Q3) The calling method needs to understand only the ____ to the method that is called. A) input

B) connection

C) border

D) interface

Q4) A method's return type is part of its signature.

A)True

B)False

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) Object-oriented programmers usually specify that their data fields will have ____.

A) public access

B) private access

C) inheritance

D) signatures

Q2) A class that inherits from a base class is a ____ class.

A) super

B) lower

C) derived

D) parent

Q3) ____ methods pass the data stored in a field back to a client program.

A) Mutator

B) Send

C) Set

D) Get

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

A)True

B)False

Q5) List the three parts of a class definition.

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
Introduction to Computer Science Question Bank - 350 Verified Questions by Quizplus - Issuu