CS 3160 Ch. 1, Test 1 (Chapters 1 - 3), Ch1 of C# Programming, Ch 2 of C# Programming, Programming 1 Final, Exam 1 (chp1-4), Class Work 1

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

XML (Extensible Markup Language)

A markup language that provides a format for describing data using tags similar to HTML tags.

Domain

A range of values that a data item can store. Ex) for letter grades: domain is A thru F

Class

A term denoting the encapsulation of data and behaviors into a single package or unit; class is the template from which many objects are instantiated; like a blueprint for a house and a single house built from that being an instance.

Algorithm

A clear, unambiguous, step-by-step process for solving a problem; these steps are expressed completely and precisely so that all details are included.

Constant

A data item defined and initialized to keep the same value throughout the life of the program.

Steps in the Program Development Process

1 - Analyze the problem 2 - Design a solution 3 - Code the solution 4 - Implement the code 5 - Test and debug

Step 1 of the Development Process

1 - Analyze the problem Understand the problem thoroughly; review problem specifications, which is the desired output of the program (what is to be displayed, saved or printed) Review program inputs, such as: -What kind of data will be inputted and by whom? -What type of values (whole #'s, alphabetic, etc.)? -What is the domain ( range of values) for each item? -Are any of the items of data set constant?

Compiler

Converts programming language instructions into machine-readable format (machine language); looks at entire pieces of code; before translating code, it checks for rule violations; only converts when all syntax errors are removed; generates a file that ends with .exe; generates MSIL or IL.

The definition of the method __________. A. is the same as the heading for the method. B. is the body of the method C. includes everything between the curly braces D. includes the heading and the body

D. includes the heading and the body

The most restrictive access modifier that offers accessibility only within the body of the class is ____. A. internal B. public C. protected D. private

D. private

prototype

During the design phase, it is important to develop a(n) ____________ illustrating what the desired final output should be.

Analysis

During which phase of software development should questions be asked to clarify the problem definition?

Unicode includes representation of 2^8 or 256 unique characters.

False

"{0:C}"

In order to format the first argument in the WriteLine method so that it prints the value 5343.67 as $5,343.67 with a comma and a dollar symbol, you would insert the following format string as the argument to the WriteLine( ) ____.

\

Single quote is printed

Class Details

After the class diagram is created, add the names of data members or fields and methods using the_________________ section.

\a

Alert signal (short beep)

During which phase of software development should questions be asked to clarify the problem definition?

Analysis

Which of the following is a contextual keyword in C#? A. yield B. bool C. const D. Write

A. yield

Prototype

A mock-up of screens depicting the look of the final output of a program.

A quick way to identify a method is by looking for ____.

parentheses

On a class diagram, the minus symbol shown beside the data member indicates the member is ____.

private

A standard convention used by programmers for naming constants is to _________. A. use camel case B. begin the first character with a lower case characters and use upper case for the rest of the identifier C. use uppercase letters for the identifier D. use Pascal case

C. use uppercase letters for the identifier

value

Call by ____________ is the default parameter type.

value-returning

Calls to ____________ methods must be placed at a location in your code where the value could be accepted when the method is finished.

CLR

Common Language Runtime; the Common Language Runtime (CLR), the virtual machine component of Microsoft's .NET framework, manages the execution of .NET programs; a process known as just-in-time compilation converts compiled code into machine instructions which the computer's CPU then executes; similar to Java's JVM.

An IDE (Integrated Development Environment) enables you to ____.

Compile, Debug, Type your program statements into an editor

Instruction Cycle

Consists of fetching a program instruction from memory, decoding the instruction, executing, and then storing the result in memory.

Application Software

Consists of programs developed to perform a specific task. Ex) Word, Excel, SQL Server, Access, eBay Programs written for this C# class will be these.

One class predefined as part of .NET is ____.

Console

class, method

Console is a ____ and WriteLine( ) is a ____.

Which of the following would display "Good day!" on the screen?

Console.WriteLine("Good day!");

Which of the following statements would produce the output shown here?

Console.WriteLine("Live\nLife to the \tfullest");

