Skip to main content

Windows Application Development Exam Answer Key - 1124 Verified Questions

Page 1


Windows Application Development

Exam Answer Key

Course Introduction

Windows Application Development is a comprehensive course that introduces students to the fundamental concepts and practical skills required for building robust desktop applications for the Windows operating system. The course covers the use of modern programming languages such as C# within the .NET framework, familiarizing learners with key elements like graphical user interface (GUI) design, event-driven programming, data handling, and integration with Windows services. Students will also explore tools like Visual Studio and techniques for debugging and testing applications. Through hands-on projects and real-world scenarios, participants gain the expertise needed to create user-friendly, efficient, and secure Windows applications, preparing them for professional roles in software development.

Recommended Textbook

C# Programming From Problem Analysis to Program Design 4th Edition by Barbara Doyle

Available Study Resources on Quizplus 15 Chapters

1124 Verified Questions

1124 Flashcards

Source URL: https://quizplus.com/study-set/492

Page 2

Chapter 1: Introduction to Computing and Programming

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) One class predefined as part of .NET is ____.

A) System

B) Console

C) namespace

D) main

Answer: B

Q2) The compiler checks for ____.

A) semantic violations

B) files that are too large

C) debugger options

D) syntax rule violations

Answer: D

Q3) Which method of the Console class allows multiple characters to be input via the keyboard?

A) Write( )

B) Read( )

C) Input( )

D) ReadLine( )

Answer: D

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

Page 3

Chapter 2: Data Types and Expressions

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) When you desk check the algorithm,you can compare the results obtained from the program with calculator results.

A)True

B)False

Answer: True

Q2) An appropriate identifier used to store the total transaction amount is total$Amount.

A)True

B)False

Answer: False

Q3) The decimal value type is appropriate for storing monetary data items because it provides for greater precision.

A)True

B)False

Answer: True

Q4) The ____________ data type was added to the language to eliminate the problems of loss of precision in mathematical operations that occurred in previous languages.

Answer: decimal

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

Chapter 3: Methods and Behaviors

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The accessibility modifier identifies what type of value is returned when the method is completed.

A)True

B)False

Answer: False

Q2) ____ is added to hold the screen when the program runs.

A) Hold( )

B) return

C) Read( )

D) Pause( )

Answer: C

Q3) In order to hold the screen when the program runs,programmers often add Console.Read( )as a last statement.

A)True

B)False

Answer: True

Q4) Avoid writing long methods.Consider refactoring when the method exceeds ____________ lines of code

Answer: 25

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

Chapter 4: Creating Your Own Classes

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) Instance methods are ____.

A) nonstatic methods.

B) also called class methods.

C) defined in the Main( ) method.

D) defined outside of the class.

Q2) The ToString( )method is automatically invoked when the Write( )or WriteLine( )methods are called.

A)True

B)False

Q3) The ____________ constructor does not have any parameters and normally has no body,just opening and closing curly braces.

Q4) With the object-oriented approach,objects send messages to other objects and receive messages from objects.

A)True

B)False

Q5) ____________ access modifier is always associated with constructors.

Q6) By abstracting out the attributes (data)and the behaviors (processes on the data),you can create a(n)____________ to serve as a template from which many objects of that type can be instantiated.

Page 6

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

Chapter 5: Making Decisions

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The ____________ method will convert a string value sent as an argument to its equivalent numeric value,but it doesn't throw an exception when the conversion fails.

Q2) Relational operators allow you to test variables to see if one is greater or less than another variable or value.

A)True

B)False

Q3) When you compare characters stored in char memory locations using relational operators,____.

A) they are compared lexicographically

B) you receive an error message

C) they are always considered equal

D) you get inconsistent results

Q4) When you have a single variable being tested for equality against four or more values,a one-way selection statement is the most appropriate type of conditional expression to use.

A)True

B)False

Q5) Forms of the if statement include one-way,two-way,____________,multiway,and compound.

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

