Programming for Business Applications Test Preparation - 1353 Verified Questions

Page 1


Programming for Business Applications

Test Preparation

Course Introduction

Programming for Business Applications introduces students to the fundamental concepts and practical skills required to develop software solutions tailored to business needs. The course covers essential programming languages and tools commonly used in the business environment, with an emphasis on automating processes, managing data, and solving problems specific to operations, finance, marketing, and human resources. Through hands-on projects and real-world case studies, students learn how to design, develop, test, and implement applications that enhance organizational efficiency and decision-making. No prior programming experience is required, making this course ideal for those seeking to bridge the gap between business knowledge and technical capability.

Recommended Textbook

Visual C# How to Program 6th Edition by Paul J. Deitel

Available Study Resources on Quizplus

25 Chapters

1353 Verified Questions

1353 Flashcards

Source URL: https://quizplus.com/study-set/2449 Page 2

Chapter 1: Introduction to Computers, the Internet and Visual C#

Available Study Resources on Quizplus for this Chatper

49 Verified Questions

49 Flashcards

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

Sample Questions

Q1) In the mid-1980s,Microsoft developed the ________ operating system based on a graphical user interface with buttons,textboxes,menus and other graphical elements.

A) Unix

B) Macintosh

C) Linux

D) Windows

Answer: D

Q2) In a ____________ file,a record typically stored in order by a record-key field.

A)chronological

B)non-sequential

C)sequential

D)record-key

Answer: C

Q3) The cost of computing power and communications bandwidth has been A) about the same each year.

B) going up.

C) going down.

D) undetermined.

Answer: C

Page 3

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

Chapter 2: Dive Into Visual Studio Community

Available Study Resources on Quizplus for this Chatper

25 Verified Questions

25 Flashcards

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

Sample Questions

Q1) The purpose of the Visual Studio Community is to

A) create a program.

B) run a program.

C) debug a program.

D) All of the above.

Answer: D

Q2) Autohide enables the tool box to shrink down to the edge of the screen.

A)True

B)False

Answer: True

Q3) You cannot browse the web from within the Visual Studio Community environment.

A)True

B)False

Answer: False

Q4) The text in the form's title bar is determined by the form's Text property.

A)True

B)False

Answer: True

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

Chapter 3: Introduction to C# Apps

Available Study Resources on Quizplus for this Chatper

41 Verified Questions

41 Flashcards

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

Sample Questions

Q1) Arithmetic expressions in C# must be written in straight-line form.

A)True

B)False

Answer: True

Q2) A variable is:

A) an instruction for the compiler

B) a location in memory where a value can be stored

C) a description of a value (such as a number or character)

D) None of the above.

Answer: B

Q3) What does the following statement display Console.WriteLine(

$"{"Welcome to "}\n{"C# Programming!"}");

A) Welcome to C# Programming!

B) Welcome to C# Programming!

C) {"Welcome to "} {"C# Programming!"}

D) None of the above

Answer: A

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

Page 5

Chapter 4: Introduction to Classes,Objects,Methods and Strings

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) Which of the following statements is false

A) Normally, a class also contains methods and properties. These manipulate the instance variables belonging to particular objects of the class.

B) Instance variables are declared inside the bodies of the class's methods and properties.

C) Clients of a class cannot access the class's private instance variables.

D) Clients of a class can access the class's public methods.

Q2) Which of the following statements is false

A) Each class you declare must provide a constructor with parameters that can be used to initialize an object when it's created.

B) C# requires a constructor call for every object that's created, so this is the ideal point to initialize an object's instance variables.

C) A constructor's identifier must be the class's name.

D) When you declare a class, you can provide your own constructor to specify custom initialization for objects of your class.

Q3) Attempting to use an uninitialized local variable is a runtime error.

A)True

B)False

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

Chapter 5: Control Statements: Part 1

Available Study Resources on Quizplus for this Chatper

94 Verified Questions

94 Flashcards

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

Sample Questions

Q1) A can be used in a repetition structure to control the number of times a set of statements will execute.

A) declaration

B) counter

C) controller

D) None of the above.

Q2) When instance variables of the simple types are declared in a class,they're automatically assigned default values unless specified otherwise by the programmer.Variables of type bool and String are given null by default;everything else is assigned 0.

A)True

B)False

Q3) A decision symbol in an activity diagram takes the shape of a ________.

A) diamond

B) rectangle

C) circle

D) question mark

Q4) A flag value should not be a legitimate data entry value.

A)True

B)False

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

Chapter 6: Control Statements: Part 2

Available Study Resources on Quizplus for this Chatper

