Skip to main content

Computer Science I Study Guide Questions - 1124 Verified Questions

Page 1


Computer Science I Study Guide Questions

Course Introduction

Computer Science I introduces students to the fundamental principles of computer science, focusing on problem-solving, algorithm development, and programming. The course covers core topics such as data types, control structures, functions, basic data structures, and object-oriented programming concepts using a modern programming language. Students will develop practical skills through hands-on programming assignments and projects, laying the groundwork for more advanced study in computer science and related fields.

Recommended Textbook

C# Programming From Problem Analysis to Program Design 4th Edition by Barbara Doyle

Available Study Resources on Quizplus

15 Chapters

1124 Verified Questions

1124 Flashcards

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

Chapter 1: Introduction to Computing and Programming

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The set of rules that a language such as C# has to follow are called ____ rules.

A) syntax

B) semantic

C) compiler

D) language

Answer: A

Q2) One class predefined as part of .NET is ____.

A) System

B) Console

C) namespace

D) main

Answer: B

Q3) Which character is called the escape character in C#?

A) #

B) Esc

C) \

D) ' Answer: C

Q4) A(n)____________ is a mock-up of screens depicting the look of the final output.

Answer: prototype

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

Chapter 2: Data Types and Expressions

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The float compile-time initialization above will produce an error because it is missing the type specifier (f or F).

A)True

B)False

Answer: True

Q2) The decimal equivalent of 00011111 is ____.

A) 5

B) 10

C) 31

D) 32

Answer: C

Q3) Every time you declare a variable in the C# language,you are actually ____________ a class.

Answer: instantiating

Q4) A computer that has 8 GB of RAM can store approximately eight ____ characters.

A) million

B) trillion

C) gillion

D) billion

Answer: D

Page 4

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

Chapter 3: Methods and Behaviors

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) When you assign a default value to a parameter,it then becomes a(n)____________ parameter.

Answer: optional

Q2) In order to call or invoke a nonvalue-returning method,enter the ____.

A) access modifier followed by the method identifier and list of arguments

B) return type followed by the method identifier and list of parameters

C) method's identifier followed by list of arguments

D) access modifier, return type, and method's identifier followed by list of parameters

Answer: C

Q3) The Read( )method is different from the ReadLine( )method in that the Read( )returns an int and the ReadLine( )returns a string argument.

A)True

B)False

Answer: True

Q4) Methods can be defined globally outside of a class in C#.

A)True

B)False

Answer: False

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

5

Chapter 4: Creating Your Own Classes

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The static keyword must not be used with ____.

A) data members

B) instance methods

C) class methods

D) all of the above

Q2) Instance methods manipulate data by ____.

A) directly accessing private data members.

B) passing information as arguments through parameters.

C) using constructors and accessors.

D) sending visible data in the Main( ) method.

Q3) To define a property to change a data member of a class include a ____ clause.

A) mutator

B) get

C) set

D) value

Q4) When you define the class,you describe its ____________,or characteristics or fields,in terms of data.

Q5) The keyword new is used as an operator to call constructor methods.

A)True

B)False

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

Chapter 5: Making Decisions

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The ____________ method will convert a string value sent as an argument to its equivalent numeric value,but it doesn't throw an exception when the conversion fails.

Q2) The conditional operator,also called the ____________ provides another way to express a simple if...else selection statement.

Q3) What is stored in result when amount is equal to 876?

A) 1

B) 2

C) 3

D) 4

Q4) ____ perform differently based on their operands.

A) Overloaded operators

B) Conditional expressions

C) Boolean operators

D) Relational operators

Q5) Two equal symbol characters == are used as the assignment operator.

A)True

B)False

Q6) With ____________,as soon as the value of the entire expression is known,evaluation stops.

Page 7

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

Chapter 6: Repeating Instructions

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) A(n)____________ is a loop that has no provisions for termination.

Q2) In C# curly braces must be added to surround all loop bodies.

A)True

B)False

Q3) The event-driven model used to create Windows applications ____.

A) uses a counter-controlled form of loop

B) uses a state-controlled form of loop

C) uses a sentinel-controlled form of loop

D) handles the repetition for you

Q4) Which of the following is NOT a keyword used to enable unconditional transfer of control to a different program statement?

A) continue B) break C) goto D) while

Q5) With the while loop,the body of the loop is ____.

A) always performed at least one time

B) performed as long as the conditional expression evaluates to true C) must produce a boolean result

D) must be enclosed in curly braces

8

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

Chapter 7: Arrays

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The Clear( )method of the Array class sets all integer elements to zero.

A)True

B)False

Q2) To access an array element,you must specify which element is to be retrieved by placing an index inside ____________ following the array identifier

Q3) Because arrays are reference types,the ref keyword is required with the argument and parameter list.

A)True

B)False

Q4) A limitation of the foreach loop structure when used with arrays is ____.

A) it offers read only access

B) it can only be used with integer arrays

C) a loop control variable must be defined on the outside of the loop

D) the control variable must be updated with each iteration

Q5) When you pass a single array element such as an integer,you are passing by reference.

A)True B)False

Q6) The first element of an array is always referenced by index ____________.

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

Chapter 8: Advanced Collections

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) One of the special properties in the ArrayList class is Count.It returns ____.

A) an int representing the number of values currently stored in the array

B) an int representing the size the array was dimensioned

C) how much storage is consumed by the entire array

D) the length of an individual element of the array

Q2) Looking above,the value of price.Length is 10.

A)True

B)False

Q3) The ____________ are defined to compare the contents of strings instead of comparing their addresses.

