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)

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.

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 “/”.

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.

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
Read() (returns an int) (T/F)
T
26
ReadLine() (returns a string): (T/F)
T
27
A software used by a developer so that they can easily code in a certain programming language
IDE
28
-a set of symbols -represent objects -can be processed -manipulated by manual (human)
DATA
29
-a processed data -Characterized as useful in -making decisions
INFORMATION
30
Logical expressions and relational expressions are the same in the sense that they both represent true or false logical conditions. (T/F)
T
31
used in connection with true (.T.) or false (.F.) relational expressions that compare the values of some data
LOGICAL OPERATORS
32
evaluate Boolean expressions and return a Boolean Value.
Logical Operators
33
consists of one or more relational expressions and logical operators, will also evaluate to either true or false.
logical expression
34
reverses the logical value of a relational expression
NOT.
35
are used to combine two or more relational expressions into a single true or false logical condition
.AND. and .OR.
36
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.
CONDITIONAL STATEMENTS
37
Handles 1 conditional expression, either does SOMETHING or NOTHING
IF Statement
38
Handles 2 conditional expression, either does the first code block or the second code block.
ELSE Statement
39
Handles 3 or more conditional expression, the possibility of this statements are limitless it will run a certain code block based on the condition.
ELSE IF Statement