Computer Science Mid Mid Term Review

Computer Science Mid Mid Term Review

Print FlashCard
Question Answers
In the Fish/Gumdrop project we used which operator to determine which gumdrop is closest to the fish? <
What allows you to create a group of items of the same data type? Lists
What allows you to reuse code without having to repeat it? Method
What does HTML stand for? Hyper Text Markup Language
What is the correct HTML element for inserting a line break? br
These < > are called what in HTML? Wickets
What is a named storage location in the computer's memory called? Variable
In computer programs, simple decisions are broken into the two options, what are they? True False
In all of the methods we wrote, the instructions have executed in order, one after the other. What is thatknown as? Sequential Programming
If you execute one set of commands for given circumstances, and another set of commands for differentcircumstances, it is accomplished using what? Decision Structure
To allow for more flexibility, Alice, along with other programming languages, provide what to compare therelationship between two values? Relational Operators
In order to combine multiple conditions into a single True or False result, we use what type of operators? Logical
What is a detailed yet readable description of what a computer program or algorithm must do called? Pseudo Code
What is something that occurs while an Alice program is running? For example, the user might click themouse, or press a key on the keyboard Event
The process of responding to an event is commonly called what? Handling the Event
Most event tiles require _____________________, such as the method that should run in response to theevent. Arguments
Alice provides a function called__________, which is part of the world object that generates a randomnumber in a specified range. Random Number
Alice is a 3D programming environment that is an introduction to object oriented programming. (t/f) T
All Alice programs start with "world.my first method" (t/f) T
This is your local drive found on the school network. H Drive
How (in general) do you join strings together? A joined with B
HTML comments start with <!– and end with –> (t/f) T
In Alice, there are four data types, what are they? Number, Object, Boolean, String
In Alice, there are primitive functions associated with all objects, including the world object (t/f) T
What data type do you use for 1 or more letters? String
What data type do you use for a character? Object
What data type do you use for positive, negative or decimal numbers? Number
What data type do you use for yes/no or true/false questions? Boolean
What is the correct HTML element for the largest heading: h1
What is the difference between a method and a function? Functions return a value, while methods do not
This tag defines a paragraph. Browsers automatically add some space (margin) before and after eachelement. p
This HTML tag defines the main content of the HTML document or the section of the HTML documentthat will be directly visible on your web page. body
Each object has six directions, which are also relative to the object, what are they? Forward, Backward, Right, Left, Up, Down
This is a type of repetition structure. Counted Loop
When you select this option, the loop will repeat without ending until the world is stopped by the user. Infinite Loop
What is the html code to insert an image link in your website? img
What HTML code creates a horizontal line? hr
Which HTML code creates a list? li
Where would you find the math functions in Alice? World Functions
In Alice, where would you find “ask user for a number” World Functions
In Alice, where would you find ________’s width Object Functions
In Alice, where would you go to change an objects opacity? Object Properties
In Alice, where would you go to change the vehicle of an object? Object Properties
In Alice, why would you set a dummy camera object? To return the camera to it's original position
A method that executes in response to an event is commonly referred to as _______________. Event Handler
In Alice you can view the objects in which two different ways? Single and Quad

Leave a Reply

Your email address will not be published. Required fields are marked *