Skip to main content

Computer Programming I Exam Preparation Guide - 1111 Verified Questions

Page 1


Computer Programming I Exam Preparation Guide

Course Introduction

Computer Programming I is an introductory course designed to familiarize students with the fundamental concepts of computer programming. The course covers basic programming constructs such as variables, data types, operators, control structures (selection and iteration), functions, and the principles of structured programming. Students will learn to design, write, test, and debug simple programs using a high-level programming language, often Python or Java. Emphasis is placed on problem-solving techniques and algorithm development, providing a solid foundation for further study in computer science and software development.

Recommended Textbook

Starting out with Visual C# 4th Edition by Tony Gaddis

Available Study Resources on Quizplus

11 Chapters

1111 Verified Questions

1111 Flashcards

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

Chapter 1: Introduction to Computers and Programming

Available Study Resources on Quizplus for this Chatper

161 Verified Questions

161 Flashcards

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

Sample Questions

Q1) When a CPU executes each instruction in a program, it uses a process known as the

A) fetch-decode-execute cycle

B) ready-set-go phase

C) code assembly process

D) compilation sequence

Answer: A

Q2) For many years, the only way that the user could interact with a computer was through a command line interface.

A)True

B)False

Answer: True

Q3) Words having a predefined meaning in a high-level language are known as ____________ or reserved words.

A) mnemonics

B) pseudonyms

C) keywords

D) semantics

Answer: C

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

Page 3

Chapter 2: Introduction to Visual C#

Available Study Resources on Quizplus for this Chatper

131 Verified Questions

131 Flashcards

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

Sample Questions

Q1) The PictureBox control's ____________ property determines whether the image stored in the control will cause the control to be shrunk or expanded.

A) DisplayMode

B) Visible

C) SizeMode

D) Render

Answer: C

Q2) When a piece of data such as 23 or "Hello" is written into a program's code, it is called a ____________.

A) constant

B) sentinel

C) value

D) literal Answer: D

Q3) Comments are short notes intended for the compiler to read and interpret.

A)True

B)False

Answer: False

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

Chapter 3: Processing Data

Available Study Resources on Quizplus for this Chatper

176 Verified Questions

176 Flashcards

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

Sample Questions

Q1) Each numeric format string can optionally be followed by an integer that indicates how many digits to display after the decimal point.

A)True

B)False

Answer: True

Q2) A(n) ____________ variable belongs to the method in which it is declared, and only statements inside that method can access the variable.

A) limited

B) local

C) global

D) static

Answer: B

Q3) The ____________ window in the debugger allows you to add the names and values of variables you want to observe.

A) inspector

B) watch

C) locals

D) autos

Answer: B

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

Page 5

Chapter 4: Making Decisions

Available Study Resources on Quizplus for this Chatper

78 Verified Questions

78 Flashcards

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

Sample Questions

Q1) Variables of the double data type are commonly used as flags.

A)True

B)False

Q2) If the expression on the left side of the || operator is true, the expression on the right side is not checked.

A)True

B)False

Q3) A switch statement's test expression can be any data type.

A)True

B)False

Q4) The C# language provides the ____________ data type that you can use to create variables that hold

A) bool

B) int

C) Boolean

D) double

Q5) For an || expression to be true, the expression on the left side of the || operator must be false.

A)True

B)False

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

Chapter 5: Loops, Files, and Random Numbers

Available Study Resources on Quizplus for this Chatper

112 Verified Questions

112 Flashcards

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

Sample Questions

Q1) If you are writing a while loop that has only one statement in its body, you do not have enclose the statement inside curly braces.

A)True

B)False

Q2) You can use the StreamReader class's ____________ method to read a line of text from a file.

A) ReadLine

B) ReadText

C) GetNext

D) Read

Q3) The expression ____________ causes an object of the Random class to be created in memory.

A) GetRandom(int)

B) GenerateRandom(number)

C) new Random()

D) random new()

Q4) In a counter-controlled loop, you can only decrement the counter variable.

A)True

B)False

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

Chapter 6: Modularizing Your Code with Methods

Available Study Resources on Quizplus for this Chatper

