Community Baptist Church Community Christian Academy
Inside Community
Home
Computer Programming Final
2016 Computer Programming Final Exam
2016 - Computer Programming Final Exam
*
Indicates required field
Name
*
First
Last
Remember, you may use your tablet to program in BASIC and use
www.w3schools.com
as a reference for HTML programming.
Question 1: We have been programming in the BASIC language. For what does BASIC stand?
*
Question 2: We have also learned to create web pages using HTML. For what does HTML stand?
*
Question 3: Which term describes the letter X in this line from a BASIC program: X = 2
*
Constant
Variable
unknown
none of the above
Question 4: If I wish to display something on the screen in a BASIC program, Which BASIC statement would I use?
*
DISPLAY
PRINT
SHOW
none of the above
Question 5: Any time you use a DO statement in a BASIC program, what other statement must go with it?
*
UNTIL
UNDO
STOP
none of the above
Question 6: In BASIC, a variable named S$ would represent:
*
numeric variable
text variable
no variable
none of the above
Question 7: In Basic, a variable named S would represent:
*
Numeric variable
text variable
no variable
none of the above
Question 8: What would the result be, if you ran a basic program that looked like this:
For i = 1 to 10
PRINT i
Next i
Question 8 result:
*
Question 9: What would the result be, if you ran a basic program that looked like this:
For i = 1 to 10
if i = 5 then goto skip
PRINT i
skip:
Next i
Question 9 result:
*
Question 10: What would the result be, if you ran a basic program that looked like this:
input "What is your name:" , name$
Question 10 result:
*
Question 11: If I want to write a piece of text into a text file called file.txt, overwriting anything in the file, I first must open the file using:
*
TEXT.OPEN W, FN1, "file.txt"
TEXT.OPEN R, FN1, "file.txt"
TEXT.OPEN A, FN1, "file.txt"
none of the above
Once I open the text file (as in Question 11), I would write the text using:
*
TEXT.WRITELN FN1, "text"
TEXT.WRITELN, A, "text"
TEXT.WRITELN, W, 'text"
none of the above
REM this is not going to do anything
Question 13: What is the statement above called in BASIC?
*
Question 14: In BASIC, what do the letters "EOF" stand for?
*
Question 15: If I want a BASIC program to tell me the year, month, day, hour, minute, and second, what statement would I use?
*
TIME
DATE
WHEN
none of the above
Question 16: In BASIC, any statement that ends with : is called a
*
Loop
next
label
none of the above
Question 17: Assuming the image below in located here: http://ccacougars.net/uploads/3/4/8/4/34843587/1427121676.jpg enter the html statement to display it on a web page with a width of 640px and a height of 200px?
*
Use the HTML code below to answer questions 18 - 20
<form>
First name:<br>
<input type="text" name="firstname"><br>
Last name:<br>
<input type="text" name="lastname">
</form>
If the above code produces the output below:
To make to the HTML code to produce this output:
Question 18: What changes whould you make?
*
Question 19: What does the br stand for in the example above?
*
Question 20: The input type in the example is text. Name one other kind of input type.
*
Submit Exam