all of the above.

Constructors ____.

ToString( )

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

invoke instance methods using the objects you construct.

In order to test a class, ____.

Inline Comment

Indicated by two forward slashes // and is usually considered a one-line comment; Enter ends the comment.

ReadKey()

One option to holding the screen at the end of a program is to invoke Console.Read( ). Another option is to call ____________. It obtains the next character or function key from the user.

Arithmetic Logic Unit (ALU)

Performs the actual computations and comparisons on the data; executes.

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

ReadLine( )

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

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

Programs

Sets of instructions telling the computer exactly what to do.

Desk Check

The use of simple data to verify programming algorithms by mimicking or walking through each step the computer will take to solve the algorithm.

Constants are normally named using all uppercase characters, separating second and subsequent words with the underscore character.

True

In order to call a static method form another class, the class name muse be used with the method name.

True

One required entry for a method heading is the return type.

True

Placing the two plus symbols (++) before an identifier causes one to be added to the memory location referenced by the variable prior to any other statement's execution.

True

The Read() method is different from the ReadLine() method in that the Read() returns an int and the ReadLine() returns a string argument.

True

The System namespace contains classes that define commonly used types or classes.

True

The Visual Studio IDE is an interactive environment that enables you to type the source code, compile, and execute without leaving the IDE program.

True

The base-2 number system is also called the binary number system.

True

The binary value for ten is 00001010.

True

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

True

The number 11111111 is binary is equivalent to the number 255 in decimal.

True

The result of "123" + "321" is "123321".

True

Types are actually implemented through classes in C#.

True

With only eight bits, you can represent 2^8 or 256 different decimal values

True

Which of the following is a valid identifier? a. score#1 b. amount owed by student c. finalGrade d. 4thExam

c. finalGrade

Console is a ____ and WriteLine( ) is a ____.

class, method

Comments that use two forward slashes are called ____.

inline

As far as the compiler is concerned, you could actually type the entire program without touching the Enter key.

true

Each instruction statement has a semantic meaning—a specific way in which it should be used.

true

Problem specifications often include the desired output of the program in terms of what is to be displayed, saved, or printed.

true

floating point

the number 3.45 is an example of a(n) ____ type.

billion

A computer that has 8 GB of RAM can store approximately eight ____ characters.

Bit

A shortening of the words "Binary digIT"; Binary means two; thus, a binary digit can hold one of two values: 0 or 1.

Object-Oriented Approach (methodology)

An approach to programming that focuses on determining the data characteristics and the methods or behaviors that operate on the data.

Top-Down Approach (Step-Wise Refinement) or "Divide & Conquer"

A design methodology that divides a problem into a number of subproblems; each subproblem is then further subdivided into smaller units until the method is manageable.

IntelliSense

A feature of the Integrated Development Environment (IDE) that attempts to sense what you are going to type before you type it; when the IntelliSense window pops up, you can quickly select from the pull-down menu without having to complete the typing.

Logic Error

A logic error (or logical error) is a mistake in a program's source code that results in incorrect or unexpected behavior. It is a type of runtime error that may simply produce the wrong output or may cause a program to crash while running. Ex) assigning a value to the wrong variable may cause a series of unexpected program errors or multiplying two numbers instead of adding them together.

Read( )

A method in the Console class; often used in a C# program to keep the output screen displayed until the user presses a key on the keyboard.

Procedural Programming (methodology)

A programming approach that is process-oriented and focuses on the processes that data undergo from input until meaningful output; this approach is effective for small, stand-alone applications.

data field, method

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

Redistributable Version

A smaller version of .NET Framework used for deploying applications only; Microsoft offers this for free.

American Standard Code for Information Interchange (ASCII)

A subset of Unicode, in which the first 128 characters correspond to the Unicode character set; consists of the alphabet for the English language, plus numbers and symbols.

set

To define a property to change a data member of a class include a ____ clause.

beta

A(n) ____ version of software has not been fully tested and may still contain bugs or errors.

Programmers follow the rules for constructing identifiers for naming all of the following items EXECPT _____. A. keywords B. data items C. classes D. namespaces