66 Verified Questions

66 Flashcards

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

Sample Questions

Q1) The effects of break and continue statements can be achieved by struc tured programming techniques.

A)True

B)False

Q2) Consider the following two C# code segments: Segment 1 Segment 2

Int i = 0; For (int i=0;i < = 20;++i) While (i < 20) { { Console.WriteLine (i); ++i; } Console.WriteLine (i); }

Which of the following statements is true

A) The output from these segments is not the same.

B) The scope of the control variable i is different for the two segments.

C) Both (a) and (b) are true.

D) Neither (a) nor (b) is true.

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

Chapter 7: Methods: a Deeper Look

Available Study Resources on Quizplus for this Chatper

95 Verified Questions

95 Flashcards

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

Sample Questions

Q1) What does the Framework Class Library hold

A)namespaces

B) classes

C) methods

D) All of the above.

Q2) When calling a method,you must specify the arguments in the same order that the corresponding parameters are declared in the method's parameter list.

A)True

B)False

Q3) An overloaded method is one that

A) has a different name than another method, but the same parameters.

B) has the same name as another method, but different parameters.

C) has the same name and parameters as a method defined in another class.

D) has the same name and parameters, but a different return type than another method.

Q4) A particular seed value passed to the Random class's constructor causes the Random object to always produce the same series of random numbers.

A)True

B)False

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

Chapter 8: Arrays;Introduction to Exception Handling

Available Study Resources on Quizplus for this Chatper

90 Verified Questions

90 Flashcards

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

Sample Questions

Q1) Rectangular arrays are often used to represent tables of values consisting of information arranged in:

A) rows

B) columns

C) both a and b

D) None of the above

Q2) By convention,the first set of brackets of a two-dimensional array identifies an element's column and the second identifies the row.

A)True

B)False

Q3) Passing a reference type by value is done to protect:

A) the original object from being modified

B) the reference itself from being modified

C) data outside the bounds of an array

D) All of the above.

Q4) Values in an array can be totaled by using the ArrayTotal method.

A)True

B)False

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

Chapter 9: Introduction to Linq and Generic Collections

Available Study Resources on Quizplus for this Chatper

27 Verified Questions

27 Flashcards

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

Sample Questions

Q1) A LINQ query is executed when it's created.

A)True

B)False

Q2) The objects returned when using multiple properties in a select clause are objects of an anonymous type.

A)True

B)False

Q3) The range variable is implicitly defined in the _____ clause and used to produce results in the ______ clause

A) where, put B) from, put C) from, select D) where, select E) in, foreach

Q4) Visual C# requires you to write SQL to query data sources.

A)True

B)False

Q5) A List< T > can automatically resize itself to accommodate additional elements. A)True

B)False

11

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

Chapter 10: Classes and Objects: A Deeper Look

Available Study Resources on Quizplus for this Chatper

79 Verified Questions

79 Flashcards

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

Sample Questions

Q1) Which of the following is false

A) A static method or property must be used to access private static instance variables.

B) A static method has no this reference.

C) A static method can be accessed even when no objects of its class have been instantiated.

D) A static method can call instance methods directly.

Q2) User-defined classes may be composed of other user-defined classes.

A)True

B)False

Q3) Each object of a class has its own copy of all the instance variables of the class. A)True B)False

Q4) An object of a class that has a reference to another object of the same class may access all the private data and methods of that class.

A)True B)False

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

Page 12

Chapter 11: Object-Oriented Programming: Inheritance

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

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

Sample Questions

Q1) Which of the following pairs demonstrates the is-a relationship between the first and the second terms

A) car, engine

B) book, table of contents

C) baseball, sport

D) None of the above

Q2) A derived class is often larger and more general than its base class.

A)True

B)False

Q3) Constructors are not inherited.

A)True

B)False

Q4) A derived class can effect state changes in base class private members only through public,protected,internal methods provided in the base class and inher ited into the derived class.

A)True

B)False

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

Chapter 12: Object-Oriented Programming: Polymorphism

Available Study Resources on Quizplus for this Chatper

62 Verified Questions

62 Flashcards

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

Sample Questions

Q1) Which is used to specify that a class will be implementing an interface

A) using

B) :

C) implements

D) extends

Q2) An abstract base class can be used to declare references.

A)True

B)False

Q3) Abstract classes can provide data and services for objects.

A)True

B)False

Q4) Declaring a method sealed means:

A) it will prepare the object for garbage collection

B) it cannot be accessed from outside its class

C) it cannot be overloaded

D) it cannot be overridden

Q5) All methods in an abstract class are inherently abstract. A)True B)False

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

