Computer Science Flashcards
(40 cards)
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