C# Visual Basic

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

To run the intermediate language for an application, Visual Studio provides the ___________________

.NET Framework Common Language Runtime

Which of the following is a valid decimal literal? 30.0 30.0c 30.0d 30.0m

30.0m

What form property do you use to activate a button control when the user presses the Enter key?

AcceptButton property

In the order of precedence for arithmetic expressions, addition and subtraction are done (before or after) _________ multiplication and division

After

What happens when this statement is executed? Automobile car = new Automobile(1);

An object of the Automobile class is created.

An inner join combines data from two or more tables in which the related fields _____________

Are the same

If you save the connection string for a data source in the configuration file for the application, a. the string is automatically adjusted if you change it in your C# code b. you won't have to change the string if the connection changes c. you can change the string in just the configuration file if the connection changes d. you can change the string in just one form if the connection changes

C

A variable declared outside of any method has ___________________ scope

Class

To write the C# code for a form, you use a Visual Studio window called the

Code Editor

The fields in a relational database are called ______________________

Columns

The primary components one the .NET Framework are the .NET Framework Class Library and the _____________

Common Language Runtime

When you use a data source to get data from a database, you can a. select just one table with all of its columns b. select one or more tables with all of their columns c. select just one table and just the columns that you want d. select one or more tables with just the columns that you want from each table

D

You can create ADO.NET objects by writing code or by using the _____________ feature

Data Sources

When you use a data adapter to retrieve data from a database, the data that's returned is stored in a data table within a ___________________

Dataset

Which built-in data type is the most precise type for storing monetary values?

Decimal

After you customize a binding navigator toolbar so it can be used to start queries, you need to write the _____________________ handlers that make this work

Event

When you need to convert a value from a more precise data type to a less precise data type, you use an ______________ cast

Explicit

To prevent a control from receiving the focus when the user presses the Tab key, you should set the control's TabStop property to _________________.

False

To add a row to a table in a database, you use the SQL _______________ statement

Insert

Which built-in data type stores only whole numbers?

Int

IDE stands for ____________________

Integrated Development Environment

Before a C# application can be run, it must be compiled into a language called

Microsoft Intermediate Language

The most common type of relationship between tables in a relational database is a _____________________ relationship

One to many

The values operated on by operators in an expression are called __________________

Operands

To customize the way Visual Studio works, you can use the ___________ command in the Tools menu.

Options

To apply formatting to a bound text box, you can use the Formatting and Advanced Binding dialog box that you can access from the __________________ window

Properties

You can use the smart tag menu of a DataGridView control to modify its most commonly used _________________

Properties

The ________________ property of a text box lets you prevent the user from entering data into the control.

Read-Only

Each record in a relational database is called a ________________

Row

You use a _________________ statement to retrieve data from a SQL database

Select

To change the file name for a form, project, or solution you use the ______________________

Solution Explorer

To work with the files of a solution, you use a Visual Studio window called the

Solution Explorer

To create a new Visual Studio project, you select a __________________ from the New Project dialog box to specify the type of project you want to create.

Template

The title that's displayed in the title bar of a form is determined by the ______________ property for the form.

Text

To convert a decimal variable's data to a string, you can use the _______________ method of the variable.

To String

For each parameterized query that you add to a data table, Visual Studio adds a/an __________________ control to the form.

Toolbar

What is the name of the Visual Studio window that contains controls that you can drag onto a form?

Toolbox

To modify the data in one or more rows of a table in a database, you use the SQL _______________ statement

Update

After you've used the properties and methods of a binding source to modify the rows in a dataset, you need to use the __________________ method of the table adapter manager object to make the changes to the database.

UpdateAll

Values that change during the execution of a program are usually stored in _________________

Variables

One of the Visual Studio 2015 languages that can be used for rapid application development is C#. Another language that supports rapid applicaton development is ____________

Visual Basic

When can you not code a method using an expression body?

When the method executes a block of statements

Converting data from a less precise data type to a more precise data type is referred to as a _______________ conversion

Widening

A solution is

a container that holds projects

A read-only property consists of just _________

a get accessor

What type of data will the following method return? private string GetName(int customerID, bool readOnly)

a string type

The ____________ for a method determines whether or not the method can be called by other classes.

access modifier

When you design and develop business classes for an application, your goal is to _________________

allow development to be spread among members of a development team, separate the business rules from the presentation and database logic, make the application easier to develop and maintain ALL OF THE ABOVE

An assembly is

