Skip to main content

Programming Fundamentals Exam Solutions - 1094 Verified Questions

Page 1


Programming Fundamentals

Exam Solutions

Course Introduction

Programming Fundamentals introduces students to the essential concepts and principles of computer programming. The course covers topics such as variables, data types, control structures (loops, conditionals), functions, and basic data structures. Students will learn the syntax and semantics of a programming language, develop problem-solving skills, and gain experience in writing, testing, and debugging simple programs. Emphasis is placed on logical thinking, algorithm development, and the foundational skills necessary for more advanced study in computer science.

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) A computer's memory is divided into tiny storage locations known as ____________.

A) sectors

B) arrays

C) cells

D) bytes

Answer: D

Q2) ____________ refers to all the physical devices, or components, of which a computer is made.

A) Hardware

B) Workstation

C) Machine

D) System

Answer: A

Q3) ____________ is data that is stored in binary.

A) Bitwise data

B) Electronic information

C) Digital data

D) Biometric data

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) ____________ is a feature of Visual Studio that provides automatic code completion as you write programming statements.

A) IntelliSense

B) AutoComplete

C) Snippet

D) CodeHelper

Answer: A

Q2) A line comment does not have to occupy the entire line, so a line comment can appear after an executable statement.

A)True

B)False

Answer: True

Q3) Most controls have a(n) ____________ property that determines whether the control is visible on the form at run time.

A) Enabled

B) Invisible

C) Show

D) Visible

Answer: D

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) The C# compiler will compile code that tries to use an unassigned variable.

A)True

B)False

Answer: False

Q2) A ____________ is a field that cannot be changed by any statement in the class.

A) literal field

B) constant field

C) sentinel field

D) common field

Answer: B

Q3) Primitive data types are not supported in the C# language.

A)True

B)False

Answer: False

Q4) The keyword const is a qualifier that tells the compiler to make the variable read only.

A)True

B)False Answer: True

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

77 Verified Questions

77 Flashcards

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

Sample Questions

Q1) If the expression is true, the ! operator returns false, and if the expression is false, the ! operator returns true.

A)True

B)False

Q2) If you are writing an if statement that has only one conditionally executed statement, you must enclose the conditionally executed statement in curly braces.

A)True

B)False

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

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

109 Verified Questions

109 Flashcards

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

Sample Questions

Q1) The ____________ is specifically designed for situations requiring a counter variable to control the number of times that a loop iterates.

A) while loop

B) if-else statement

C) for loop

D) switch statement

Q2) Because the for loop tests its Boolean expression before it performs an iteration, it is a ____________.

A) pretest loop

B) pseudo loop

C) posttest loop

D) infinite loop

Q3) The variable that is used to accumulate the total of the numbers in a running total is called a(n) ____________.

A) counter

B) sentinel

C) entity

D) accumulator

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) Methods usually belong to a class, so you must write a method's definition inside the class to which it is supposed to belong.

A)True

B)False

Q2) When an argument is ____________, only a copy of the argument's value is passed into the parameter variable.

A) passed by reference

B) passed by value

C) named

D) uninitialized

Q3) In C#, you declare an output parameter by writing the ____________ keyword before the parameter variable's data type.

A) public

B) ref

C) const

D) out

Q4) The value that is returned from a method can be used like any other value.

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

Sample Questions

Q1) You can use the == operator to compare two array reference variables and determine whether the arrays are equal.

A)True

B)False

Q2) A two-dimensional array can be thought of as having rows and columns of elements.

A)True

B)False

Q3) When processing the contents of an array, there are some circumstances in which the foreach loop is not adequate, and the for loop should be used instead.

A)True

B)False

Q4) When you are working with a(n) ____________ variable, the compiler sets aside, or allocates, a chunk of memory that is big enough for that variable.

A) reference type

B) uninitialized

C) value type

D) dynamic type

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) Before you can use a structure to store data, you must create a(n) ____________ of the structure in memory.

A) copy

B) identity

C) instance

D) field

Q2) You can convert an enumerator to its underlying integer type by using a(n)

A) binary operator

B) cast operator

C) reference variable

D) assignment statement

Q3) Character testing methods, such as char.IsLetter, return a Boolean value of.

A)True

B)False

Q4) A variable of the char data type can hold up to 256 characters at a time.

A)True

B)False

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) Once a form has been created, it cannot be removed from a Visual Studio project.

A)True

B)False

Q2) To add an object of a class to a List, you use the ____________ method.

A) Class

B) Add

C) Insert

D) New

Q3) The name of a class's constructor is the same as the name of the class.

A)True

B)False

Q4) When adding a new class file to a Visual C# project, be sure that the filename ends with the ____________ extension.

A) .cls

B) .resx

C) .src

D) .cs

Q5) All of the nouns that appear in the problem description should become classes.

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

Sample Questions

Q1) A statement that tries to use the new operator instantiate an abstract class will not compile.

A)True

B)False

Q2) In the real world you can find many objects that are specialized versions of more general objects.

A)True

B)False

Q3) Only methods in the derived class can directly access the base class's private members.

A)True

B)False

Q4) Which one of the following is a class header indicating that we are defining a class named Amphibian, and it is derived from the Animal class?

A) Amphibian : Animal

B) Animal(Amphibian)

C) Animal->Amphibian

D) Amphibian<Animal>

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

Sample Questions

Q1) If a particular column is not allowed to be null, anytime you add a row of data to the table, the DBMS will require a value for the column.

A)True

B)False

Q2) A ____________ is a complete set of information about a single item in a table.

A) bit

B) column

C) cell

D) row

Q3) A database management system stores data in a ____________ .

A) text file

B) binary file

C) database

D) source file

Q4) A(n) ____________ is a column that contains unique values that are generated by the DBMS.

A) primary key

B) identity column

C) key column

D) generated field

Page 13

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

Turn static files into dynamic content formats.

Create a flipbook