Computer Science Flashcards
Which should be done first when writing a large computer program?
analyze and breakdown the project specifications
What is the definition of an algorithm? (Choose two)
D.
steps to solve a problem
Which of the following expressions is true?
5<6 and 5>2
A good name for a text box that will be used to show an address is:
txtAddress
When class variables are private they can be accessed by:
only methods and functions within the class
The __________ tool is the one we would use to perform an immediate action.
button
Click once on an object to select it, but click twice to enter the code for that object. (T/F)
True
What is the result of the following equation? 11 % 3
2
Which data type would store a value of true or false?
Boolean
Why would you use a sub-program also known as a method or function?
to reuse the same code
Which of the following would LEAST likely be found in a software developer’s job description?
Install cables
Which of the following stores a value that cannot be changed?
constant
Which of the following expression has the possibility of never iterating (looping)?
while
for
Which of the following is a post test loop?
do - while
A sub-program (function or method) is called by its __________.
Name
A byte is:
8 bits
An error that causes incorrect output is a:
run-time error
Which of the following is a pre-test loop?
while
A(n) __________ is a value that can be referenced only in the sub-program where it is declared.
local variable
How many bytes does it take to make a single character?
1
What is coding?
typing a program in a computer language
An error caused by misspelling of a keyword is a:
syntax error
Which of the following is a valid assignment statement?
answer = 5
Sub-Programs also called methods, constants, and variables are:
Identifiers
Convert this binary number 0010 0101, to decimal, base 10?
37
Program requirements are defined in:
specifications
The process of converting source code into machine code is:
compiling
What is the output of the segment of code below?
(.3 points)
Extra Content
int iNum = 10;
iNum - iNum *2;
Console.WriteLine(“num =” + (iNum));
num = -10
What is a Loop within a Loop or an If within an I
Nested
Fixing an error in a program is known as:
debugging
Which of the following is NOT a career field in computer programming/software design?
Network Administrator
Which data type could store a value with decimal places?
double
Which is the assignment operator?
=
Designing a computer program from general to specific is called:
top down design
Which of the following is a valid identifier name (variable)? (Choose two)
A.
a1
D.
milesDriven1
What is the result of 13 divided by 5 using integer division?
2
Which expression is false?
5<2 or 5>=8
Changing the background color of the form is an example of a(n):
Property
What is the fundamental number-system used by computers to store information?
Binary (base 2)
What is the code to exit your Windows Form Application?
this.Close();