A. keywords

Syntax Error

An error in a program due to a code that does not conform to order expected by the programming language; misplaced or missing semicolon, period, parentheses, or quotes as well.

An appropriate identifier used to store the total transaction amount is totalTransactionAmount.

True

Both out and ref parameter types cause a method to refer to the same variable that was passed into the method.

True

C# allows you to mix numeric integral types and floating-point types in an expression.

True

The symbols +=, -=, and *=, compound operators in C#, are used to provide a shortcut way to write assignment statements using the result as part of the computation.

True

Operating Systems

Type of system software that oversees and coordinates resources on the machine. Ex) Windows, Linux, MAC OS Includes communication programs for connecting to the Internet or connecting to output devices, such as printers. Includes user interface subsystems.

class

Using the object-oriented approach, a(n) ____ is a combined set of attributes and actions.

25

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

SDK

Software Development Kit; a software development kit (SDK or "devkit") is typically a set of software development tools that allows the creation of applications for a certain software package, software framework, hardware platform, computer system, video game console, operating system, or similar development platform.

F5 shortcut

Start Debugging

Ctrl-F5

Start Without Debugging Holds command windows instead of needing to type: Console.Read();

Method

Collection of one or more statements combined to perform an action; how behaviors are implemented in C#; similar to functions found in other languages (such as C++); they communicate with each other by sending arguments inside parentheses or as return values; sometimes no argument is sent, as is the case when nothing appears inside the parentheses.

Namespace

Container providing context and scope for information created to hold a logical grouping of unique identifiers or symbols; used to group types of similar functionality; The Systems.Windows.Forms namespace is used as an umbrella to organize classes needed to create Windows applications.

Web Forms (Server Controls)

Controls that are treated as objects, complete with data, behaviors, and properties; the Web server has access to these controls; also referred to as Web controls, or ASP server controls; part of the ASP.NET technology; using Web Forms, programmable Web pages can be built that serve as a UI for Web applications.

Assemblers

Convert the Assembly programming language, which is a low-level programming language, into machine code; not easy to read or write low-level languages

Console class (System.Console)

Enables programmers to write to and read from the console window or keyboard; defined within the System namespace.

void

Every method that has a return type other than ________ must have a return statement in the body.

amountDue = 0;

Which of the following is a valid compile-time initialization for amountDue, a floating point variable of the double type, that will initially be set to zero?

constant

Following standard conventions used by many programmers, the identifier REBATE would be defined as a(n) ____.

double

For a mixed expression equation involving an integer and a double, the result is a(n) ____.

Multiline Comments

For longer comments, A forward slash followed by an asterisk /* marks the beginning, and the opposite pattern */ marks the end; everything that appears between the comment symbols is treated as a comment; also called block comments.

amountDue = 0m;

Which of the following is a valid compile-time initialization for amountDue, a variable of the decimal type, that will initially be set to zero?

finalGrade

Which of the following is a valid identifier?

directly accessing private data members.

Instance methods manipulate data by ____.

In Visual Studio .NET, the feature that attempts to sense what you are going to type before you type it is called ____.

IntelliSense

\n

Next line (similar to pressing enter key)

private

Normally data members are defined to have ____ access.

System Software

Operating systems and also: setting up directories; moving, copying, and deleting files; transferring data from secondary storage to primary memory; formatting media; and displaying data on screens.

encapsulation

Packaging data characteristics and behaviors into a class is called ____.

analysis

The first step found in most software development methodologies is ____.

They are called instance methods.

Which of the following is true regarding methods of a class?

amountOfRain

Which of the following would be the most appropriate identifier for a memory location that will store the amount of rainfall for a given period of time?

answer -= 100;

Which statement subtracts 100 from the original value of an answer?

Given the following declarations, what is stored in ans as a result of the arithmetic expressions? a. 1.3333 b. 1.6 c. 2 d. 3

d. 3

Program execution halts in a C# program when ____.

the last statement in Main( ) is executed

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

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

logic

If you write a program and, instead of multiplying two values together as intended, you divide one value by the other, you produce a(n) ____ error.

