Exam 1 (Ch 1 & 2) Flashcards

1
Q

C# has a set of rules, called ______, that must be followed.

A

Syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When you use the __________ approach to solving a problem, you break the problem into subtasks.

A

Methodical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A(n) _______ is a mock-up of screens depicting the look of the final output.

A

Prototype

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

An object is a(n) ________ of a class.

A

Instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The most important and frequently used ______ is System.

A

Namespace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A(n) _________ is a user-supplied or user-created name.

A

Identifier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The method _________ is the entry point for all applications. This is where the program begins execution.

A

Main

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A(n) __________ is a clear, unambiguous, step-by-step process for solving a problem.

A

Algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A(n) ________ is a collection of one or more statements combined to perform an action.

A

Method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Windows 8, Android, Windows 7, and Linux are types of _______.

A

System software

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The Framework Class Library (FCL) includes a number of different ________.

A

Namespaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

________ marks the end of a block comment.

A

*/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Programmers commonly verify that their design is correct by doing a(n) ____.

A

Desk check

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

One of the rules for creating a(n) ________ is to use a combination of alphabetical characters, numeric digits and the underscore character.

A

Identifier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

_______ are predefined reserved identifiers that have special meaning to the compiler.

A

Keywords

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Every time you declare a variable in the C# language you are actually _______ a class.

A

Instantiating

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

The _____ data type is a whole number, between a certain range of values, and contains no decimal point.

A

int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The _______ data type was added to the language to eliminate the problems of loss of precision in mathematical operations that occurred in previous languages.

A

decimal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The _____ is sometimes referred to as the remainder operator.

A

% mod

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

______ operators provide a shortcut way to write assignment statements using the result as part of the computation.

A

Compound

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The C# category of ______ operators appear at the top of the precedence table with the order of operations.

A

Unary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

_____ makes a variable temporarily behave as if it is a different type.

A

Cast

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

In order to place a value in memory that cannot be changed, you add the keyword _____ to the declaration.

A

const

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

A megabyte is approximately a(n) _______ bytes.

A

Million

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

______ is the universal character-encoding schema that provides a unique number for every character in many different languages.

A

Unicode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

A(n) _______ represents an area in the computer memory where a value of a particular data type can be stored. When you declare a(n) _______, you allocate memory for that data item in your program.

A

Variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

When naming local variable identifiers and parameters, use _________.

A

Camel case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

All programs consist of at least one ______.

A

Main

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

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.

A

readKey();

30
Q

C# is an object-oriented language as such all the code that you write has to be placed in a(n) _____.

A

Class

31
Q

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

A

False

32
Q

The first step in the program development process is

A

Analysis

33
Q

Comments are considered instructions to the computer. True or False

A

False

34
Q

moreData = true; 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. True or False

A

False

35
Q

An appropriate identifier used to store the total transaction amount is total$Amount. True or False

A

False

36
Q

Classes, methods, namespaces, and properties follow the Pascal case naming convention, which indicates that the first letter in the identifier is lowercase and the first letter of each subsequent concatenated word is capitalized. True or False

A

False

37
Q

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. True or False

A

False

38
Q

The decimal equivalen for 3.42e-5 in scientific notation is .00342 True or False

A

False

39
Q

The result of 25 % 4 is 6.25. True or False

A

False

40
Q

The result of “123” + “321” is “123321” True or False

A

True

41
Q

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

A

False

42
Q

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

A

True

43
Q

The value $78,888.90 is printed as output when the {1:c) format specifier is used in the following Write statement: Console.Write(“{0:c}”, 78888.894 True or False

A

False

44
Q

The binary value for ten is 00001010 True or False

A

True

45
Q

The number 11111111 in binary is equivalent to the number 255 in decimal True or False

A

True

46
Q

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

A

False

47
Q

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

A

False

48
Q

With only eight bits, you can represent 28or 256 different decimal values.

True or False

A

True

49
Q

Unicode includes representation of 28 or 256 unique characters.

True or False

A

False

50
Q

A machine that has a 64-bit processor can process 64 characters at one time.

True or False

A

False

51
Q

Give examples of data types.

A

Int, double, string, char

52
Q

Which data type is used to store whole numbers?

A

int

53
Q

Which data type would you use to store the amount of money it costs for your lunch?

A

double

54
Q

Declare a memory location to store your GPA

A

double gpa

55
Q

Show how you would declare a memory location called amount to be of double type with a compile-time initialization fo four dollars and 2 cents.

A

double amount = 4.02;

56
Q

Show how you would declare a memory location to store the name of your high school.

A

string nameOfSchool;

57
Q

Show how you would declare a memory location to contain the number of pages in a book and do a compile time initialization of it with a value of 865.

A

int numberOfPages = 865;

58
Q

The characters T and F are used to represent binary digits.

True or False

A

False

59
Q

A hard dtive that holds 3 gigabytes will store more data than one that holds 10 megabytes.

True or False

A

True

60
Q

___ bits make up one byte.

A

8

61
Q

____ is used to mark the beginning of an inline comment.

A

//

62
Q

___ is used to mark the beggining of a multiline comment.

A

/*

63
Q

A computer machine that has a 32-bit processor with 512 megabytes of RAM could store approximately _____ alphabetic characters in RAM.

A

512 million

64
Q

ReadKey() is a ____

A

Method

65
Q

The Write() program statement is added to hold the screen.

True or False

A

False

66
Q

The Main() method must be placed at the beginning of a program.

True or False

A

False

67
Q

A forward slash followed by and asterisk /* marks the beginning of an inline comment.

True or False

A

False

68
Q

Program statements are called _____

A

Source code

69
Q

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

A

Syntax

70
Q

We are currently in the ____ generation of modern computing.

A

5th

71
Q

IDE stands for Integrated Development Environment.

True or False

A

True