170 likes | 268 Views
Review Test 3. CS 101 Spring 2014. If the rabbit is facing the door rabbit.move (two meters) else rabbit.turntoface (door) This is an example of which control structure?. A loop / repetition A branch / selection A sequence A module. CPUs understand. English High level languages
E N D
Review Test 3 CS 101 Spring 2014
If the rabbit is facing the doorrabbit.move (two meters)elserabbit.turntoface(door)This is an example of which control structure? • A loop / repetition • A branch / selection • A sequence • A module
CPUs understand • English • High level languages • Machine language • pseudocode
The “or” operator in a query • Will give more results than an “and” operator • Is expressed by putting different criteria on different lines in the query table • Will give a hit only if both criteria are satisfied • None of the answers
A(n) ____ translates high-level language to machine language. • Editor • Debugger • Syntax checker • compiler
Third generation programming languages • Are obsolete, replaced by fourth generation languages • Are assembly languages • Include languages like Java, Basic and C. • Are used mainly to program games
A syntax error happens when • The program tries to divide by zero • The programmer misspells a keyword in the language • The programmer multiplied by 10 when they mean to multiply by 100 • The program tries to open a file that does not exist
In Alice, ___ would be a method. • A penguin • Penguin.talk • Penguin.isbelow • A mouse click • None of the above
An algorithm is • a low-level language translator • a set of instructions to solve a problem • a compiler • something only programmers use
The HTML tag <a href= • creates a table • starts a hyperlink • ends with a </a> • has a URL in it • all the answers but #1
A loop in a program is • An error and has to be fixed • A data structure • A control structure • A selection structure
A browser is made to interpret • Binary codes and show the calculations on the screen • HTML and show a web page on the screen • ASCII codes and show the Unicode • A programming language like Java and show the result
If you have an asymmetric Internet connection • You need to get it fixed before it gets worse • You have more bandwidth uploading than downloading • You have the same amount of bandwidth in both directions • None of the answers is right
An HTML tag <li> is used • To draw a horizontal line across the screen • To start a new list item in a list • To start a new row in a table • To make a word underlined
The HTML tag <title> • Creates a big header at the top of the web page • Puts a message in the title bar of the browser window • Gives the default value for the bookmark text for that page • B and C
The World Wide Web was created by • Microsoft • Oracle • ICANN • Tim Berners-Lee
The benefits of cloud computing include: • Portability • Scalability • Cost saving • Maintenance free • All of these answers