C SHARP - CHAPTERS 1- 4 THEORY REVIEW

C SHARP - CHAPTERS 1- 4 THEORY REVIEW

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

Method Body- Statements

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 (53)

Section 1

(50 cards)

Method Body- Statements

Front

Enclosed in curly braces includes program statements calls to other methods e.g Main calls WRITELINE AND READKEY

Back

Assignment Statements

Front

assignment statement takes the form of variable = expression.

Back

Application Software

Front

Performs a specific task. EG. word processors, spreadsheets etc

Back

Escape Sequence Characters

Front


\t

Back

Type

Front

Classes are used to define types.

Back

Polymorphism

Front

Methods of parent and subclasses can have the same name, but offer different functionality.

Back

Variables

Front

Area in computer memory where a value of a particular data type can be stored -declare a variable - allocate memory

Back

object

Front

instance of a class.or an example of that class

Back

Namespaces

Front

provide scope for the names defined within a group. each user defined namespace body is then enclosed in curly brace.

Back

Access Modifiers

Front

public - no restrictions protected- limited to the containing class or classes derived from the containing class internal - limited to current project protected internal - limited to current project or classes derived from class private- limit to containing class

Back

.NET

Front

Not an operating system, resides at a layer between operating system and other applications.

Back

Pseudocode

Front

Algorithim written in near english statements for pseudocode

Back

Comments

Front

Green.// multiline : / and end /

Back

Encapsulation

Front

Combine attributes and behaviours to form a class

Back

Methods

Front

defined inside classes. group program statements. All programs consist of at least one method.

Back

FLOWCHART

Front

OVAL- beginning and end Rectangular- processes Diamond - decision to be made Parallelogram - input and output Flow Line

Back

Method

Front

[modifier] returnType MethodName (parameterlist)

Back

Format Output

Front

Add Dollar signs,percent symbols or commas to serperate digits

Back

Escape Sequence Characters

Front


\t \* \' \" \\ \r- cursor advances to the beginning \b - cursor advances back one position(backspace) \a - alert signal is sounded

Back

Modifiers

Front

indicates how the method or class can be accessed. types: static and access

Back

Main() Method

Front

Entry Point for all Applications where program begins execution execution ends after last statement in main.

Back

parameters

Front

supply unique data to method appear inside parentheses include data type and an identifier parameter refers to items appearing in the heading ARGUMENT for items appearing in the CALL

Back

Software types

Front

System & Application

Back

overloaded methods

Front

multiple methods with same name. but each has different number or type of parameter -write() -writeline()tn

Back

String

Front

type represents a combination of unicode characters

Back

Pre-increment and Postincrement

Front

operators of ++ and -- add or subtract the number one to and from a memory location

Back

Boolean

Front

have a value of true or false

Back

Steps in Program development

Front

1.Analyze 2.design a solution 3. code the solution 4. implement the code 5. test and debug

Back

OBJECT ORIENTED PROGRAMMING

Front

construct complex systems that model real-world entities.facilitate design components

Back

Compiler

Front

Translates instructions into machine readable form.

Back

value types

Front

include nine integral (whole number types),two floating types and the decimal type.

Back

return type

Front

indicates what type of value is returned when method is completed void - no value being returned required for all non-void methods compatible value returned

Back

Class DIagram

Front

Divided into three sections. 1.name of the class 2.data characteristics 3.shows where actions are to be performed

Back

Class

Front

Building Block of object-oriented program. every program must have at least one class classes define a category or type of object and there are named.

Back

Program Statements

Front

e.g Read() and ReadKey() accept one character from the input device .

Back

IMPLEMENT THE CODE

Front

1.source code ( c# visual basic) 2.compiler 2. intermediate code 3.loader ( class library pre-JIT code) 4.just in time compiler (JITer)( class library pre-JIT code) 5.Machine language (native code)( class library pre-JIT code) 6.Execution

Back

Constants

Front

const - forces the functionality of not allowing the value to be changed

Back

Software

Front

consists of programs.Sets of instructions telling the computer exactly what to do

Back

Camel Case

Front

Hungarian notation first letter of identifier lowercase;first letter of subsequent concatenated words capitalized variables and objects

Back

Floating-point

Front

allows you to keep the fractional portion of a data item

Back

static modifier

Front

indicates member belongs to the type itself rather than to a specific object of a class.

Back

Decimal

Front

format is suitable for financial and monetary calculations

Back

Pascal

Front

First Letter of each word capitalized class,method,namespace,properties

Back

Math Class

Front

public static double POW(double,double) double answer = math.sqrt(25);

Back

Abstraction

Front

determine attributes (data) and behaviors (processes on the data) of the entities

Back

Order of Operations

Front

order in which calculations are performed. Parentheses can be added to an expression to alter the order.

Back

Syntax Error

Front

typing error,misspelled name,forget to end a statement with a semicolon

Back

Invoking a method

Front

calling class methods possibly predefined methods

Back

Algorithm

Front

Clear, step-by-step process for solving a problem. must be expressed so completely and so precisely that all details are included.

Back

Run-Time Error

Front

Failing to fully understand the problem, more difficult to detect

Back

Section 2

(3 cards)

Math Class

Front

Abs- absolute value ceiling - returns smallest whole number e.g math.ceiling(88.12) returns value of 89 cos- returns cosine of specified angle exp - returns e raised to specified power floor- returns largest whole number math.floor (88.12) returns 88 POW returns a specified number raised to the power = math.pow (5,3) returns 125 ROUND- returns number nearest specified value including as many decimal places math.round ( 87.982276,4) rreturns 87.9823 SQRT - math.sqrt(25) TAN - returns the tangent of the specified angle measured in radians

Back

OPERATORS

Front

Back

Call Parse ()

Front

Pre defined static method -double.parse -int.parse -char.parse -bool.parse

Back