69 Verified Questions

69 Flashcards

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

Sample Questions

Q1) When you pass an argument to a ref parameter, that argument must already be set to some value.

A)True B)False

Q2) A mathematical expression such as A * B cannot be passed as an argument to a method containing a reference parameter.

A)True B)False

Q3) Every method must have a nonempty parameter list.

A)True B)False

Q4) Nested if statements can be useful for modularizing input validation. A)True B)False

Q5) When calling a method and passing a variable as an argument, always write the data type and the variable name of the argument variable in the method call. A)True B)False

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

Chapter 7: Arrays and Lists

Available Study Resources on Quizplus for this Chatper

99 Verified Questions

99 Flashcards

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

Sample Questions

Q1) Which one of the following statements assigns the value 40 to the first element in an array of integers named values?

A) values[-1] = 40;

B) values[0] = 40;

C) values[null] = 40; D) values[1] = 40;

Q2) You can optionally initialize a List object when you declare it.

A)True

B)False

Q3) Because the foreach loop automatically knows the number of elements in an array, you do not have to use a counter variable to control its iterations, as you would with a regular for loop.

A)True B)False

Q4) The sequential search algorithm is the simplest of all array searching algorithms. A)True B)False

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

9

Chapter 8: More About Processing Data

Available Study Resources on Quizplus for this Chatper

90 Verified Questions

90 Flashcards

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

Sample Questions

Q1) The Substring method returns a string.

A)True

B)False

Q2) Which one of the following character testing methods would you use to determine if a character is a number in the range 0 through 9?

A) char.IsDigit

B) char.IsLower

C) char.IsPunctuation

D) char.IsWhiteSpace

Q3) When the items in two data structures are related by their indexes, it is said that a(n) ____________ exists between the data structures.

A) exclusive association

B) logical connection

C) parallel relationship

D) binary link

Q4) In C#, you can only provide one delimiter per string that you wish to tokenize when calling the Split method.

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

Chapter 9: Classes and Multiform Projects

Available Study Resources on Quizplus for this Chatper

89 Verified Questions

89 Flashcards

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

Sample Questions

Q1) Each object created from a class is called a(n) ____________ of the class.

A) object

B) reference

C) instance

D) field

Q2) You can use the tabs appearing at the top of the Designer window to select different forms or their code to be displayed in the window.

A)True

B)False

Q3) The private field, which is known as the property's ____________, holds any data that is assigned to the property.

A) hidden value

B) shadow variable

C) backing field

D) data core

Q4) When designing a class, you should take care that all data is stored in a field, especially any calculated data.

A)True

B)False

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

Chapter 10: Inheritance and Polymorphism

Available Study Resources on Quizplus for this Chatper

37 Verified Questions

37 Flashcards

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

Sample Questions

Q1) A(n) ____________ is a property that appears in a base class, and must be overridden in a (non-abstract) derived class.

A) base property

B) abstract property

C) derived property

D) public property

Q2) The ____________ declares that a derived class is allowed to override the current method in the base class.

A) override keyword

B) class keyword

C) virtual keyword

D) static keyword

Q3) Which one of the following is a specialized version of a general food substance?

A) pizza

B) chocolate

C) ice cream

D) all of these

Q4) You cannot assign a base class reference to a derived class variable.

A)True

B)False

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

Chapter 11: Databases

Available Study Resources on Quizplus for this Chatper

69 Verified Questions

69 Flashcards

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

Sample Questions

Q1) SQL does not support relational operators.

A)True

B)False

Q2) SQL is a general purpose programming language, which can be used to write applications.

A)True

B)False

Q3) When you place a data-bound control on a form, keep in mind that Visual Studio does not automatically generate the code needed for the control to display any data from the database table.

A)True

B)False

Q4) Rather than displaying multiple rows at once, a Details view lets the user see one row at a time.

A)True

B)False

Q5) It is possible to change the type of control that a column is bound to in a Details view.

A)True

B)False

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

Turn static files into dynamic content formats.

Create a flipbook
Computer Programming I Exam Preparation Guide - 1111 Verified Questions by Quizplus - Issuu