Ch. 2 Programming Terms (C#)

Ch. 2 Programming Terms (C#)

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

string data type (string)

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (26)

Section 1

(26 cards)

string data type (string)

Front

Used to represent a grouping of characters, such as your name.

Back

byte

Front

The 8-bit grouping combination. With each of the switches being known as a bit, it takes a combination of eight switches to represent one character, such as the letter A.

Back

Pascal case

Front

The first letter in the identifier and the first letter of each subsequent concatenated word are capitalized. Classes, methods, namespaces, and properties follow the Pascal case naming convention in C#.

Back

modulus operator (%)

Front

Sometimes referred to as the remainder operator. The result, after division is done with 2 integral operands, is the remainder.

Back

identifiers

Front

The name 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. They are made up of a combination of alphabetic characters, numeric digits and the underscore character.

Back

assignment operator (=)

Front

The = symbol, when used with an assignment statement or a compile-time initialization. The value on the right side of the operator (=) is determined, and then that value is assigned to the variable on the left side of the = operator.

Back

bit

Front

"Binary Digit". Binary means two; thus, a binary digit can hold one of two values: 0 or 1. The 1 and 0 corresponds to on and off, respectively.

Back

format specifiers

Front

You can separate digits with commas or show the fractional portion of a value. You can suppress leading zeros or you can pad a value with zeros. There are many different specifiers that can be used with numbers. Examples: currency, decimal, scientific (exponent), fixed point, general, number, and percent. There are also some placeholder, separator, and literal specifiers as well.

Back

integral data type (int)

Front

Always a whole number value, an int data type can store values that do not have a decimal portion.

Back

Camel case

Front

The first letter of an identifier is lowercase, and the first letter of each subsequent concatenated word is capitalized. The convention in C# is to use camel case for variable and object identifiers.

Back

character data type (char)

Front

To represent a single character, such as the first initial of your last name, a char data type is used.

Back

Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte...

Front

kilo = 1000; mega = million; giga = billion; and so on. So if you have a machine that has a 64-bit processor, 4GB of RAM, and 1 TB of hard disk space, you know that the machine can process 64 bits at one time, store approximately 4 billion characters in memory, and has storage capacity for approximately 1 trillion characters on the hard disk.

Back

variable

Front

The representation of an area in the computer memory in which a value of a particular data type can be stored.

Back

constant variable

Front

A data item defined and initialized to keep the same value throughout the life of the program. Keyword: const is placed before the data type variable keyword. Standard programming conventions often use UPPERCASE for their constant identifiers.

Back

Uppercase

Front

used by constant literals and for identifiers that consist of two or fewer letters.

Back

decimal system

Front

Base-10 numbering system. Uses 10 symbols ranging from 0 to 9 to represent value.

Back

binary numbering system

Front

Computers use this base-2 numbering system for their language. Uses only two symbols, the values 0 and 1.

Back

Increment / Decrement Operators

Front

The addition or subtraction of the number one (1) to or from a memory location. The symbols used for increment and decrement are ++ and --. No space is permitted between the two symbols (++ or --). If they appear as prefixes, or to the left of the variable, the increment or decrement is perfomred before using them in the expression. When placed before they are called preincrement or predecrement operators; when placed after they are called postincrement or postdecrement operators.

Back

valid identifiers

Front

A combination of alphabetic characters, numeric digits, and the underscores ( _ ) can be used. Identifiers can be long; however, many systems consider the first 31 characters unique. The first character in the name may not be a numeric digit. No embedded spaces can be placed between the characters. Concatenate (append) second and subsequent words into the identifier by capitalizing the beginning letter of each word after the first.

Back

Scientific Notation for floating-point type numbers

Front

Can be specified in scientific notation with an exponent or in standard decimal notation. Using scientific notation syntax, large decimal numbers can be written in short expressions. Example: n.ne+/-P. n is the decimal number; P is the number of decimal positions to move left or right; and the + or - indicate the direction the decimal should be moved. (3.2e+5 is equivalent to 320,000)

Back

float data type (float)

Front

Real numbers with decimals are represented using the float data type for the 32-bit size. It is necessary to suffix the number with an F or f; otherwise, the number is assumed to be a double. This data type can only have 7 digit precision.

Back

boolean data type (bool)

Front

A variable that can have a value of either true or false.

Back

compound operator

Front

Provide a shortcut way to write assignment statements using the result as part of the computation. answer = 100; answer = answer + 5; This can be written as a compound operation: answer += 5;

Back

double data type (double)

Front

Real numbers with decimals are represented using the double data type for the 64-bit size. This data type can only have 15-16 digit precision.

Back

decimal data type (decimal)

Front

fairly new data type used in C#. Also a numeric data type that handles large decimal numbers, but helps eliminate the problems of loss of precision in mathematical operations that occurred in previous languages.

Back

Unicode

Front

The character set used by programmers of C#. The Unicode character set uses 16 bits to represent a character; thus, 2 to the 16th or 65,536 unique characters can be represented. Provides a unique character for every character in many different languages.

Back