Advanced Programming Techniques Exam Preparation Guide - 1124 Verified Questions

Page 1


Advanced Programming Techniques

Exam Preparation Guide

Course Introduction

Advanced Programming Techniques delves into the sophisticated methodologies and paradigms that underpin modern software development. The course covers advanced concepts such as design patterns, concurrency and parallelism, memory management, metaprogramming, and efficient algorithm implementation across various programming languages. Students will explore object-oriented and functional programming, learn to architect scalable software solutions, and gain experience with advanced debugging and performance optimization tools. Extensive hands-on projects and case studies will prepare students to write robust, maintainable, and high-performance code, preparing them for complex real-world programming challenges.

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) ____ is normally part of the analysis phase of software development.

A) Making sure you understand the problem definition

B) Designing a prototype of the desired output

C) Coding the solution using an algorithm

D) Developing an algorithm to solve the problem

Answer: A

Q2) Run-time errors are more difficult to find than syntax errors because ____.

A) the program may compile and produce results with a run-time error

B) run-time errors are violations in the rules of the language

C) the program can never run if it has a run-time error

D) the program will never stop if it has a run-time error

Answer: A

Q3) The compiler checks for ____.

A) semantic violations

B) files that are too large

C) debugger options

D) syntax rule violations

Answer: D

Q4) ___________ marks the end of a block comment.

Answer: */

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) The decimal equivalent of 00011111 is ____.

A) 5

B) 10

C) 31

D) 32

Answer: C

Q2) A variable of type bool can store ____.

A) "true"

B) TRUE

C) true

D) all of the above

Answer: C

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

Q4) Both static and constant are keywords in C#.

A)True

B)False

Answer: False

Page 4

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

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 Read( )method is different from the ReadLine( )method in that the Read( )returns an int and the ReadLine( )returns a string argument.

A)True

B)False

Answer: True

Q2) One way to ensure that you have one entry and one exit from a method is to include a single return statement as the last statement in the method.

A)True

B)False

Answer: True

Q3) The first line of a method is called the ____ of the method.

A) signature

B) definition

C) heading

D) declaration

Answer: C

Q4) All programs consist of at least one ____________.

Answer: method

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) The keyword new is used as an operator to call constructor methods.

A)True

B)False

Q2) If berber is an object,the statement Console.Write(berber);automatically invokes the ____________ method.

Q3) The ToString( )method of the Console class should be overwritten.

A)True

B)False

Q4) Mutators are special types of methods used to create objects.

A)True

B)False

Q5) When you define the class,you describe its ____________,or characteristics or fields,in terms of data.

Q6) A property resembles a(n)____,but is more closely aligned to a(n)____.

A) data field, method

B) method, data field

C) object, mutator

D) mutator, accessor

Q7) Fields or data members are also called ____________.

Q8) The body of the constructor methods consist primarily of ____________.

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

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

Q2) When a single variable may need to be tested for five different values,the most readable solution would be a(n)____.

A) one-way if statement

B) two-way if statement

C) switch statement

D) nested if....else statement

Q3) The short-circuiting logical operators ____.

A) enable doing as little as is needed to produce the final result

B) produce a boolean result of true

C) are performed before any other statements are executed

D) cause the program to stop execution when the expression is evaluated

Q4) By properly ____________ the else clauses with their corresponding if clauses,you encounter fewer logic errors that necessitate debugging.

Q5) A conditional expression is also referred to as a(n)____________.

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) Which of the following is NOT a keyword used to enable unconditional transfer of control to a different program statement?

A) continue

B) break

C) goto

D) while

Q2) Using the break or continue statements with a loop violates the single entry and single exit guideline for developing a loop.

A)True

B)False

Q3) You often need to do a "prime the read" for counter controlled loops which means that you would input a value before going into the body of the loop.

A)True

B)False

Q4) The ____________ statement is a pretest form of loop which is considered a specialized form of the while statement and is usually associated with counter-controlled types of loops;

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) The index is also referred to as the ____ of the array.

A) value

B) element

C) size

D) subscript

Q2) With the declaration above,price[2] refers to 2.2.

A)True

B)False

Q3) In C# the length of an array cannot be changed.After it is instantiated with a length,dynamic resizing is not an option.

A)True

B)False

Q4) With the declaration above,price[5] generates a runtime error.

A)True

B)False

Q5) With parallel arrays,the relationship is established through using the same subscript or index to refer to the elements in both arrays.

A)True

B)False

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) The above segment of code ____.

A) creates a jagged array

B) creates a syntax error

C) creates a 2 x 3 array

D) declares a three-dimensional array

Q2) Using the Substring( )method with sValue,which of the following references the word choices?