Chapter 6: Repeating Instructions

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) An example for statement that has a compound initialization,compound test and compound update could be written as ____.

A) for (int r = 0; c = 5; r < 3 && c > 2; r++; c--)

B) for (int r = 0; c = 5; r < 3 ; c > 2; r++; c--)

C) for (int r = 0, c = 5; r < 3, c > 2; r++, c--)

D) for (int r = 0, c = 5; r < 3 && c > 2; r++, c--)

Q2) A sentinel controlled loop is also called a flag-controlled loop.

A)True

B)False

Q3) You must tell the user what value to type to end the loop for ____.

A) counter-controlled loops

B) state-controlled loops

C) sentinel-controlled loops

D) any type of loop

Q4) Unlike the sentinel-controlled loop,the variable used with a state-controlled loop differs from the variable used to store the data that is being processed.

A)True

B)False

Q5) A(n)____________ is a loop that has no provisions for termination.

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

Chapter 7: Arrays

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) You can instantiate arrays of user-defined array objects and send in arrays as arguments to methods,but you cannot return arrays from methods.

A)True

B)False

Q2) There are several ways to do a compile-time initialization of arrays.All of the following are valid ways EXCEPT ____.

A) int [ ] anArray = {100, 100, 100};

B) int [ ] anArray = new int [ ] {100, 100, 100};

C) int [ ] anArray = new int [3 ] {100, 100, 100};

D) int [ ] anArray = new int [10 ] {100, 100, 100};

Q3) A limitation of the foreach loop structure when used with arrays is ____.

A) it offers read only access

B) it can only be used with integer arrays

C) a loop control variable must be defined on the outside of the loop

D) the control variable must be updated with each iteration

Q4) Elements in an array are sometimes referred to as ____________ variables.

Q5) Array identifiers are normally defined using a ____________.

Q6) Use the ____________ keyword to instantiate an object of an array.

Q7) To create an array to hold the 5 numeric scores,you could write ____________.

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

Chapter 8: Advanced Collections

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) int [ ,,] anArray = new [3,2,7] allows ____ elements to be stored.

A) 42

B) 12

C) 7

D) 3

Q2) The foreach loop structure cannot be used to iterate through a multi-dimensional array.

A)True

B)False

Q3) The string method that retrieves part of a string from a string argument is ____.

A) Trim( )

B) Substring( )

C) Retrieve( )

D) IndexOf( )

Q4) The Length property can be used to return the total number of elements in all dimensions.

A)True

B)False

Q5) The property ____________ returns the number of dimensions of the array.

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

Chapter 9: Introduction to Windows Programming

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The preprocess directive #region can be added in the program to ____.

A) mark sections of code that can be expanded or collapsed

B) identify all the code inserted automatically by Visual Studio

C) indicate you should not change the code found in that section

D) communicate that the section of code should be processed first

Q2) A sequential order exists with methods for Windows applications.The program exits after all statements have been sequentially executed.

A)True

B)False

Q3) Which property can be set to indicate whether text in the TextBox is read-only or not?

A) InputOnly

B) AcceptsText

C) ReadOnly

D) TextInputOnly

Q4) Visual Studio automatically imports the System.Windows.Forms namespace for you when you create a Windows Application Project using the IDE.

A)True

B)False

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

11

Chapter 10: Programming Based on Events

Available Study Resources on Quizplus for this Chatper

74 Verified Questions

74 Flashcards

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

Sample Questions

Q1) ComboBox objects have an added feature over the ListBox controls in that ____.

A) ComboBox objects contain their own text box field

B) Scrollbars are included with ComboBox objects

C) ComboBox objects enable multiple selections

D) ComboBox objects can be used for input and output

Q2) You change the appearance of the tabs for a TabControl object using the ____ Collection Editor.

A) TabPage

B) Controls

C) Properties

D) Text

Q3) The Form object also has a BackgroundImage property that can be set to display a picture on the background.Select the form and then use the Properties window to browse to a location that contains the file.

