41-80 Flashcards
In the application life cycle, the revision of an application after it has been deployed is referred to as: A. Unit testing B. Integration C. Maintenance D. Monitoring
Maintenance
-> czyli obsługa techniczna
In which order do the typical phases of the Software Development Life Cycle occur?
A. Development, design, requirements gathering, and testing
B. Design, requirements gathering, development, and testing
C. Design, development, requirements gathering, and testing
D. Requirements gathering, design, development, and testing
Requirements gathering, design, development, and testing
You execute the following code.
bool beakerFull = true;
bool flameOn = false;
int iResult;
switch (beakerFull) { case true: switch (flameOn) { case true: iResult = 1; break; case false: iResult = 2; break; } break; case false: switch (flameOn) { case false: iResult = 3; break; case true: iResult = 4; break; } break; }
What will the variable result be? A. 1 B. 2 C. 3 D. 4
2
You execute the following code.
for (int i = 0; i <= 100; i++) { if (i % 2 != 0) { Console.WriteLine("Hello") } }
How many times will the word Hello be printed? A. 49 B. 50 C. 51 D. 100
50
You are creating a routine that will perform calculations by using a repetition structure. You need to ensure that the entire loop executes at least once. Which looping structure should you use? A. For B. While C. Do„While D. For. „Each
Do„While
The purpose of the Finally section in an exception handler is to:
A. Execute code regardless of whether an exception is thrown.
B. Conclude the execution of the application.
C. Execute code only when an exception is thrown.
D. Break out of the error handler.
Execute code regardless of whether an exception is thrown.
You are creating the necessary variables for an application. The data you will store in these variables has the following characteristics:
✑ Consists of numbers
✑ Includes numbers that have decimal points
✑ Requires more than seven digits of precision
You need to use a data type that will minimize the amount of memory that is used.
Which data type should you use?
A. decimal
B. double
C. byte
D. float
double
float dokładnoś 6-9 cyfr, 4bajty
double dokładność 15-17 cyfr, 8 bajtów
decimal dokładność 28-29 cyfr, 16 bajtów
Your database administrators will not allow you to write SQL code in your application.
How should you retrieve data in your application?
A. Script a SELECT statement to a file.
B. Query a database view.
C. Call a stored procedure.
D. Reference an index in the database.
Call a stored procedure.
The SQL will only be inside the stored procedure.
You are reviewing a design for a database. A portion of this design is shown in the exhibits. Note that you may choose either the Crow’s Foot Notation or Chen
Notation version of the design. (To view the Crow’s Foot Notation, click the Exhibit A button. To view the Chen Notation, click the Exhibit B button. )
Which term is used to describe the Customer component? A. Field B. Attribute C. Property D. Entity
Entity
You have a server that limits the number of data connections.
What should you use to optimize connectivity when the number of users exceeds the number of available connections?
A. Connection timeouts
B. Named pipes
C. Normalization
D. Connection pooling
Connection pooling
In software engineering, a connection pool is a cache of database connections maintained so that the connections can be reused when future requests to the database are required.
Your application must pull data from a database that resides on a separate server.
Which action must you perform before your application can retrieve the data?
A. Configure the network routers to allow database connections.
B. Install the database on each client computer.
C. Create a routine that bypasses firewalls by using Windows Management Instrumentation (WMI).
D. Establish a connection to the database by using the appropriate data provider.
Establish a connection to the database by using the appropriate data provider.
You have a class named Truck that inherits from a base class named Vehicle. The Vehicle class includes a protected method named brake ().
How should you call the Truck class implementation of the brake () method?
A. Vehicle. brake ();
B. This. brake ();
C. MyBase. brake();
D. Truck. brake ();
MyBase. brake();
The MyBase keyword behaves like an object variable referring to the base class of the current instance of a class.MyBase is commonly used to access base class members that are overridden or shadowed in a derived class.
Which of the following must exist to inherit attributes from a particular class? A. Public properties B. A has-a relationship C. An is-a relationship D. Static members
Public properties
Which type of function can a derived class override? A. a non-virtual public member function B. a private virtual function C. a protected virtual member function D. a static function
a protected virtual member function
Class C and Class D inherit from Class B. Class B inherits from Class A. The classes have the methods shown in the following table.
Class Method A m1 B m2 C m3 D m4
All methods have a protected scope. Which methods does Class C have access to? A. only m3, m4 B. only m2, m3 C. only ml, m3 D. m1, m3, m3 E. m2, m3, m4 F. m1, m2, m3
m1, m2, m3