Programming Fundamentals Review Questions - 1094 Verified Questions

Page 1


Programming Fundamentals

Review Questions

Course Introduction

Programming Fundamentals introduces students to the foundational concepts of computer programming using a high-level programming language. The course covers essential topics such as variables, data types, control structures (selection and iteration), functions, arrays or collections, and basic input/output operations. Emphasis is placed on problem-solving techniques, algorithm development, and writing clear, well-documented code. By completing this course, students will gain the skills needed to design, implement, test, and debug simple computer programs, preparing them for further studies in computer science and related fields.

Recommended Textbook

Starting out with Visual C# 2012 3rd Edition by Tony Gaddis

Available Study Resources on Quizplus 11 Chapters

1094 Verified Questions

1094 Flashcards

Source URL: https://quizplus.com/study-set/1362 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/27177

Sample Questions

Q1) The process of creating a program that works correctly typically requires simply writing the code.

A)True

B)False

Answer: False

Q2) _____________ is an extensive encoding scheme that is compatible with ASCII and can also represent the characters of many of the world's languages.

A) Baudot code

B) EBCDIC

C) ANSEL

D) Unicode

Answer: D

Q3) The ovals, which appear at the top and bottom of a flowchart, are called ____________.

A) input symbols

B) processing symbols

C) terminal symbols

D) output symbols

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/27178

Sample Questions

Q1) To switch between the Designer and the code editor, you simply click the ____________ for the desired window.

A) icon

B) tab

C) button

D) bounding box

Answer: B

Q2) The indentation of statements inside methods, classes, and namespaces is a convention that virtually all programmers follow.

A)True

B)False

Answer: True

Q3) The text that is displayed on a button should indicate what the button will do when it is clicked.

A)True

B)False

Answer: True

Q4) A Label control's BorderStyle property is set to FixedSingle by default.

Answer: NOT ANSWERED

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

174 Verified Questions

174 Flashcards

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

Sample Questions

Q1) One way to make sure that a variable has been assigned a value is to ___________ the variable with a value when you declare it.

A) initialize

B) instantiate

C) concatenate

D) compare

Answer: A

Q2) If you do not initialize a(n) ____________ field, it begins with a special value known as null.

A) int

B) decimal

C) double

D) string

Answer: D

Q3) An error will occur if you attempt to use a string that is set to null.

A)True

B)False

Answer: True

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

5

Chapter 4: Making Decisions

Available Study Resources on Quizplus for this Chatper

77 Verified Questions

77 Flashcards

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

Sample Questions

Q1) You never have to use the if-else-if statement because its logic can be coded with nested if-else statements.

A)True

B)False

Q2) Which one of the following expressions determines if the value of the balance variable is equal to zero?

A) 0 = balance

B) balance == 0

C) balance = 0

D) 0 == balance

Q3) With the ____________ methods, you can determine whether a string contains a value that can be converted to a specific data type before it is converted to that data type.

A) Preemptive

B) TryParse

C) Peek

D) String.Compare

Q4) In a flowchart, the diamond symbol indicates some condition that must be tested.

A)True

B)False

Page 6

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

Chapter 5: Loops, Files, and Random Numbers

Available Study Resources on Quizplus for this Chatper

109 Verified Questions

109 Flashcards

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

Sample Questions

Q1) You can use the StreamReader class's ____________ to determine if the file's read position is at the end of the file.

A) EndOfFile property

B) StreamEnd method

C) EndOfStream property

D) EOF method

Q2) The increment operator is ____________.

A) --

B) ++

C) -=

D) +=

Q3) You can only add values of the string data type to a ListBox control.

A)True

B)False

Q4) The term ____________ is used to describe a file from which data is read.

A) input file

B) output file

C) data file

D) record

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

61 Verified Questions

61 Flashcards

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

Sample Questions

Q1) When you call a method that has an output parameter, you must also write the keyword out before the argument.

A)True

B)False

Q2) A(n) ____________ works like a reference parameter, but the argument does not have to be set to a value before it is passed into the parameter.

A) parameter list

B) named argument

C) output parameter

D) named constant

Q3) The method header is always terminated with a semicolon.

A)True

B)False

Q4) Passing an argument by reference guarantees that the argument will not be changed by the method it is passed into.

A)True

B)False

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

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/27183

Sample Questions

Q1) A partially filled array is normally used with an accompanying integer variable that holds the number of items that are actually stored in the array.

A)True

B)False

Q2) What special value are the elements of an array of reference type objects set to by default?

A) 0

B) void

C) -1

D) null

Q3) An array's size declarator must be a nonnegative integer number.

A)True

B)False

Q4) To compare the contents of two arrays, you must compare the ____________ of the two arrays.

A) memory locations

B) reference variables

C) elements

D) size

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

Chapter 8: More About Processing Data

Available Study Resources on Quizplus for this Chatper

87 Verified Questions

87 Flashcards

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

Sample Questions

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

Q2) In code, you can determine the number of images that are stored in an ImageList control by getting the value of the control's ____________ property.

A) Image.List.Max

B) Size.Get

C) Images.Count

D) GetLastImage

Q3) Before tokenizing a string, you should use the ____________ method to remove leading and/or trailing white-space characters and prevent them from being included in the first and last tokens.

A) Trim

B) Remove

C) Split

D) Substring

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

Page 10

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/27185

Sample Questions

Q1) When finding the classes in a problem description, sometimes a plural noun will indicate a class and a singular noun will indicate an object.

A)True

B)False

Q2) Suppose a project has a form named SummaryForm, which one of the following statements creates an instance of the SummaryForm class?

A) SummaryForm.ShowDialog();

B) SummaryForm = this.Form();

C) new SummaryForm;

D) SummaryForm mySummaryForm = new SummaryForm();

Q3) Because classes are reference types, objects that instances of a class are always passed by reference.

A)True

B)False

Q4) Writing each class in its own separate file makes your code more organized and helps keep your source code files to a manageable size.

A)True

B)False

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

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/27186

Sample Questions

Q1) Inheritance involves a base class and a relative class.

A)True

B)False

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

A) override keyword

B) class keyword

C) virtual keyword

D) static keyword

Q3) You can think of the derived class as an extended version of the base class.

A)True

B)False

Q4) The term ____________ refers to an object's ability to take different forms.

A) adaptation

B) polymorphism

C) portability

D) code reuse

Q5) New fields, properties, and methods cannot be added to the derived class.

A)True

B)False

Page 12

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

Chapter 11: Databases

Available Study Resources on Quizplus for this Chatper

69 Verified Questions

69 Flashcards

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

Sample Questions

Q1) There are numerous DBMSs in use today, and Visual C# can interact with many of them.

A)True

B)False

Q2) In an SQL statement, a parameter variable begins with the ____________.

A) param keyword

B) var operator

C) @ symbol

D) ref clause

Q3) In SQL, the asterisk symbol is used as a wildcard to represent a single character.

A)True

B)False

Q4) When specifying a data type for the columns in a database table, the data types that you can choose from are provided by the ____________.

A) DBMS

B) programming language

C) computer manufacturer

D) compiler

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