Definition

Includes the heading and the body of the method, which are enclosed in curly braces.

Programming Language

Instructions for the computer which follow a set of syntax or rules.

Framework Class Library (FCL)

Made up of more than 2000 classes; all classes available for use by any of the .NET-supported languages; most of it written in C#; includes a number of different namespaces, such as System.

____ is normally part of the analysis phase of software development.

Making sure you understand the problem definition

syntax rule violations

The compiler checks for ____.

Signature

The name of the method, modifiers, and the types of its formal parameters; differs from the method heading in that the heading also includes the return type for the method and identifiers for the data type.

The value "true" could be stored in a variable of ____ type. a. bool b. decimal c. char d. floating point

a. bool

The compiler checks for ____.

syntax rule violations

Integrated Development Environment (IDE)

A program environment, such as Visual Studio .Net, in which you type your source code statements, debug, compile, and run your applications. IDE's include a number of useful development tools: IntelliSense (pop-up windows with completion options), color coding of different program sections, and online help and documentation.

"December"

A valid string literal representing the last month of the year is ____.

The return type is physically placed ________. A. immediately preceding the name of the method B. inside the method C. as the first entry in the method heading D. immediately following the name of the method

A. immediately preceding the name of the method

passing information as arguments through parameters.

Class methods manipulate data by ____.

\"

Double quote is printed

Syntax

Set of rules of the programming language.

Interpreters

Unlike compilers, it checks for rule violations line by line; normally slower than compilers; some languages offer both, such as: C, BASIC, Python, Lisp.

ans = ans * --v1;

Another way to write the following expression is ____. ans *= v1 - 1;

Binary Numbering System

Base-2 numbering system used by computers; consists of two symbols, the values 0 and 1; Ex) 01101001 is equivalent to the number 105 in decimal.

inheritance

What object-oriented feature enables you to define subclasses that share some of the characteristics of other classes?

-3

What would be stored in answer after the following arithmetic expression involving only integers, if the sign of the dividend is negative? int answer = -19 % -4;

attributes

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

\

Which character is called the escape character in C#?

uint

Which of the following integral type can NOT be used to store negative values?

WriteLine( ) differs from Write( ) in that ____.

WriteLine( ) advances to the next line after it finishes displaying output

Which character is called the escape character in C#?

\

Accessors

____ are special methods used to read the current state or value of an object member's data.

A valid string literal representing the last month of the year is _____. a. 12 b. "December" c. lastMonthOfTheYear d. December

b. "December"

What is stored in ans as a result of the arithmetic expression, given the following declarations? a. 27 b. 12 c. 29 d. None of the Above

c. 29

One convention used for naming identifiers is called Pascal case. This convention required that _______. a. The first letter be lowercase with the first letter of each subsequent word capitalized. b. All letters appear in uppercase characters. c. The first letter be uppercase with the first letter of each subsequent word capitalized. d. All letters appear in lowercase with words separated by an underscore.

c. The first letter be uppercase with the first letter of each subsequent word capitalized.

Which of the following is a valid-compile time initialization for amountDue, a variable of the decimal type, that will initially be set to zero? a. amountDue = 0; b. amountDue = '0'; c. amountDue = 0m; d. amountDue = 0f;

c. amountDue = 0m;

Which of the following would be the most appropriate identifier for a memory location that will store the amount of rainfall for a given period of time? a. time b. amount of rain c. amountOfRain d. amountofrainforsomeperiodoftime

c. amountOfRain

The number 3.45 is an example of a(n) ____ type. a. bool b. int c. floating point d. char

c. floating point

A variable of type bool can store ______. a. "true" b. TRUE c. true d. All of the above

c. true

Using the object-oriented approach, a(n) ____ is a combined set of attributes and actions.

class

Which of the following formats the first argument to display an amount with two digits to the right of the decimal? a. {0:C} b. {0:c} c. {0:f2} d. All of the above

d. All of the above

Probably the most important rule for naming identifiers is ____. a. Do not use over 12 characters for the identifier. b. Number the identifier and being each identifier with an numeric character representing its number c. Use a lowercase for the first character of the identifier d. Be descriptive and select a meaningful name