A)True

B)False

Q4) Objects like colorDialog,fontDialog,ToolTip and MenuStrip are added to the ____________ for the application when they are dragged and dropped onto the form.

Q5) The ____________ event fires when a key is pressed while the control has focus.

Page 12

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

Chapter 11: Advanced Object-Oriented Programming

Features

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) To keep subclasses from overriding a method,add the keyword ____________ to the method's heading.

Q2) With C#,you have single inheritance,but a class can ____________ multiple interfaces.

Q3) Polymorphic programming is associated with the ____________.You do not have to know how the method goes about doing its work.All you have to know is what arguments to send,if any,and what you expect to be accomplished when the object finishes its work.

Q4) One way to write reusable code is to use the object data type for instance data members.Doing so then requires ____.

A) moving the data type into a predefined type

B) using a stack to store the items

C) casting and unboxing the data type

D) creating generic classes

Q5) All .NET languages support multiple inheritance.

A)True

B)False

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

Q6) If a class implements more than one ____________,they all appear on the class definition line separated by commas.

Chapter 12: Debugging and Handling Exceptions

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The property of the Exception class that returns a string describing the exception is

A) ExceptionType

B) ExceptionInformation

C) ExceptionData

D) Message

Q2) The code that you want executed,whether an exception is thrown or not,is placed in the ____ block.

A) try

B) catch

C) finally

D) if

Q3) Custom exceptions must derive from the ____________ class.

Q4) Exception class has several properties.The ____________ property provides details about the cause of the exception.

Q5) What type of error is associated with a language rule violation?

A) logic

B) bug

C) exception

D) syntax

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

Chapter 13: Working with Files

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) The ____________ class makes it easy to write data to a file because it has implementations for the Write( )and WriteLine( )methods.

Q2) The StreamReader's Peek( )method returns the next available character but does not consume it.

A)True

B)False

Q3) The StreamWriter method(s)that clears all buffers for the current writer and causes any buffered data to be written to the underlying stream is ____.

A) Write( ) or WriteLine( )

B) Close( )

C) Flush( )

D) Dispose( )

Q4) A structure is a special form of value type that supplies alternate names for the values of an underlying primitive type.

A)True

B)False

Q5) A(n)____________ is a special form of value type that supplies names for the values.

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

Chapter 14: Working with Databases

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) When you place an @ in front of a string,the string becomes a(n)____.

A) comment

B) verbatim string

C) numeric value

D) argument

Q2) The OleDbCommand class is used to hold the SQL statements used to access an Oracle database.

A)True

B)False

Q3) A copy of an Access database can be stored locally;however,you can not store a local copy of a SQL Server database table.

A)True

B)False

Q4) The above connection string is associated with which type of database?

A) Jet

B) SQL Server

C) Oracle

D) Access

Q5) The four core classes that make up each data provider are ____________,Command,DataReader,and DataAdapter.

Page 16

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

Chapter 15: Web-Based Applications

Available Study Resources on Quizplus for this Chatper

75 Verified Questions

75 Flashcards

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

Sample Questions

Q1) To develop an ASP.NET application using Microsoft Internet Information Services (IIS),you must also have administrative debugging privileges on the computer used for development.

A)True

B)False

Q2) Which validation control compares an input value to see if it is between a specified lower and upper boundary?

A) RegularExpressionValidator

B) BoundaryValidator

C) CompareValidator

D) RangeValidator

Q3) The only event listed below that is automatically posted back to the server when the event is triggered is the ____.

A) ListBox SelectedIndexChanged event

B) TextBox KeyPress event

C) RadioButton CheckedChanged event

D) Button Click event

Q4) You can use the ____________ configuration wizard to connect to a data source and do very little,if any,programming.

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

Turn static files into dynamic content formats.

Create a flipbook
Windows Application Development Exam Answer Key - 1124 Verified Questions by Quizplus - Issuu