Comp. Programming Flashcards

1
Q

is the art of process and the science of creating/writing programs.

A

Programming

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

Programming is the art of process and the science of creating/writing programs.

A

Programming

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

is a tool that allows programmers to write commands or programs that can easily be understood by a person and translated into codes that are machine-readable.

A

A programming language

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

DATA
|
|
v
?
———-
?
|
|
v
?
———-
?

A

DATA
|
|
v
PROCESS
———-
COMPUTER PROGRAM
|
|
v
OUTPUT
———-
INFORMATION

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

Device a step-by-step process called an __________ that will result in a correct solution to the problem.

A

algorithm

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

An algorithm could be in a form of a pictorial representation called _________ or in a form of sentences called ___________.

A

flowchart
pseudocode

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

is one of many .NET programming languages. It is object-oriented and allows you to build reusable components for a wide variety of application types.

A

C#

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

Microsoft introduced C# on _________ and it became a v1.0 product on ______________

A

June 26th, 2000
Feb 13th 2002.

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

is an evolution of the C and C++ family of languages.

A

C#

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

indicates that you are referencing a specific namespace (for example, System namespace).

A

namespace declaration

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

contain groups of code that can be called upon by C# programs

A

Namespaces

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

contains the data and method definitions that your program uses to execute.

A

class declaration

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

By default, the ________ should be the same as the filename of the program.

A

classname

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

is a named block of code introduced by a method declaration (for example, static void Main(), which we would use throughout the course) and followed by zero or more statements within curly braces.

A

A method

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

contains descriptions to make your program more readable and understandable. It is ignored and are not displayed when your program runs.

A

Comments

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

C# is case-sensitive.

(T/F)

A

T

17
Q

All statements should end with a “.”
(T/F)

A

F - “;”

18
Q

Classes and methods begin with “{“, left curly brace, and end with a “}”, right curly brace.

A

T

19
Q

In writing a single-line comment, you can marked it with “//”. Otherwise, if you wish to span multiple lines with a comment, begin with “/” and end with “/”.

A

T

20
Q

Write the syntax of C#

A

namespace declaration;
class classname
{
static void Main()
{
program statements;
}
}

21
Q

a method displays the output but does not provide a new line character.

A

Write()

22
Q

a method displays the output and also provides a new line character at the end of the string, This would set a new line for the next output.

A

WriteLine()

23
Q

reads a single line from the standard input stream or the command line.

A

Console.Readline()

24
Q

reads only one single character from the standard input stream.

A

Console.Read()

25
Q

Read() (returns an int)
(T/F)

A

T

26
Q

ReadLine() (returns a string):
(T/F)

A

T

27
Q

A software used by a developer so that they can easily code in a certain programming language

A

IDE

28
Q

-a set of symbols
-represent objects
-can be processed
-manipulated by manual (human)

A

DATA

29
Q

-a processed data
-Characterized as useful in -making decisions

A

INFORMATION

30
Q

Logical expressions and relational expressions are the same in the sense that they both represent true or false logical conditions.
(T/F)

A

T

31
Q

used in connection with true (.T.) or false (.F.) relational expressions that compare the values of some data

A

LOGICAL OPERATORS

32
Q

evaluate Boolean expressions and return a Boolean Value.

A

Logical Operators

33
Q

consists of one or more relational expressions and logical operators, will also evaluate to either true or false.

A

logical expression

34
Q

reverses the logical value of a relational expression

A

NOT.

35
Q

are used to combine two or more relational expressions into a single true or false logical condition

A

.AND. and .OR.

36
Q

Allows a program to take action based on the given condition. Typically, it compares two values so that our program can decide what action should be taken.

A

CONDITIONAL STATEMENTS

37
Q

Handles 1 conditional expression, either does SOMETHING or NOTHING

A

IF Statement

38
Q

Handles 2 conditional expression, either does the first code block or the second code block.

A

ELSE Statement

39
Q

Handles 3 or more conditional expression, the possibility of this statements are limitless it will run a certain code block based on the condition.

A

ELSE IF Statement