d. Be descriptive and select a meaningful name

Which statement subtracts 100 from the original value of an answer? a. 100 -= answer; b. answer = 100-; c. answer =- 100; d. answer -= 100;

d. answer -= 100;

Classes and class diagrams are used most often with the structured procedural approach to software development.

false

Good programmers often build test plans while they are in the implementation stage.

false

In C#, it is tradition to name the file containing the class the same name as the class name, except the file name will have a .c# extension affixed to the end of the name.

false

Byte

Made up of 8 bits; represents one keystroke.

Escape Character

Backslash ( '\' ).

all of the above

An IDE enables you to ____.

\\

Backslash is printed

Step 2 in the Software Development Process

2 - Design a solution methods: -Object-Oriented approach -Procedural "divide & conquer" (or top-down design) approach can be used with either method.

Step 3 of Program Development Process

3 - Code the Solution After completing the design and verified that the algorithm is correct, the design is translated into source code. (In our case, this will be C#.)

entity

A class is normally associated with a(n) ____, which often describes a person, place, or thing and is normally a noun.

The assignment operator used in C# is ______. A. = B. assign C. const D. store

A. =

If you expect to receive an "A" in this course, which of the following declarations would be most appropriate for storing the grade? A. char letterGrade; B. string grade; C. int letterGrade; D. double letterGrade;

A. char letterGrade

A class is used in C# to represent the encapsulation of ___________. A. data and behaviors B. packages C. types and objects D. integers and floating point values

A. data and behaviors

static

All Main( ) method headings must include the ____________ modifier meaning that the method belongs to the type itself rather than to a specific object of a class.

ReadLine( )

Allows multiple characters to be entered; it accepts characters until the Enter key is pressed; used to input data values.

Central Processing Unit (CPU)

Brain of computer; housed inside the system unit on a silicon chip; most important hardware element.

signatures

As with overloaded methods, ____________ must differ for constructors.

The result of the following expression is ______. double ans, v1 = 45.7, v2 = 10.5; int v3 = 5; ans = (int) v1 + v2 / (double) v3; A. 48.8 B. 47.1 C. 48 D. 47

B. 47.1

Which of the following would be the best declaration and compile-time initialization for an identifier to store the cost of tuition this year, if the value is $10,000? A. decimal tuitionCost = $10,000.00; B. decimal tuitionCost = 10000.00m; C. decimal tuitionCost = 10,000.00; D. decimal tuitionCost = "$10,000.00";

B. decimal tuitionCost = 10000.00m;

An instance of a class is called a(n) __________. A. instantiation B. objects C. template D. type

B. objects

When you declare a variable in C#, the computer ___. A. displays the contents of the memory location. B. sets aside a location in memory to store the value. C. does a compile-time initialization of the memory location. D. stores a value in the memory location.

B. sets aside a location in memory to store the value.

Escape Sequence

Backslash included with a character, such as: \n to represent the next line \t for a tab indention

Decimal System

Base-10 numbering system; uses 10 symbols ranging from 0 to 9 to represent a value.

What is stored in ans as a result of the arithmetic expression, given the following declarations? int ans = 5, v1 = 2, v2 = 10, v3 = 18; ans += v1 + 10 * (v2-- / 5) + v3 / v2; A. 27 B. 12 C. 29 D. none of the above

C. 29

Which of the following is a user-defined method? A. Parse() B. Write() C. Main() D. Pow()

C. Main()

In order to place a value in memory that cannot be changed, you would ____. A. declare the variable and do a compile-time initialization. B. add the keyword unchangeable to the declaration. C. add the keyword const to a declaration. D. not be able to use C#.

C. add the keyword const to a declaration.

Which of the following is a valid compile-time initialization for amoundDue, a variable of the decimal type, that will initially be set to zero? A. amountDue = 0; B. amountDue = '0'; C. amountDue = 0m; D. amountDue = 0d;

C. amountDue = 0m;

Which of the following is a reserved keyword? A. program B. System C. decimal D. Console

C. decimal

One converntion used for naming identifiers is called Pascal case. This convention requires that _____. A. the first letter be lowercase with the first letter of each subsequent word capitalized. B. all letters appear in uppercase characters C. the first letter be uppercase with the first letter of each subsequent word capitalized. D. all letters appear in lowercase with words separated by an underscore.

C. the first letter be uppercase with the first letter of each subsequent word capitalized.

Native Code (Machine Language)

Code that can be read by a computer.

\r

Curser advances to the beginning of the current line

\t

Cursor advances to the next horizontal tab stop (tab indention)

Which statement subtracts 100 from the original value of an answer? A. 100 -= answer; B. answer = 100 -; C. answer =- 100; D. answer -= 100;

D. answer -=100;

A computer that has 8 GB of RAM can store approximately eight ________ characters. A. million B. trillion C. gillion D. billion

D. billion

Following standard conventions used by many programmers, the identifier REBATE would be defined as a(n) ________. A. class B. object C. namespace D. constant

D. constant

Control Unit (CU)

Directs flow of info like a traffic cop; responsible for determining the next instruction; fetches and decodes the instructions and controls the overall operation of the other components of the CPU.

.cs

Extension for C# source file.

A method call is the same as a method declaration.

False

A standard convention used by programmers for naming classes is to use an action verb phrase.

False

An error will be produced when moreData is assigned the boolean variable shown above because the keyword true should be enclosed in double quotation marks.

False

An int variable would be the most appropriate type for a memory location that will be used to store the monthly membership dues for the computer club.

False

At the beginning of a program, comments are often written to identify how many pages are included in the program listing.

False

Base 16, also called the octal numbering system, uses powers of sixteen.

False

Both static and constant are keywords in C#.

False

C# is considered native code.

False

Casting is a form of implicit type coercion

False

Console applications require a Main() method, unlike Windows applications that do not require a Main() method.

False

Hexadecimal uses the symbols 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, G.

False

IDEs include a number of useful development tools such as Sensitive Windows, pop-up windows with completion options.

False

If aNumber is declared to be of type int with a value of 50, Console.out.WriteLine(aNumber++), displays 51.

False

In order to do a compile-time initialization of a decimal type, it is necessary to add a d or D onto the end of the value

False

Semicolons are placed at the end of method headings.

False

Software consists of programs, which are sets of instructions telling you how to use the computer.

False

Structured English is an abbreviated, action-oriented version of the English language. One of its syntax rules is that every statement must end with a semicolon.

False

The body of a method can include statements that declare other methods.

False

The bool data type can take on values of true/false or on/off.

False

The decimal equivalent for 3.42e-5 in scientific notation is .00342.

False

The definition of the method includes the entry inside the curly braces, which is sometimes called the body of the method.

False

The entries found inside the parentheses of the method heading are called the access modifiers.

False

The following are examples of the access modifiers available in C#: public, personal, protected.

False

The name of the method, modifiers, return type, and the types of its formal parameters make up the signature of the method.

False

The number 00001001 is binary is equivalent to the number 2 in decimal.

False

The return keyword may not be included with a non-value returning method (void method).

False

are defined inside Main( ) and other methods

Local variables ____.

If you write a program and, instead of multiplying two values together as intended, you divide one value by the other, you produce a(n) ____ error.

Logic

class

Methods that use the static modifier are called _________ methods

MSIL or IL

Microsoft Intermediate Language; what the compiler turns the C# code into when compiled; after the compiler creates the IL, the code can be executed on any machine that has the .NET Framework installed.

Given the following output statement, what would be displayed? Console.Write("Ok\\ \"I\'m sure\"");

Ok\ "I'm sure"

Console

One class predefined as part of .NET is ____.

Methodologies

Plans or approaches for solving computer-related problems.

Main ( ) method

Plays a very important role in C#; this is the "entry point" for all applications; where the program begins execution; can be placed anywhere inside the class definition; when a C# program is launched, the execution starts with the first executable statement found in this method and continues to the end of that method; should begin with an uppercase.

Keywords

Predefined reserved identifiers that have specially defined meanings for the compiler.

be descriptive and select a meaningful name

Probably the most important rule for naming identifiers is ____.

Source Code

Program statements written using a programming language, such as C# or Java.

Data

Raw facts; the basic numbers and characters that are manipulated to produce useful information.

Just-in-time Compiler (JITer)

Reads the IL code and translates or produces the machine code that runs on the particular platform; after the code is translated in this second step, results can be seen.

Void

Return type; if a method does not return a value, this keyword is included to signal that no value is returned.

Hexadecimal Numbering System

The Base 16 numbering system which powers of 16 and the symbols 0-9 and A-F.

Octal Numbering System

The Base 8 numbering system that uses powers of eight with symbols 0-7.

ASP.NET

The Microsoft programming framework that enables the creation of applications that run on a Web server and delivers functionality through a browser, such as Internet Explorer.

default

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

00011000

The binary equivalent of 24 is ____.

Unicode

The character set used by programmers of C#; uses 16 bits to represent a character; thus 2^16 or 65,536 unique characters can be represented.

translating high-level programming language into machine-readable form

The compiler is responsible for ____.

Semantic Meaning

The meaning of a programming instruction statement rather than the rules for how it should be written; a specific way in which each instruction statement should be used.

System namespace

The most important and frequently used namespace; contains classes that define commonly used types or classes; includes using directive; must be included in the references for a project created using Visual Studio; when a console application is created, Visual Studio automatically references and imports this.

Identifiers

The names of elements that appear in a program, such as the names of data items, variables, objects, classes, or methods. Some identifiers are predefined; others are user defined.

47.1

The result of the following expression is ____. double ans, v1 = 45.7, v2 = 10.5; int v3 = 5; ans = (int) v1 + v2 / (double) v3;

syntax

The set of rules that a language such as C# has to follow are called ____ rules.

scope, visible

The term ____________ is often used to indicate where an identifier has meaning and can be used

bool

The value true could be stored in a variable of ____ type.

XML documentation comments

This is an advanced documentation technique used for XML-style comments; a C# compiler reads the comments and generates XML documentation from them; Three forward slashes are used ///.

method

When naming a(n) ____________, use an action verb phrase.

camel casing

When naming local variable identifiers and parameters, use ____________.

During the analysis and design phases

When should test plans be developed?

optional

When you assign a default value to a parameter, it then becomes a(n) ____________ parameter.

Which of the following is a valid compile-time initialization amountDue, a floating point variable of the double type, that will initially be set to zero? a. amountDue = 0; b. amountDue = '0'; c. amountDue = 0m; d. amountDue = 0f;

a. amountDue = 0;

The special character that can be used with an indentifier is ______. a. - b. _ c. * d. #

b. _ (underscore)

A(n) ____ version of software has not been fully tested and may still contain bugs or errors.

beta

The diagram used in object-oriented development to show the characteristics and behaviors of a class is a(n) ____.

class diagram

Misspelling a name or forgetting to end a statement with a semicolon are examples of runtime errors.

false

What object-oriented feature enables you to define subclasses that share some of the characteristics of other classes?

inheritance

The compiler is responsible for ____.

translating high-level programming language into machine-readable form

Procedural and object-oriented are the two commonly used design methods.

true

Procedural programming is also called structured programming.

true

Several third-party vendors are also marketing .NET-compliant languages.

true

System software includes software such as the operating system.

true

The rule that every statement should end with a semicolon is an example of a syntax rule.

true

Xamarin is included with the latest version of Visual Studio. ​

true


Set pelajaran terkait

Unit 8 Environmental Science: Climate

View Set

Chromatin structure and organization

View Set

Community Health Nursing Chapter 1

View Set

DNA, Hot Pockets, & The Longest Word Ever: Crash Course Biology #11

View Set

Career Development + Job Seeking Skills

View Set

KNES 315 - CH 7 - Injury Assessment

View Set

FIN 302 QUIZ 1 PRAC Q'S (from chap 1 + 3)

View Set

Competitive Advantage, Firm Performance, & Business Models

View Set

Concepts of Dynamics of Management

View Set