Programming Logic and Design with C# Exam Preparation Guide - 1094 Verified Questions

Page 1


Programming Logic and Design with C# Exam Preparation Guide

Course Introduction

Programming Logic and Design with C# introduces students to fundamental programming concepts using the C# language as a foundation. The course covers essential topics such as algorithms, control structures, data types, variables, loops, and functions, emphasizing structured logic, modular design, and problem-solving techniques. Through hands-on exercises and projects, students learn to develop clear, efficient, and well-documented C# code, preparing them for more advanced programming courses and real-world application development.

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) Any piece of data that is stored in a computer's memory must be stored as a binary number.

A)True

B)False

Answer: True

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

A)True

B)False

Answer: False

Q3) A(n) ____________ is any device that works with binary data.

A) electronic module

B) digital device

C) binary machine

D) computational tool

Answer: B

Q4) In order to do anything meaningful, a computer has to have lots of bytes.

A)True

B)False

Answer: True

Page 3

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

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) The series of ____________ directives that appears at the top of a C# source code file indicate which namespaces in the .NET Framework the program will use.

A) include

B) namespace

C) public

D) using

Answer: D

Q2) If you double-click the error message that is displayed in the Error List window, the code editor will highlight the code that caused the error.

A)True

B)False

Answer: True

Q3) The ____________ property allows you to set the font, font style, and size of the control's text.

A) Appearance

B) Text

C) Font

D) Graphics

Answer: C

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) When you store a value in a variable, that value replaces the previous value that was in the variable.

A)True

B)False

Answer: True

Q2) You can assign a value to a variable only if the value is compatible with the variable's ____________.

A) data type

B) name

C) scope

D) lifetime

Answer: A

Q3) If you don't write an access modifier in a field declaration, an error will occur.

A)True

B)False

Answer: False

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) Both the && and || operators perform ____________, in which CPU time is saved by not checking the expression on the right side of the operator depending on the value of the expression on the left side of the operator.

A) logical optimization

B) short-circuit evaluation

C) cycle-branching

D) single-stage execution

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) The ____________ operator is the logical AND operator, which takes two Boolean expressions as operands and creates a compound Boolean expression that is true only when both subexpressions are true.

A) !

B) <>

C) &&

D) ||

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

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) When you work with a ____________, you can jump directly to any piece of data in the file without reading the data that comes before it.

A) file object

B) binary file

C) direct access file

D) sequential access file

Q2) ____________ are commonly used to control the number of times that a loop iterates.

A) Boolean variables

B) Sentinel variables

C) Counter variables

D) Named constants

Q3) The do-while loop always performs at least one iteration, even if its Boolean expression is false to begin with.

A)True

B)False

Q4) The first line of the for loop is known as the loop title.

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

61 Verified Questions

61 Flashcards

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

Sample Questions

Q1) To create a method you write its specification parameters.

A)True

B)False

Q2) A parameter variable's scope is the ____________ in which the parameter variable is declared.

A) namespace

B) class

C) field

D) method

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

A)True

B)False

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

A)True

B)False

Q5) The statements that make up the method body are enclosed inside a set of curly braces.

A)True

B)False

Page 8

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

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) The ref keyword creates and object in memory and returns a reference to the object it creates.

A)True

B)False

Q2) The storage locations in an array are known as ____________.

A) values

B) sectors

C) compartments

D) elements

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

Q4) You can use the ____________ to insert an item at a specific index in a List.

A) + operator

B) Add method

C) Insert method

D) Place property

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) String subscripts must be at least 0, and they must be less than the length of the string.

A)True

B)False

Q2) The ____________ can be used to retrieve a specific set of characters from a string.

A) Insert method

B) Substring method

C) Trim method

D) Contains method

Q3) The methods for modifying strings do not actually modify the calling string object, but they return a modified copy of the calling string object.

A)True

B)False

Q4) The char data type provides several methods for testing the value of a character.

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) You are limited to one form in a Visual C# project.

A)True

B)False

Q2) If you need to make a property read only, you simply do not write a get accessor for the property.

A)True

B)False

Q3) To add a new form to a project, first click ____________ on the Visual Studio menu bar, and then select Add Windows Form... from the PROJECT menu.

A) PROJECT

B) FILE

C) TOOLS

D) WINDOW

Q4) When a class contains a method that uses the public access modifier, the method can be called from code outside the class.

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

Q2) A class that is not intended to be instantiated but is to be used only as a base class is called a concrete class.

A)True

B)False

Q3) To allow a property to be overridden in the ____________ you write the virtual keyword in the property declaration.

A) class header

B) derived class

C) base class

D) class constructor

Q4) A regular class is sometimes called a(n) ____________.

A) concrete class

B) base class

C) derived class

D) abstract class

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) A ____________ is a source of data with which the application can work.

A) data source

B) table copy

C) binding source

D) dataset

Q2) SQL does not support relational operators.

A)True

B)False

Q3) When developing applications that work with an intensive amount of data, most developers prefer to use a database management system.

A)True

B)False

Q4) The application handles the actual reading of, writing of, and searching for data.

A)True

B)False

Q5) The Desc operator can be used to sort the results of an SQL Select query in descending order.

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
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
Programming Logic and Design with C# Exam Preparation Guide - 1094 Verified Questions by Quizplus - Issuu