an executable file that includes the MSIL or IL

To assign a more precise numeric data type to a less precise numeric data type, you can code __________

an explicit cast

A class defines the properties and methods of ____________

an object

The fields of a class ________

are the variables that are defined at the class level

When you call a method, you must include the ____________ required by the method.

arguments

When the code for an application has been translated into intermediate language and is ready to run, it is stored in a/an _________________.

assembly

To align two or more controls after you've selected them, you can use _____________________

both the Format menu commands and the Layout toolbar buttons

When a call statement passes a variable as an argument to a method by reference, the called method can change the value of the variable in the _________________ method

calling

If you pass a variable by reference, the called method _______________

can change the value of the variable in the calling method

If you pass a variable by value, the called method _______________

can't change the name of the variable in the calling method

Variables named according to camel notation ______________

capitalize the first letter of every word after the first word

Variables named according to Pascal notation ____________

capitalize the first letter of every word including the first word

The .NET Framework Class Library consists of ____________

classes that are organized into namespaces

The C# ________ builds the source code in a C# source file into an executable file.

compiler

To convert the data in any built-in data type to another data type, you can use the methods of the static ________________ class

convert

A class file that you add to a project has the extension ______________

cs

Two objects created from the same class can have different _______________

data

An object that's used to connect an event to an event handler is known as a ______________

delegate

What feature are you taking advantage of when you call the ToDecimal method of the Convert class without knowing how it's coded?

encapsulation

Which of the variables declared in the following class is an instance variable? public class Customer { public string firstName; private static int count; public string GetDisplayText() { string displayText = firstName + count; return displayText; } }

firstName

The process of creating an object from a class is known as ____________

instantiation

What is the purpose of the Common Language Runtime?

it manages the execution of .NET applications

To delete a method from a class, you not only have to delete the method but also its ______________

keyword

When you call a method with a parameter list, the arguments in the argument list ____________

must be declared with data types that are compatible with the parameters

The signature of a method is formed by the ____________________

name of the method and its parameter list

To override the order of precedence in arithmetic expression, you can use _______

parentheses

When you align or size a group of selected controls, the changes are made relative to the _______________

primary control

What keyword do you code at the beginning of a method that's only available within the current class?

private

f you want to code a method that can only be called from the class that the method is in, you code ____________________ as the access modifier in the method declaration.

private

Which method is an example of overloading the method that follows? public int ParseNumber(String numberString){...}

public int ParseNumber(String numberString, String entry){...}

To generate a call statement and a method from existing code, you can use a feature called ____________________.

refactoring

If a method returns a value and its parameters are passed by value, the code within the method must include a/an ____________________ statement.

return

To return the value of an instance variable named v from a get accessor, you code ____________

return v;

When you use the methods of the Math class, you don't create an object from the class. Instead, you use the _____________ methods of the class

static

Which of the following code examples passes an argument by name?

subtotal:subtotal

What is the purpose of the .NET Framework Class Library?

t provides pre-written code that can be used by .NET applications

A constant stores data _______

that does not change as a program executes

The live code analysis feature lets you generate a code stub for a class or member from ______________

the Quick Actions menu

The tab order determines the order in which ____________

the controls on a form receive focus when the user presses the Tab key

To begin the declaration for a property, you code the public keyword followed by _________

the data type and the name of the property

For each parameter in the parameter list for a method, you must code _______________

the data type of the parameter followed by the name of the parameter

To begin the declaration for a constructor, you code the public keyword followed by _________

the name of the class

When you're entering the C# code for a form and want to refer to a static method in another class, you start with _____________

the name of the class that contains it

If you declare a parameter for a method as optional, __________________

the parameter must be assigned a constant value as its default

In a three-layer application, the three layers are ___________

the presentation layer, the middle layer, and the database layer

To make a method in a class available to other classes, you begin the method declaration with _____________

the public keyword

Why won't the following statement compile? int TaxRate = 0.05d;

the value shouldn't be followed by a letter

The bool data type stores a _____________

true or false value

Windows Forms application runs ______________

under the Windows operating system

What keyword do you code for the return type of a method that doesn't return any data?

void

The process of connecting an event of an object to an event handler is called ____________ the event.

wiring

You can use an auto-implemented property when __________

you want the get and set accessors to simply return and set the value of an instance variable


संबंधित स्टडी सेट्स

Network Security/5.7 Network Access Control

View Set

[COMPLETE] Unit 8-9 Part IV Classical Period Ch 1-14

View Set