Review Test 3

advertisement
Review Test 3
CS 101 Spring 2015
If the rabbit is facing the door
rabbit.move (two meters)
else
rabbit.turntoface(door)
This is an example of which control structure?
1.
2.
3.
4.
A loop / repetition
A branch / selection
A sequence
A module
25%
25%
25%
25%
CPUs understand
1.
2.
3.
4.
English
25%
High level languages
Machine language 25%
pseudocode
25%
25%
The “or” operator in a query
1. Will give more results than an “and”
25%
operator
25%
2. Is expressed by putting different
criteria
on different lines in the query table
25%
3. Will give a hit only if both criteria are
25%
satisfied
4. None of the answers
Referential integrity has to do with
A. DBMS enforcing relationships between
tables
25%
25%
B. A DNS server translating between
IP
numbers and domain names
25%
C. HTML code being interpreted by a
browser
25%
D. A translator changing high-level code to
machine code
A(n) ____ translates high-level
language to machine language.
1.
2.
3.
4.
Editor
Debugger
Syntax checker
compiler
25%
25%
25%
25%
A syntax error happens when
A. The program tries to divide by zero
25%
B. The programmer misspells a keyword in
25%
the language
25% by 10 when
C. The programmer multiplied
they mean to multiply by 100
25%
D. The program tries to open a file that
does not exist
In Alice, ___ would be a method.
1.
2.
3.
4.
5.
A penguin
Penguin.talk
Penguin.isbelow
A mouse click
None of the above
20%
20%
20%
20%
20%
An algorithm is
1. a low-level language
translator
25%
25%
2. a set of instructions
to solve a problem
25%
3. a compiler
25%
4. something only programmers use
The HTML tag <a href=
1. creates a table
20%
20%
2. starts a hyperlink
20%
3. ends with a </a>
20%
20%
4. has a URL in it
5. all the answers but #1
A loop in a program is
A. An error and has to be fixed
25%
B. A data structure
25%
C. A control structure
25%
D. A selection structure
25%
A browser is made to interpret
A. Binary codes and show the calculations
25%
on the screen
25% on the
B. HTML and show a web page
screen
25%
C. ASCII codes and show the Unicode
25%
D. A programming language like Java and
show the result
An HTML tag <li> is used
A. To draw a horizontal line across the
25%
screen
B. To start a new list item in25%
a list
25%
C. To start a new row in a table
25%
D. To make a word underlined
The HTML tag <title>
A. Creates a big header at the top of the
25%
web page
25%
B. Puts a message in the title
bar of the
browser window
25%
C. Gives the default value for the
25%
bookmark text for that page
D. B and C
The World Wide Web was created by
A. Microsoft
25%
B. Oracle
25%
C. ICANN
25%
D. Tim Berners-Lee
25%
Download