Chapter 13: Exception Handling: A Deeper Look

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

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

Sample Questions

Q1) After a finally block has finished executing:

A)control proceeds to the first statement after the finally block.

B)control returns to the throw point.

C)the app exits.

D)control proceeds to the first statement after the last catch block.

Q2) The base class for all exception classes is System.Exception.

A)True

B)False

Q3) After the last catch block,the required finally block provides code that always executes regardless of whether or not an exception occurs.

A)True

B)False

Q4) C# throws an IntegerArithmeticException when division by zero in integer arithmetic occurs.

A)True

B)False

Q5) There must be a catch clause for every expected exception type.

A)True

B)False

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

Chapter 14: GUI With Windows Forms: Part 1

Available Study Resources on Quizplus for this Chatper

64 Verified Questions

64 Flashcards

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

Sample Questions

Q1) Only one RadioButton can be checked per form on the screen.

A)True

B)False

Q2) A GUI allows the user to interact with the program visually.

A)True

B)False

Q3) MouseUp and MouseDown events are used when the mouse moves up or down.

A)True

B)False

Q4) The Clicks property of class MouseEventArgs is used to determine the number of times a Button was clicked.

A)True

B)False

Q5) Event handlers are methods that process events and perform tasks based on those events.

A)True

B)False

Q6) A Label allows input to be typed into it.

A)True

B)False

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

Chapter 15: GUI With Windows Forms: Part 2

Available Study Resources on Quizplus for this Chatper

73 Verified Questions

73 Flashcards

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

Sample Questions

Q1) A tree is a hierarchical collection of child and parent nodes.

A)True

B)False

Q2) The GetDirectories method of class Directory will return an array of sub-directories of the given directory.

A)True

B)False

Q3) The MdiChildren property returns a list of all the created children as an array of Forms.

A)True

B)False

Q4) To set an underline shortcut in a Menu,you use the tilde key (~).

A)True

B)False

Q5) Menus group similar commands and prevent GUI clutter.

A)True

B)False

Q6) The only controls available are the ones provided in C#.

A)True

B)False

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

Chapter 16: Strings,Characters and Regular Expressions

Available Study Resources on Quizplus for this Chatper

92 Verified Questions

92 Flashcards

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

Sample Questions

Q1) An example of a struct is:

A) an int

B) a double

C) a char

D) a byte

E) All of the above

Q2) The method IsWhiteSpace is used to determine whether a character is a space or not.

A)True

B)False

Q3) The ToString method can be used to convert a StringBuilder into a string.

A)True

B)False

Q4) When a number is passed as an argument for a string indexer it returns that many characters starting from the first.

A)True

B)False

Q5) Method Append can be used only on the primitive data types.

A)True

B)False

18

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

Chapter 17: Files and Streams

Available Study Resources on Quizplus for this Chatper

39 Verified Questions

39 Flashcards

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

Sample Questions

Q1) The FileAccess.Read enumeration member is used if the file should not be modified.

A)True

B)False

Q2) What exception is thrown when an error occurs during serialization or deserialization

A) SerialException

B) DeserialException

C) SerializationException

D) DeserializationException

E) c and d, respectively

Q3) BinaryFormatter's Serialize and Deserialize methods are both parameterless.

A)True

B)False

Q4) The Console.Error property returns:

A) a standard error stream object

B) a new error

C) an object of type error

D) None of the above

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

Chapter 18: Searching and Sorting

Available Study Resources on Quizplus for this Chatper

19 Verified Questions

19 Flashcards

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

Sample Questions

Q1) The selection sort is a simple and efficient algorithm.

A)True

B)False

Q2) Searching data involves determining whether a search key is present in the data and,if so,finding its location.

A)True

B)False

Q3) How much faster is the insertion sort with a 15-element array than with a 60-element array

A) 60 times

B) 4 times

C) 15 times

D) 16 times

Q4) After the ith iteration of an ascending order selection sort,the smallest i items of the array will be sorted in increasing order in the first i elements of the array.

A)True

B)False

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

Chapter 19: Data Structures

Available Study Resources on Quizplus for this Chatper

28 Verified Questions

28 Flashcards

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

Sample Questions

Q1) Which statement about trees is false

A) A tree is a nonlinear, two-dimensional data structure.

B) Each node in a tree must contain two links.

C) Children of the same node are called siblings.

D) A node with no children is called a leaf node.

Q2) Which statement is false

A) When a method call is made, the called method must know how to return to its caller, so the return address is pushed onto the program execution stack.

B) Stacks support recursive method calls in the same manner as conventional, nonrecursive method calls.

