Computer Science Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Which should be done first when writing a large computer program?

A

analyze and breakdown the project specifications

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

What is the definition of an algorithm? (Choose two)

A

D.

steps to solve a problem

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

Which of the following expressions is true?

A

5<6 and 5>2

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

A good name for a text box that will be used to show an address is:

A

txtAddress

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

When class variables are private they can be accessed by:

A

only methods and functions within the class

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

The __________ tool is the one we would use to perform an immediate action.

A

button

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

Click once on an object to select it, but click twice to enter the code for that object. (T/F)

A

True

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

What is the result of the following equation? 11 % 3

A

2

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

Which data type would store a value of true or false?

A

Boolean

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

Why would you use a sub-program also known as a method or function?

A

to reuse the same code

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

Which of the following would LEAST likely be found in a software developer’s job description?

A

Install cables

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

Which of the following stores a value that cannot be changed?

A

constant

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

Which of the following expression has the possibility of never iterating (looping)?

A

while

for

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

Which of the following is a post test loop?

A

do - while

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

A sub-program (function or method) is called by its __________.

A

Name

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

A byte is:

A

8 bits

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

An error that causes incorrect output is a:

A

run-time error

18
Q

Which of the following is a pre-test loop?

A

while

19
Q

A(n) __________ is a value that can be referenced only in the sub-program where it is declared.

A

local variable

20
Q

How many bytes does it take to make a single character?

A

1

21
Q

What is coding?

A

typing a program in a computer language

22
Q

An error caused by misspelling of a keyword is a:

A

syntax error

23
Q

Which of the following is a valid assignment statement?

A

answer = 5

24
Q

Sub-Programs also called methods, constants, and variables are:

A

Identifiers

25
Q

Convert this binary number 0010 0101, to decimal, base 10?

A

37

26
Q

Program requirements are defined in:

A

specifications

27
Q

The process of converting source code into machine code is:

A

compiling

28
Q

What is the output of the segment of code below?
(.3 points)

Extra Content
int iNum = 10;
iNum - iNum *2;
Console.WriteLine(“num =” + (iNum));

A

num = -10

29
Q

What is a Loop within a Loop or an If within an I

A

Nested

30
Q

Fixing an error in a program is known as:

A

debugging

31
Q

Which of the following is NOT a career field in computer programming/software design?

A

Network Administrator

32
Q

Which data type could store a value with decimal places?

A

double

33
Q

Which is the assignment operator?

A

=

34
Q

Designing a computer program from general to specific is called:

A

top down design

35
Q

Which of the following is a valid identifier name (variable)? (Choose two)

A

A.
a1

D.
milesDriven1

36
Q

What is the result of 13 divided by 5 using integer division?

A

2

37
Q

Which expression is false?

A

5<2 or 5>=8

38
Q

Changing the background color of the form is an example of a(n):

A

Property

39
Q

What is the fundamental number-system used by computers to store information?

A

Binary (base 2)

40
Q

What is the code to exit your Windows Form Application?

A

this.Close();