AP Computer Science DYRT Quiz

Slides:



Advertisements
Similar presentations
User-Defined Functions Like short programs Can operate on their own data Can receive data from callers and return data to callers.
Advertisements

More Recursion: Permutations and Towers of Hanoi COP 3502.
PreAP Computer Science Quiz
The Fundamental Rule for Testing Methods Every method should be tested in a program in which every other method in the testing program has already been.
AP Computer Science DYRT Quiz Key
Object Oriented Design An object combines data and operations on that data (object is an instance of class) data: class variables operations: methods Three.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
Introduction to a Programming Environment
PreAP Computer Science Quiz
PreAP Computer Science Quiz
Introduction to Programming (in C++) Data and statements Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC.
Comp 245 Data Structures Software Engineering. What is Software Engineering? Most students obtain the problem and immediately start coding the solution.
College Board A.P. Computer Science A Topics Program Design - Read and understand a problem's description, purpose, and goals; Apply data abstraction.
PreAP Computer Science Quiz
CS/ENGRD 2110 FALL 2013 Lecture 5: Local vars; Inside-out rule; constructors 1.
CS 106 Introduction to Computer Science I 03 / 19 / 2007 Instructor: Michael Eckmann.
Introduction Algorithms and Conventions The design and analysis of algorithms is the core subject matter of Computer Science. Given a problem, we want.
PreAP Computer Science Quiz
Computer Science Reading Quiz 6.2 (Sections )
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 5: Software Design & Testing; Revision Session.
What does a computer program look like: a general overview.
PreAP Computer Science Review Quiz 08 Key
PreAP Computer Science Quiz Key
Lab 7 Queue ADT. OVERVIEW The queue is one example of a constrained linear data structure. The elements in a queue are ordered from least recently added.
Data Types and Operations On Data Objective To understand what data types are The need to study data types To differentiate between primitive types and.
Advanced Computer Science Lesson 4: Reviewing Loops and Arrays Reading User Input.
Chapter 3 Top-Down Design with Functions Part II J. H. Wang ( 王正豪 ), Ph. D. Assistant Professor Dept. Computer Science and Information Engineering National.
PreAP Computer Science Quiz
AP Computer Science DYRT Quiz Key
CS305j Introduction to Computing Classes II 1 Topic 24 Classes Part II "Object-oriented programming as it emerged in Simula 67 allows software structure.
Take out a piece of paper and PEN. The quiz starts ONE minute after the tardy bell rings. You will have 45 – 90 seconds per question. Determine the output.
PreAP Computer Science Quiz
PreAP Computer Science Quiz Key
AP Computer Science DYRT Quiz
Take out a piece of paper and PEN.
CHAPTER 2 PROBLEM SOLVING USING C++ 1 C++ Programming PEG200/Saidatul Rahah.
PreAP Computer Science Quiz
Midterm preview. double int = 2.0; True / FalseThe following is a syntactically correct variable declaration and assignment statement:
Take out a piece of paper and PEN.
PreAP Computer Science Quiz Take out a piece of paper and PEN. The quiz starts ONE minute after the tardy bell rings. You will have 30 – 60 seconds.
Chapter 2 Principles of Programming and Software Engineering.
Question 01 Return methods always (a)calculate some mathematical formula. (b)display a value. (c)return a value. (d)use numerical values.
COMP Information Hiding and Encapsulation Yi Hong June 03, 2015.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
1 Section 11.4 Java Interfaces – The Implementation Perspective Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Take out a piece of paper and PEN. The quiz starts TWO minutes after the tardy bell rings. You will have 30 seconds per question. Exposure Java 2014 for.
Introduction to Algorithms
AP Java Unit 3 Strings & Arrays.
CS/ENGRD 2110 Spring 2014 Lecture 5: Local vars; Inside-out rule; constructors
CS/ENGRD 2110 Spring 2017 Lecture 5: Local vars; Inside-out rule; constructors
Pre-AP® Computer Science Quiz Key
Pre-AP® Computer Science Quiz
CS/ENGRD 2110 Spring 2016 Lecture 5: Local vars; Inside-out rule; constructors
CSE 1020:Programming by Delegation
Chapter 1: Computer Systems
Take out a piece of paper and PEN.
Introduction to Algorithms
PreAP Computer Science Review Quiz 08
PreAP Computer Science Quiz Key
Take out a piece of paper and PEN.
PreAP Computer Science Quiz
Take out a piece of paper and PEN.
Take out a piece of paper and PEN.
Take out a piece of paper and PEN.
Chapter 2. Problem Solving and Software Engineering
AP Computer Science DYRT Quiz
Take out a piece of paper and PEN.
AP Free Response Strategies
Pre-AP® Computer Science Quiz
Presentation transcript:

AP Computer Science DYRT Quiz 15.01-0 5 Take out a piece of paper and PEN. The quiz starts TWO minutes after the tardy bell rings. You will have 30 seconds per question.

Title the quiz as shown below The quiz starts in ONE minute. Name Period Date Quiz 15.01-05 1. 2. 3. 4. 5. 6. 7. 8. 9 10. EC.

Question 01 Which of these is a fundamental design rule? Write your program is a clear consistent style. Use meaningful, self-documenting identifiers. Create modules for recognizable tasks. Place common purpose module in a class. All of the above

Question 02 What are the three areas of design compromise? speed - reliability - memory reliability - memory - readability memory - speed - reliability speed - memory - readability

Question 03 There can be no compromise in the area of speed. memory. readability. reliability.

Question 04 Program specifications can be simplified to statements placed inside the main method. input - output. input - process - output. providing required algorithms.

Question 05 Top-down approach means general to specific. specific to general. concentrate on the program start only. create an algorithm without concern about program source code.

Question 06 A class encapsulates numerical and string data. the data and actions that process the data. get methods and set methods. constructors and methods.

Question 07 When writing solutions for free response class design questions, you should declare attributes public and methods public. attributes private and methods private. attributes public and methods private. attributes private and methods public.

Question 08 What is true about constructor declarations? Constructors are usually public. Constructors are usually private. Constructors must be public. Constructor must be private.

Question 09 Method design involves considering pre-conditions. considering post-conditions. devising an algorithm. all of the above.

Question 10 Euclid's solution for the GCF is a good example of class design. efficient Java code implementation. a language-independent efficient algorithm. program source code for any computer.

Extra Credit What is computed by the mystery method? public int mystery (int n1, int n2) { int temp = 0; int rem = 0; do rem = n1 % n2; if (rem == 0) temp = n2; else n1 = n2; n2 = rem; } } while (rem != 0); return temp; (A) The mean of n1 and n2 (B) The remainder of n1 and n2 (C) The GCF of n1 and n2 (D) The LCM of n1 and n2