C) The program execution stack contains the space created for a method's global variables on each invocation of that method during a program's execution.

D) When a method returns to its caller, the memory for that method's local variables is popped off the stack and those variables are no longer known to the program.

Q3) Unboxing can be either implicit or explicit.

A)True

B)False

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

21

Chapter 20: Generics

Available Study Resources on Quizplus for this Chatper

22 Verified Questions

22 Flashcards

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

Sample Questions

Q1) Generic methods are often used to perform similar operations on different types of data.

A)True

B)False

Q2) The ________ clause specifies the type constraint for type parameter T. A) when

B) constraint C) where

D) cnstr

Q3) You can use explicit type arguments to indicate the exact type that should be used to call a generic method (e.g.,< int >).

A)True

B)False

Q4) IComparable objects cannot,by default,be used with generic code.

A)True

B)False

Q5) Type constraints restrict the type of the argument supplied to a particular type parameter.

A)True

B)False

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

Chapter 21: Collections

Available Study Resources on Quizplus for this Chatper

35 Verified Questions

35 Flashcards

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

Sample Questions

Q1) Which of the following statements is false

A) The LinkedList class is a singly linked list.

B) The LinkedList class's enumerator loops over the values of the nodes, not the nodes themselves.

C) One LinkedListNode cannot be a member of more than one LinkedList.

D) Method Find performs a linear search on the list and returns the first node that contains a value equal to the passed argument.

Q2) Which of the following statements is false

A) You filter elements to produce a collection of results that match a condition-known as a predicate.

B) LINQ extension method Where receives as its argument a Func delegate for a method that receives one argument and returns a bool indicating whether a given element should be included in the collection returned by Where.

C) The OrderBy extension method receives as its argument a Func delegate representing a method that receives one parameter (an element in the collection) and returns a value that's used to order the results.

D) Calls to Where and OrderBy are tuned to execute immediately at high performance.

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

Chapter 22: Databases and LING

Available Study Resources on Quizplus for this Chatper

25 Verified Questions

25 Flashcards

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

Sample Questions

Q1) There is a ____________ relationship between a primary key and its corresponding foreign key.

A) one-to-one

B) foreign

C) one-to-many

D) structural

Q2) A primary key field can be duplicated in other records of the same relational database table,making it easier to manipulate.

A)True

B)False

Q3) A relational database model allows relationships between data to be considered without concern for the ________.

A) meaning of the data

B) structure of the data

C) application of the data

D) All of the above

Q4) DBExtensions method Load loads an entire database's data into a DbContext.

A)True

B)False

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

Chapter 23: Asynchronous Programming With Async and Await

Available Study Resources on Quizplus for this Chatper

37 Verified Questions

37 Flashcards

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

Sample Questions

Q1) An async method can perform other statements between those that launch an asynchronous Task and await the Task's results.In such as case,the method continues executing those statements after launching the asynchronous Task until it reaches

A) the await expression

B) the return statement

C) the Task return

D) the async return

Q2) A Task promises to ________.

A) behave itself

B) run to completion

C) create multiple threads

D) return a result at some point in the future

Q3) The _________ delegate represents any method that takes no arguments and returns a result.

A) Func< TResult >

B) async

C) task

D) TResult

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

Chapter 24: XML

Available Study Resources on Quizplus for this Chatper

72 Verified Questions

72 Flashcards

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

Sample Questions

Q1) To eliminate the need to precede each element with a namespace prefix,document authors can specify a xe "default namespace"default namespace.

A)True

B)False

Q2) The Descendants method of class XContainer returns the same results as the Nodes method.

A)True

B)False

Q3) XML is most commonly used to:

A) communicate with wireless devices

B) store and format data for exchange between apps

C) display information on the Internet

D) validate HTML files.

Q4) XML namespaces help avoid naming collisions between XML documents.

A)True

B)False

Q5) Extensible Stylesheet Language (XSL)is an XML vocabulary for format ting XHTML data

A)True

B)False

26

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

Chapter 25: GUI With Windows Presentation Foundation

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) The StartupUri attribute defines which XAML document loads first.

A)True

B)False

Q2) It's a good practice to use ranges for the size and relative location for the position of WPF controls.

A)True

B)False

Q3) A CollectionViewSource provides multiple "views" of the same data.

A)True

B)False

Q4) A StackPanel has a vertical or horizontal flow,set by its _____ attribute.

A) Order

B) Orientation

C) FlowType

D) Direction

Q5) The attribute declares the control modified by a control template.

A) Type

B) TargetType

C) TargetControl

D) Control

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

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.