Programming Fundamentals Final Test Solutions - 1111 Verified Questions

Page 1


Programming Fundamentals

Final Test Solutions

Course Introduction

Programming Fundamentals introduces students to the essential concepts of computer programming using a high-level programming language. The course covers core topics such as variables, data types, operators, control structures (including conditionals and loops), functions, basic data structures, and input/output operations. Students will develop problem-solving skills by designing, writing, and testing simple programs while learning best practices for code organization and documentation. Through hands-on exercises and projects, this course lays the foundation for advanced 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) ____________ is any data the computer produces and sends to another device, such as a video display or speaker.

A) Output

B) Software

C) Firmware

D) Media

Answer: A

Q2) A(n) ____________, or GUI, allows the user to interact with the operating system and application programs through graphical elements on the screen.

A) general-purpose interface

B) graphical user interface

C) generic unified interface

D) graphics utility interface

Answer: B

Q3) There are two general categories of software: system software and utility software.

A)True

B)False

Answer: False

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

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) If you want your code to execute a method, write a statement known as a(n)

A) event handler

B) executor statement

C) initialization routine

D) method call

Answer: D

Q2) Assuming an application has a PictureBox control named profilePictureBox, which one of the following assignment statements will hide the PictureBox from the user at run time?

A) profilePictureBox.Visible = False;

B) profilePictureBox.Visible = false;

C) profilePictureBox.Invisible = True;

D) profilePictureBox.Invisible = true;

Answer: B

Q3) In C#, string literals must be enclosed in double quotation marks.

A)True

B)False

Answer: True

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) When you perform a math operation on two operands of the same data type, the result will always be of that data type.

A)True

B)False

Answer: True

Q2) The ____________ property lets you designate a button on a form that will be automatically clicked when the user presses the Enter key.

A) ConfirmButton

B) AcceptButton

C) EnterButton

D) DefaultButton

Answer: B

Q3) If a field is a variable of a numeric data type, it will be initialized to 0 by default if you do not explicitly initialize it with a value.

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

78 Verified Questions

78 Flashcards

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

Sample Questions

Q1) The ____________ method can be used to convert a string to an integer.

A) Try.Parse.int

B) int.Parse

C) int.TryParse

D) TryParse.int

Q2) When the user selects an item in a ListBox, the item is stored in the ListBox's ____________ property.

A) Checked

B) SelectedValue

C) DataSelection

D) SelectedItem

Q3) The expression (A < 1) XX (A > 10) will determine if the value in A is outside a range, if "XX" is replaced by which logical operator?

A) &&

B) !

C) ||

D) >=

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

112 Verified Questions

112 Flashcards

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

Sample Questions

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

Q2) In the update expression of a for loop, you must use the ++ operator in the increment expression.

A)True

B)False

Q3) A random integer's range will begin at zero unless you specify otherwise.

A)True

B)False

Q4) The ____________ begins with the word while, followed by a Boolean expression that is enclosed in parentheses.

A) conditional statement

B) logic mark

C) while clause

D) loop parameter

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) You have to write the data type for each parameter variable in a parameter list.

A)True

B)False

Q2) A parameter variable can be accessed by any statement outside the method in which the parameter variable is declared.

A)True

B)False

Q3) The top-down design process is sometimes called stepwise engineering.

A)True

B)False

Q4) When a method contains multiple parameters, they are often referred to collectively as a(n) ____________.

A) reference list

B) parameter set

C) parameter list

D) argument list

Q5) You can write methods that return any data type.

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) Because subscript numbering starts at 0, the subscript of the last element in an array is 1 less than the total number of elements in the array.

A)True

B)False

Q2) A partially filled array is normally accompanied by an integer variable that indicates the number of items actually stored in the array.

A)True B)False

Q3) You can create an array to hold any single type of value.

A)True

B)False

Q4) To write the contents of an array to a file, open the file and use a loop to step through each array element, writing it to the file. Then close the file.

A)True

B)False

Q5) You cannot reassign an array reference variable to a different array.

A)True B)False

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

90 Verified Questions

90 Flashcards

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

Sample Questions

Q1) The images stored in an ImageList control do not have to be in the same format.

A)True

B)False

Q2) A string object's ToUpper method converts the first character in the string to uppercase.

A)True

B)False

Q3) Structure objects are normally passed ____________ to a method.

A) by reference

B) globally

C) by value

D) locally

Q4) The ____________ method places a string inside another string.

A) Remove

B) Trim

C) Insert

D) Substring

Q5) You will find the ImageList control in the Components section of the Toolbox.

A)True

B)False

10

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

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) Base classes are sometimes called superclasses, and derived classes are sometimes called ____________.

A) planned classes

B) copy classes

C) derivatives

D) subclasses

Q2) When an "is a" relationship exists between objects, it means that the specialized object has all of the characteristics of the general object, plus additional characteristics that make it unique.

A)True

B)False

Q3) When one object is a specialized version of another object, there is a(n) ____________ between them.

A) 1:1 ratio

B) "is a" relationship

C) "has a" relationship

D) shared interest

Q4) You can think of a derived class as an extended version of some base 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/21005

Sample Questions

Q1) In SQL, you use keywords to construct statements, which are also known as ____________.

A) queries

B) expressions

C) determinants

D) solutions

Q2) The ____________ identifies the table from which the data-bound control will get its data.

A) DataSource property

B) Table property

C) primary key

D) DisplayMember property.

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

A) text file

B) binary file

C) database

D) source file

Q4) SQL provides several functions for performing calculations.

A)True

B)False

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