Gaddis: Starting Out with Alice Test Bank Chapter Two 1 Chapter Two

Similar documents
Gaddis: Starting Out with Alice Test Bank Chapter One 1 Chapter One

4. The is a diagram that graphically depicts the steps that take place in a program. a. Program b. Flowchart c. Algorithm d. Code e.

1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical d.

Chapter 2: Input, Processing, and Output

Choose the best answer from each of the following; answer A for True, B for False for any T/F questions.

potions. The troll doubles in size.

C++ Programming Language Lecture 2 Problem Analysis and Solution Representation

IT Introduction to Programming for I.T. Midterm Exam #1 - Prof. Reed Spring 2008

Outline. Program development cycle. Algorithms development and representation. Examples.

Decision Structures. Chapter 4

Variables and Functions Chapter 3

CompuScholar, Inc. Alignment to Nevada "Computer Science" Course Standards

Array Basics: Outline. Creating and Accessing Arrays. Creating and Accessing Arrays. Arrays (Savitch, Chapter 7)

Lec 3. Compilers, Debugging, Hello World, and Variables

Identifiers. Identifiers are the words a programmer uses in a program Some identifiers are already defined. Some are made up by the programmer:

Welcome to Starting Out with Programming Logic and Design, Third Edition.

SNS COLLEGE OF ENGINEERING,

PROGRAMMING STYLE. Fundamentals of Computer Science I

4. Inputting data or messages to a function is called passing data to the function.

A Quick Review of Chapter 1

Review Questions FL Chapter 3: Working With Symbols and Interactivity

Chapter 2 Welcome App

Getting Started with Java Using Alice. 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

1) What is the first step of the system development life cycle (SDLC)? A) Design B) Analysis C) Problem and Opportunity Identification D) Development

Programming with Java

Flowchart & Algorithm

S/W Programming & Languages

CMSC 150 LECTURE 1 INTRODUCTION TO COURSE COMPUTER SCIENCE HELLO WORLD

Higher Computing Science Software Design and Development - Programming Summary Notes

CSI32 Object-Oriented Programming

DE Developing Windows Applications with Microsoft Visual Studio 2010

DEVELOPING WINDOWS APPLICATIONS WITH MICROSOFT VISUAL STUDIO 2010

ITC213: STRUCTURED PROGRAMMING. Bhaskar Shrestha National College of Computer Studies Tribhuvan University

Appendix A: Objectives and Courseware Locations

Test Bank for An Object Oriented Approach to Programming Logic and Design 4th Edition by Joyce Farrell

1 Introduction to MARS

World-level Classes and Methods. Chapter 6

Chapter 8 Structuring System Logic Requirements

Dr. Iyad Jafar. Adapted from the publisher slides

Perl Basics. Structure, Style, and Documentation

3 Programming. Jalal Kawash Mandatory: Chapter 5 Section 5.5 Jalal s resources: How to movies and example programs available at:

Introduction to Computers and Java

SME 1013 Programming for Engineers

Getting Started with Java Using Alice. 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Chapter 1. Introduction to Computers and Java Objects. Background information. » important regardless of programming language. Introduction to Java

3. The first step in the planning phase of a programming solution is to sketch the user interface.

BIL101E: Introduction to Computers and Information systems Lecture 8

The Alice Scene Editor

CSE 230 Computer Science II (Data Structure) Introduction

Peeking into Computer Science Alice Lab Manual. Lab Manual. Programming

Chapter 3: Modules. Starting Out with Programming Logic & Design. Second Edition. by Tony Gaddis

Class-level Methods. Chapter 6 part 1

Chapter 2: Algorithm Discovery and Design. Invitation to Computer Science, C++ Version, Fourth Edition

LECTURE 3 ADMINISTRATION SECTION -A

Developing Windows Applications with Microsoft Visual Studio 2010

STUDENT OUTLINE. Lesson 8: Structured Programming, Control Structures, if-else Statements, Pseudocode

3. Except for strings, double quotes, identifiers, and keywords, C++ ignores all white space.

Chapter 1 INTRODUCTION TO COMPUTER AND PROGRAMMING

Microsoft Visual Basic 2005: Reloaded

Chapter 2. Designing a Program. Input, Processing, and Output Fall 2016, CSUS. Chapter 2.1

Introduction to Alice. Computer Science for High School (CS4HS)

Objectives. Order (sort) the elements of an array Search an array for a particular item Define, use multidimensional array

Low-Level Languages. Computer Programs and Programming Languages

Introduction to Programming

Computer and Programming: Lab 1

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

Chapter 1. Introduction to Programming and Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of

Chapter 2 Author Notes

VP-UML Quick Start. Last update: October 15, Copyright Visual Paradigm International Ltd.

Lesson 1. Introduction to Programming OBJECTIVES

Classes, Objects, and World-level Methods. Alice

gg--c}/-/j) r x Revision: New: COBOL I TWO Date: Author: Date SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE. MARIE, ONTARIO

Computer Components. Software{ User Programs. Operating System. Hardware

Developing Windows Applications with Microsoft Visual Studio 2010 (MS 10262)

SAP Debug Tips Switching between the Classic Debugger and New Debugger

SKILL AREA 304: Review Programming Language Concept. Computer Programming (YPG)

Chapter 3 Syntax, Errors, and Debugging. Fundamentals of Java

Definite Loops. Computer Science S-111 Harvard University David G. Sullivan, Ph.D. Using a Variable for Counting

Algorithms and Flowcharts

Full file at

Visual Paradigm Quick Start

Methods & Classes in Alice

Introduction to Computers and Java

Business Intelligence and Reporting Tools

Instructor: SIR MUHAMMAD NAVEED Created by: ARSLAN AHMED SHAAD ( ) MUHAMMAD BILAL ( ) ISIT:

Introduction to Java Applications

Create a Flowchart in PowerPoint

9/23/2013. Chapter 2. Objectives. Introduction. Objectives (continued) Representing Algorithms. Representing Algorithms

Programming Logic And Design Second Edition Introductory

Java How to Program, 10/e. Copyright by Pearson Education, Inc. All Rights Reserved.

Chapter 1: Why Program? Computers and Programming. Why Program?

ALICE: An introduction to progamming

CS2900 Introductory Programming with Python and C++ Kevin Squire LtCol Joel Young Fall 2007

Computer Science, a Mac, and You. Kevin Cathey Junior, Computer Science

CS 351 Design of Large Programs Coding Standards


Technical Questions. Q 1) What are the key features in C programming language?