Q4) If you override the GetHashCode( )method,you must also override the ____________ method to guarantee that two objects considered equal have the same hash code.Both are inherited from the object class.

Q5) The Queue class represents a Last In First Out (LIFO)collection of objects while the Stack collection class represents a simple FIFO (First In First Out)collection.

A)True

B)False

Q6) The property ____________ returns the number of dimensions of the array.

Q7) Like traditional arrays,indexes of ArrayList objects are ____________.

Page 10

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

Chapter 9: Introduction to Windows Programming

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The GUI should be different if the application is going to be displayed on a WAP (Wireless AccessProtocol)-enabled device such as a tablet or a smart phone.

A)True

B)False

Q2) With console-based applications,you register events about which you want your program to receive notification.

A)True

B)False

Q3) In Visual Studio,the ____ window is used to view and change the design time properties and events of an object.

A) Solutions Explorer

B) Properties

C) Class View

D) Members

Q4) The statement above adds the text "An Example" as the first entry on the form in the bottom left-hand corner.

A)True

B)False

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

Chapter 10: Programming Based on Events

Available Study Resources on Quizplus for this Chatper

74 Verified Questions

74 Flashcards

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

Sample Questions

Q1) Delegate declarations resembles ____ declarations.

A) method

B) variable

C) object

D) data

Q2) Objects like colorDialog,fontDialog,ToolTip and MenuStrip are added to the ____________ for the application when they are dragged and dropped onto the form.

Q3) ComboBox objects have an added feature over the ListBox controls in that ____.

A) ComboBox objects contain their own text box field

B) Scrollbars are included with ComboBox objects

C) ComboBox objects enable multiple selections

D) ComboBox objects can be used for input and output

Q4) The Items property can be used to set the initial values for a ListBox object. The Items editor is opened when you click the ellipsis to the right of the Collection property in the Properties window.

A)True

B)False

Q5) To add functionality to a control such as a Button or ListBox,you need to ____________ for it.

Page 12

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

Chapter 11: Advanced Object-Oriented Programming

Features

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) Enabling multiple implementations of the same behaviors so that the appropriate implementation can be executed based on the situation describes ____ as it relates to object oriented development.

A) abstraction

B) encapsulation

C) polymorphism

D) inheritance

Q2) You cannot spread the definition of your classes over multiple files using the partial keyword.Partial classes are reserved for use by the IDE.

A)True

B)False

Q3) Enabling reuse of code through extending the functionality of classes describes ____ as it relates to object oriented development.

A) abstraction

B) encapsulation

C) polymorphism

D) inheritance

Q4) You can think of an interface as a class that is totally ____________.

Page 13

Q5) A stack represents a simple ____________ collection.

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

Chapter 12: Debugging and Handling Exceptions

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) An IO.IOException exception is thrown when ____.

A) there are problems with division

B) there are problems loading the contents of a file

C) values are not entered properly

D) an attempt is made to store floating point values in a file

Q2) A stack trace is a listing of all the methods that are in the execution chain when the exception is thrown.

A)True

B)False

Q3) When an unexpected error occurs in the try block that throws an exception,control transfers ____.

A) to the finally block

B) back to the first statement in the try clause

C) to the first listed matching catch clause

D) outside the try...catch...finally block

Q4) C# adheres to a fairly sophisticated set of rules known as C# ____________.

Q5) A breakpoint is a point in output that separates correct from incorrect results.

A)True

B)False

Q6) A(n)____________ error is associated with a language rule violation.

Page 14

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

Chapter 13: Working with Files

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The constructor for the StreamWriter class is overloaded to include a Boolean variable indicating whether this is the first time the file was accessed.

A)True

B)False

Q2) The GetAttributes( )method of the File class returns a FileAttribute,like Archive,when it invoked.

A)True

B)False

Q3) Instead of hard coding the actual filename and file path,you could prompt the user for the name of the file using subclasses of the FileDialog class.

A)True

B)False

Q4) Using the above segment of code,inValue would be defined as what type of data?

A) StreamReader

B) int

C) text

D) string

Q5) Archive is a(n)____________ value for the Attributes property of the File class.

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

Chapter 14: Working with Databases

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) Typing or inserting an actual SQL query or command as input (as opposed to a requested value,such as a user login name),gaining access to the tables,and then stealing or destroying data is an example of a(n)____.

A) SQL query error

B) SQL mistake

C) SQL security reference

D) SQL injection attack

Q2) ____________ provide a communication link between the application and a database.____________ have a built-in connection object and enable you to configure the InsertCommand,UpdateCommand,and DeleteCommand SQL queries using the Properties window.

Q3) To process the data using a data reader with an Access database,you declare an object of the OleDbDataReader class and then ____.

A) move the data to the DataSet object

B) call the ExecuteReader( ) method.

C) declare an object of the CommandBuilder object

D) call the Update command

Q4) The four core classes that make up each data provider are ____________,Command,DataReader,and DataAdapter.

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

Chapter 15: Web-Based Applications

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) ____ describes the concept of spreading applications over more than one computer system.

A) Web based applications

B) Centralized computing

C) Web service applications

D) Distributed computing

Q2) ____________ uses style sheets to describe how elements will look in terms of their layout,fonts,and colors.

Q3) There is no Main( )method with ASP.NET applications.Instead there is a Page_Load( )event handler.

A)True

B)False

Q4) To set the message for an Input text field use the ____ property.

A) Text

B) Input

C) Value

D) Field

Q5) You can use the ____________ configuration wizard to connect to a data source and do very little,if any,programming.

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

Turn static files into dynamic content formats.

Create a flipbook