A) sValue.Substring(14, 7);

B) sValue.Substring(3);

C) sValue.Substring("choices");

D) sValue.Substring(15, 7);

Q3) In order to determine the position of one or more characters inside a string argument,use the ____ method of the string class.

A) Location( )

B) Position ( )

C) IndexOf( )

D) Place( )

Q4) ____________ class represents a simple last-in-first-out (LIFO)collection of objects.

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

Page 10

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

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) A sequential order exists with methods for Windows applications.The program exits after all statements have been sequentially executed.

A)True

B)False

Q2) With the heading above,Form is the derived class.

A)True

B)False

Q3) Probably the most commonly used control for input and output is the ____.

A) Button

B) Label

C) TextBox

D) Menu

Q4) The static method that stops the application and closes all of its windows is ____.

A) Application.Close( )

B) Application.Stop( )

C) Application.Exit( )

D) Application.Quit( )

Q5) ____________ objects are normally used to provide descriptive text for another control.

To view all questions and flashcards with answers, click on the resource link above. Page 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) The ListBox control object can hold data of string type only.

A)True

B)False

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

Q3) The ListBox ____________ property has selection values of MultiSimple,MultiExtended,None and One.

Q4) The default setting for the ComboBox object's DropDownStyle property,is DropDown.Retaining this setting prohibits new text from being entered into the ComboBox.

A)True

B)False

Q5) Associating a method in your program to an event is called delegating the event. A)True

B)False

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

Q7) The default event-handler method for CheckBox objects is ____________.

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

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 override a method,the base method may include any of the following keywords,EXCEPT ____.

A) virtual

B) abstract

C) interface

D) override

Q2) Enabling multiple implementations of the same behaviors so that the appropriate implementation can be executed based on the situation describes ____ as it relates to object oriented development.

A) abstraction

B) encapsulation

C) polymorphism

D) inheritance

Q3) Object-oriented development focuses on designing classes that can be reused.One way to ensure this reuse is through designing and building components that can be stored in a library and called on when needed.

A)True

B)False

Q4) Classes that inherit from a base class are called ____________ classes.

Page 13

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

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) When an exception is thrown,execution halts in the current method and the CLR attempts to locate an exception handler to handle the exception.

A)True

B)False

Q2) Zero or more than one catch clause may be included with a try clause.

A)True

B)False

Q3) If a program encounters an error that it cannot recover from,it ____.

A) elevates the priority level of the program

B) raises or throws an exception

C) terminates immediately

D) locks up the computer

Q4) The ____ property associated with exception objects returns a string describing the exception.

A) Text

B) Message

C) StackTrace

D) Name

Q5) C# adheres to a fairly sophisticated set of rules known as C# ____________.

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) When a method uses a(n)____________ modifier,the method belongs to the class itself,not to a specific object of the class and is thus called using the class name.

Q2) Every member of the File class is static-meaning methods are called ____.

A) using the static keyword

B) with the file name

C) with an object name

D) with the class name

Q3) If you use Visual Studio and include a reference to the System.IO namespace,IntelliSense provides helpful information while you are developing your file application.

A)True

B)False

Q4) The StreamReader class extends the ____ class.

A) File

B) FileInfo

C) TextReader

D) IO

Q5) The ____________ class provides static methods that aid in creating and moving through folders and subdirectories.

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 the connection string is saved with the application,it is stored in the ____.

A) App.config file

B) data.file

C) solutions.settings file

D) connection.String file

Q2) Connection strings are vendor specific.

A)True

B)False

Q3) Which of the following is a typed accessor method of the OleDbDataReader class?

A) GetBoolean( )

B) AccessInt( )

C) RetrieveDouble( )

D) ReadDecimal( )

Q4) In order to use the dataReader object to retrieve the lastName,which is located in the third field of a data record,you could write ____.

A) dataReader["lastName"]

B) dataReader[3]

C) lastName.dataReader

D) dataReader.get(lastName)

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

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) The code-behind file with ASP.NET is saved using which file extension?

A)xaml

B)xaml.cs

C) .aspx

D)aspx.cs

Q2) There are more controls to add to a Web application than there are for Windows applications.

A)True

B)False

Q3) Use the ____________ property to tie a validation control to a specific form control object such as a TextBox object.

Q4) Web pages are stateless. What does this mean?

A) Every postback trip to the server creates a new object.

B) Values entered are not automatically saved and redisplayed when a page is sent back to a client computer.

C) They do not retain their values from one trip to the Web server to the next.

D) All of the above.

Q5) ____________ tags tell the browser how to display data in different formats,for example,in bold or italic or in different fonts or font sizes.

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
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.