Name: Class: Date: 2. Today, a bug refers to any sort of problem in the design and operation of a program.

Java Coding style guide 1. Java. Coding Style Guide. (July 2015)

CA Productivity Accelerator 12.1 and Later

Transcription:

Gaddis: Starting Out with Alice Test Bank Chapter Two 1 Chapter Two MULTIPLE CHOICE 1. What is the name of the default world method that automatically runs when an Alice program is executed? a. the first method b. main c. my first method d. start 2. Which of the following is not a primitive method? a. Move b. Turn c. Roll d. Resize ANS: E 3. When creating a new Alice world, which of the following should be done prior to the rest? a. Writing new methods for an object b. Setting an object s properties c. Adding one or more objects d. Running the program e. Clicking the Restart button 4. When you call the walk method of the Walking People class, what must be specified as an argument? a. distance b. speed c. duration d. style ANS: A 5. The foottap method associated with the Frog class is what type of method? a. Primitive method b. Custom method c. Unique method d. World-level method ANS: B 6. Which of the following identifiers utilizes the camelcase naming convention? a. MakeCake b. goforit

Gaddis: Starting Out with Alice Test Bank Chapter Two 2 c. Runspotrun d. tryagain ANS: B 7. Which of the following is the first step in the program development cycle: a. Write the methods b. Test the methods c. Design the program d. Debug the methods 8. Pseudocode is written in the following language: a. Basic b. Machine language c. Java d. English 9. Which Alice structure is used to have two objects move towards each at the same time? a. Do in order b. Do together c. Do sequentially d. Do now ANS: B 10. Which Alice structure is used to have one object move before another object? a. Do in order b. Do together c. Do sequentially d. Do now ANS: A 11. The say method associated with the Frog class is what type of method? a. Primitive method b. Custom method c. Unique method d. World-level method ANS: A 12. Which type of error will not prevent a program from running, but will produce incorrect results? a. Syntax error b. Runtime error c. Logical error

Gaddis: Starting Out with Alice Test Bank Chapter Two 3 d. Pseudoerror 13. The my first world method is what type of method? a. Primitive method b. Custom method c. Unique method d. World-level method 14. How are method calls added to a method in the Method Editor? a. By dragging the method from the Object Tree. b. By typing the method call. c. By dragging the method from the Method Window. d. By dragging the method tile from the Details Panel to the Method Editor. 15. Which of the following structures are used to add explanatory notes into a method? a. Do in order b. Do together c. Note d. Comment 16. Which of the following is a primitive method? a. Run b. Jump c. Think d. Play TRUE/FALSE 1. True/False: Only certain Alice objects have all of the primitive methods. 2. True/False: An event is a set of instructions that causes some action to take place. 3. True/False: All classes have custom methods.

Gaddis: Starting Out with Alice Test Bank Chapter Two 4 4. True/False: Using the camelcase naming convention is a good way to have easy-to-read, meaningful identifiers. 5. True/False: A custom method is a method that only objects of a specific class have. 6. True/False: The move method can be used to change the direction an object is facing. 7. True/False: When you export a video in Alice, it will be created in the same location where you saved the Alice world. 8. True/False: The resize method can be used to change the size of an object. 9. True/False: The orient to method and the various turn methods can all be used to change the direction an object is facing. 10. True/False: The jump method is a primitive method. 11. True/False: The Do together structure is used to execute a set of instructions sequentially. 12. True/False: The comment structure is used to improve the readability of a program. 13. True/False: Pseudocode and flowcharting are tools used by programs during debugging. 14. True/False: Inside the People collection there is another collection named Walking People. FILL IN THE BLANK 1. World. is the default world method that automatically runs when an Alice program is executed? ANS: my first method

Gaddis: Starting Out with Alice Test Bank Chapter Two 5 2. The built-in methods that are associated with every object are called methods. ANS: primitive 3. The programming terminology for executing a method is a method. ANS: calling 4. Additional information to a called method is provided via one or more. ANS: arguments 5. The method is used to change the location of an object. ANS: move 6. The method is used to change the size of an object. ANS: resize 7. The method is used to change the direction an object is facing. ANS: turn 8. Each of the classes has a custom method walk. ANS: Walking people 9. The method is used to turn an object so it faces in the same direction as another object. ANS: orient to 10. Method calls are added to a method by the method tile from the Details Panel to the Method Editor. ANS: dragging 11. A(n) method is unique to a specific class. ANS: custom 12. Pseudocode is written in the language. ANS: English 13. and are two tools use by programmers to design a method. ANS: pseudocode, flowcharting 14. A(n) error will not prevent the program from running, but will produce incorrect results.

Gaddis: Starting Out with Alice Test Bank Chapter Two 6 ANS: logical 15. The tile is used to insert explanatory notes into a method. ANS: comment 16. The structure is used to execute a set of instructions simultaneously. o together 17. The structure is used to execute a set of instructions sequentially. o in order 18. An Alice world can be exported as a(n),which makes it easy to share with others on the Internet. ANS: video