Review Session Biggest discrepancy questions

Slides:



Advertisements
Similar presentations
Chapter 1 Object-Oriented Concepts. A class consists of variables called fields together with functions called methods that act on those fields.
Advertisements

Chapter 2: Using Objects Part 1. To learn about variables To understand the concepts of classes and objects To be able to call methods To learn about.
Chapter 3 Syntax, Errors, and Debugging
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Chapter 10 Introduction to Arrays
Classes and Objects: Recap A typical Java program creates many objects which interact with one another by sending messages. Through the objects interactions,
George Blank University Lecturer. CS 602 Java and the Web Object Oriented Software Development Using Java Chapter 4.
10-Jun-15 Just Enough Java. Variables A variable is a “box” that holds data Every variable has a name Examples: name, age, address, isMarried Variables.
Road Map Introduction to object oriented programming. Classes
Classes and Objects  A typical Java program creates many objects which interact with one another by sending messages. Through the objects interactions,
JavaScript, Third Edition
CSC 8310 Programming Languages Meeting 2 September 2/3, 2014.
Java Programming, 2E Introductory Concepts and Techniques Chapter 2 Creating a Java Application and Applet.
Java Programming, 3e Concepts and Techniques Chapter 2 - Part 2 Creating a Java Application and Applet.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 62 – Manipulating Data Using Methods – Day 1.
Programming in Java Unit 2. Class and variable declaration A class is best thought of as a template from which objects are created. You can create many.
Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java.
Interpretation Environments and Evaluation. CS 354 Spring Translation Stages Lexical analysis (scanning) Parsing –Recognizing –Building parse tree.
More on Hierarchies 1. When an object of a subclass is instantiated, is memory allocated for only the data members of the subclass or also for the members.
Using Data Within a Program Chapter 2.  Classes  Methods  Statements  Modifiers  Identifiers.
Chapter 2 Using Objects. Types A type defines a set of values and the operations that can be carried out on the values Examples: 13 has type int "Hello,
Java™ How to Program, 10/e © Copyright by Pearson Education, Inc. All Rights Reserved.
1 Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Chapter 6 Introduction to Defining Classes. Objectives: Design and implement a simple class from user requirements. Organize a program in terms of a view.
Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java.
AP Computer Science edition Review 1 ArrayListsWhile loopsString MethodsMethodsErrors
Chapter 2 Input, Variables and Data Types. JAVA Input JAVA input is not straightforward and is different depending on the JAVA environment that you are.
Creating a Java Application and Applet
Announcements Assignment 1 due Wednesday at 11:59PM Quiz 1 on Thursday 1.
1 C# - Inheritance and Polymorphism. 2 1.Inheritance 2.Implementing Inheritance in C# 3.Constructor calls in Inheritance 4.Protected Access Modifier 5.The.
© 2006 Pearson Addison-Wesley. All rights reserved 1-1 Chapter 1 Review of Java Fundamentals.
Slide 1 Chapter 3 Variables  A variable is a name for a value stored in memory.  Variables are used in programs so that values can be represented with.
Java Programming: Guided Learning with Early Objects Chapter 9 Inheritance and Polymorphism.
Chapter VII: Arrays.
Modern Programming Tools And Techniques-I
A variable is a name for a value stored in memory.
Topics Designing a Program Input, Processing, and Output
Chapter 2 Basic Computation
Chapter 3 Syntax, Errors, and Debugging
Chapter 13: Pointers, Classes, Virtual Functions, and Abstract Classes
Yanal Alahmad Java Workshop Yanal Alahmad
Java Primer 1: Types, Classes and Operators
University of Central Florida COP 3330 Object Oriented Programming
Testing and Debugging.
Chapter 3: Using Methods, Classes, and Objects
Generics, Lambdas, Reflections
Java Programming: Guided Learning with Early Objects
Java Review: Reference Types
Inheritance "Question: What is the object oriented way of getting rich? Answer: Inheritance.“ “Inheritance is new code that reuses old code. Polymorphism.
– Introduction to Object Technology
Variables and Arithmetic Operations
IDENTIFIERS CSC 111.
Chapter 3 Introduction to Classes, Objects Methods and Strings
Java Programming Language
More About Data Types & Functions
Classes, Constructors, etc., in C++
User-Defined Classes and ADTs
Building Java Programs
Chapter 8 Classes User-Defined Classes and ADTs
Topics Graphical User Interfaces Using the tkinter Module
Introduction to Data Structure
Topics Designing a Program Input, Processing, and Output
Arrays October 6, 2006 ComS 207: Programming I (in Java)
Topics Designing a Program Input, Processing, and Output
Object Oriented Programming in java
Course Overview PART I: overview material PART II: inside a compiler
CS 112 Programming 2 Lecture 02 Abstract Classes & Interfaces (2)
Java: Variables, Input and Arrays
Just Enough Java 17-May-19.
8.1 Tree Terminology and Applications
Presentation transcript:

Review Session Biggest discrepancy questions (Top 27% scored well, bottom 27% scored poorly)

Scanning Quiz Mean 84% Median 86% Std @10%

P3 Q2 Whole Group: 52% Upper 27%*: 82% Lower 27%*: 21% Q: A string scanned by a scanner is a concatenation of all the tokens detected by the scanner. *The upper 27% and the lower 27% refer to scores on this test, I will be using this metric as it shows a divide in understanding, not just a difficult question. If you scored better than 73% of your peers you fall into the Upper 27% category, if you scored poorly you fall into the Lower 27% and will hopefully learn a lot from this review False

P3 Q1 Whole Group: 68% Upper 27%: 85% Lower 27%: 39% Q: A token produced by scanning a string can have non consecutive characters of the string. False

P3 Q7 Whole Group: 75% Upper 27%: 100% Lower 27%: 52% Q: Which is true: The character ‘a’ and ‘0’ cannot be compared in Java The character ‘a’ and ‘0’ can be compared in Java but it is not good style to make this comparison. The character ‘a’ and ‘0’ can be compared in Java and it is good style to make this comparison. B

P2 Q3 Whole Group: 35% Upper 27%: 65% Lower 27%: 21% Q: A main method must have an argument named args False

P4 Q2 Whole Group: 53% Upper 27%: 91% Lower 27%: 47% From lectures.scanning.AConsoleReadingUpperCasePrinter Make sure you input “Albert Einstein” as the input string Q: The values of variable, index, when the print is executed are: Each of the values in the range 0..scannedString.length()-1 Each of the values in the range 0..scannedString.length() 0 and 7 1 and 8 None of the above C

Class Dual Roles Quiz Mean 84% Median 86% Std @9.5%

P4 Q2 Whole Group: 66% Upper 27%: 95% Lower 27%: 33% Q: The number of properties in ALoopingFactorialSpreadsheet is the same as the number of variables in it. True

P4 Q20 Whole Group: 51% Upper 27%: 80% Lower 27%: 23% Q: The names of properties begin with lowercase letters. False

P3 Q9 Whole Group: 72% Upper 27%: 100% Lower 27%: 47% Q: "hello World" is an instance of a class. True: Extension, which class? String

P4 Q5 Whole Group: 67% Upper 27%: 95% Lower 27%: 47% Q: The number of properties in AnotherLoopingFactorialSpreadsheet is the same as the number of variables in it. False

P4 Q10 Whole Group: 79% Upper 27%: 100% Lower 27%: 52% Q: For each property of ALoopingFactorialSpreadsheet there exists a property with the same name and type in AFactorialSpreadsheetPretender. True

P4 Q26 Whole Group: 85% Upper 27%: 100% Lower 27%: 52% Q: A write method of a property named P of type T has the name setP and: takes a parameter of type T, and returns a value of type T takes a parameter of type T, and returns no value. takes no parameter, and returns a value of type T B

P4 Q27 Whole Group: 29% Upper 27%: 52% Lower 27%: 4% Q: The names and types of the properties defined by a class depend on: Only public and non public methods of the class. Only public methods of the class. Only variables of the class. Variables and public instance methods of the class. B

P2 Q21 Whole Group: 87% Upper 27%: 100% Lower 27%: 57% Q: Factorials is a stateless class. True

Constructors and Pointers Quiz Mean 83% Median 84% Std @11.25%

P3 Q10 Whole Group: 75% Upper 27%: 95% Lower 27%: 40% Q: A null pointer exception is thrown when an uninitialized Object variable is printed. False

P2 Q12 Whole Group: 72% Upper 27%: 95% Lower 27%: 45% Q: The complier: may insert a constructor in the object code always inserts a constructor in the object code. never inserts a constructor in the object code. A

P3 Q4 Whole Group: 75% Upper 27%: 95% Lower 27%: 45% Q: It is not possible to access (use) the value of an uninitialized (instance/static) global variable. False

P3 Q5 Whole Group: 82% Upper 27%: 100% Lower 27%: 50% Q: A constructor can initialize an arbitrary uninitialized local variable (declared in any method). False

P1 Q4 Whole Group: 29% Upper 27%: 54% Lower 27%: 9% Q: If c is an instance of class C (defined by us), then (by default) println(c) displays: the properties of c. the memory address of c the hashcode of c C

P2 Q5 Whole Group: 68% Upper 27%: 90% Lower 27%: 45% Q: A constructor: "constructs" the object, that is, allocates space for the instance variables of the object in memory. can initialize instance variables of an object. must initialize instance variables of an object B

Interfaces Quiz Mean 88% Median 90% Std @11.35%

P2 Q25 Whole Group: 68% Upper 27%: 100% Lower 27%: 36% Q: Interfaces: (pick all that apply) make code more reusable constrain or specify the nature of classes that implement them. provide an abstract description of the classes that implement them. none of the above. A, B, C

P2 Q14 Whole Group: 75% Upper 27%: 100% Lower 27%: 40% Q: If C1 and C2 implements I then: (choose all that apply) all instances of C1 are also instances of I. all instances of I are also instances of C1. all instances of C1 are also instances of C2. A

P1 Q10 Whole Group: 80% Upper 27%: 100% Lower 27%: 45% Q: If Java classes C1 and C2 implement the same conceptual type, and a variable c is declared to be of Java type C1,then c can be assigned an instance of C2. False

P1 Q8 Whole Group: 81% Upper 27%: 100% Lower 27%: 45% Q: If the type of variable c is class C, then the methods you can call on c depends only on the: headers of the methods declared in C. the bodies of the methods of the methods in C. the headers and bodies of the methods declared in C. A

P2 Q11 Whole Group: 4% Upper 27%: 72% Lower 27%: 22% Q: A compiler analysis of the source code of any class can always determine the class of the object assigned to any variable after a procedure call or some other statement of the program. False

P2 Q12 Whole Group: 67% Upper 27%: 100% Lower 27%: 50% Q: Given the variable declaration: I v = new C(); the operations that are allowed on v by the compiler should depend on: I C A

Mean 89.5% Median 93% Std @13.3% (*huge outlier) Graphics Quiz Mean 89.5% Median 93% Std @13.3% (*huge outlier)

Q15 Whole Group: 62% Upper 27%: 86% Lower 27%: 27% Q: The same set of properties can be used to completely represent a rectangle and image. False

Q8 Whole Group: 53% Upper 27%: 90% Lower 27%: 40% Q: In a computer coordinate system, the origin is: The lower-left corner of the screen. The upper-left corner of the screen. The lower-left corner of the window being used for a graphics operation. The upper-left corner of the window being used for a graphics operation. D

Q4 Whole Group: 84% Upper 27%: 100% Lower 27%: 59% Q: A rectangle can be completely represented by its width and height. False

Q18 Whole Group: 85% Upper 27%: 100% Lower 27%: 59% Q: A (positionable) unscalable image can be represented by an image file name and the coordinates of the upper-left corner of its bounding box. True

Q23 Whole Group: 77% Upper 27%: 100% Lower 27%: 59% Q: StructurePattern annotations can be used to create the properties of an object, that is, the getters of the properties. False

User Interface and Annotations Quiz Mean 84% Median 86% Std @11%

P2 Q13 Whole Group: 56% Upper 27%: 95% Lower 27%: 18% Q: When an object is changed from the program, ObjectEditor knows about this event and calls getters in the object to update the display of the object. False

P2 Q9 Whole Group: 75% Upper 27%: 100% Lower 27%: 36% Q: When a property is edited (in an ObjectEditor window) the setter for only that property is called. the setters for all editable properties are called. A

P1 Q4 Whole Group: 63% Upper 27%: 90% Lower 27%: 31% Q: Computation or model code is responsible for: (mark all that apply) converting user input into Java values. converting Java values into user output. determining the relationship between output and input. c

P2 Q5 Whole Group: 62% Upper 27%: 86% Lower 27%: 27% Q: In C#, to assign the value of property P of object o to variable v, we must execute a statement of the form: v = o.getP(); v = o.get(); v = o.P; None of the above C

P2 Q6 Whole Group: 67% Upper 27%: 81% Lower 27%: 27% Q: In C#, to change the value of property P of object o to expression E, we must execute code of the form: o.setP(E); o.set(E); o.P = E; None of the above. C

P3 Q3 Whole Group: 21% Upper 27%: 59% Lower 27%: 4% Q: The Java compiler processes the @EditablePropertyNames annotation of a class by: generating a setter for each property listed in the annotation. giving a warning if a property listed in the @EditablePropertyNameannotation of a class is not editable, that is, does not have a setter None of the above C

Composite Objects and Shapes Quiz Mean 76% Median 78% Std @14%

P1 Q1 Whole Group: 32% Upper 27%: 52% Lower 27%: 14% Q: The Bean properties of ALineWithObjectProperty are: (mark all that apply) Width Height Location C

P2 Q12 Whole Group: 74% Upper 27%: 100% Lower 27%: 28% Q: xAxis is a leaf variable of ACartesianPlane. False

P1 Q13 Whole Group: 65% Upper 27%: 95% Lower 27%: 33% Q: The physical structure of ALineWithObjectProperty has a parent node labeled "this“. True

P2 Q8 Whole Group: 58% Upper 27%: 90% Lower 27%: 28% Q: All structured properties of ACartesianPlane are readonly. True

P2 Q20 Whole Group: 73% Upper 27%: 100% Lower 27%: 42% Q: XAxis is a stored property of AnInefficientCartesianPlane, that is, its value is stored in an instance variable. False

P1 Q5 Whole Group: 78% Upper 27%: 95% Lower 27%: 42% Q: The debugger shows the physical structure of an object. True

P2 Q4 Whole Group: 76% Upper 27%: 100% Lower 27%: 47% Q: Calling setAxesLength in ACartesianPlane, changes the: (mark all that apply) object variable xAxis, that is, assigns a new object to this variable. primitive X property of the existing object stored in the xAxis variable. B

Composite Objects- Trees, DAGs, and Graphs Mean 81% Median 84% Std @12.6%

Q1 Whole Group: 10% Upper 27%: 26% Lower 27%: 5% Q: Annotations can be used to ask ObjectEditor to ignore certain nodes in the logical structure of an object. False

Q15 Whole Group: 68% Upper 27%: 100% Lower 27%: 31% Q: If we create a cycle in a widget structure, Java: removes the cycle. ignores the operation that creates a cycle. gives a compile-time error. gives a runtime error. D

Q5 Whole Group: 75% Upper 27%: 100% Lower 27%: 42% Q: In WindowTree Creator, a JPanel instance is: the root of the widget tree. an interior node of the widget tree. a leaf of the widget tree. B

Q6 Whole Group: 75% Upper 27%: 100% Lower 27%: 42% Q: In WindowTree Creator, a JTextField instance is: the root of the widget tree. an interior node of the widget tree. a leaf of the widget tree. C

Q4 Whole Group: 60% Upper 27%: 78% Lower 27%: 26% Q: Which nodes of the logical structure of a frame can be displayed? (mark all that apply) root (the frame). interior nodes. leaf nodes. A,B,C

Composite Objects- Trees, DAGs, and Graphs Mean 76.3% Median 75.9% Std @12.4%

P2 Q9 Whole Group: 50% Upper 27%: 89% Lower 27%: 15% Q: if indexOf(element) cannot find element, it returns: -1 the number of filled elements (size) in the underlying array. the size of the underlying array. c

P5 Q5 Whole Group: 48% Upper 27%: 94% Lower 27%: 21% Q: The physical structure of an object cannot have two variables with the same name. F

P6 Q7 Whole Group: 69% Upper 27%: 94% Lower 27%: 21% Q: A superclass constructor can be called from any method of a subclass. False

P1 Q9 Whole Group: 51% Upper 27%: 84% Lower 27%: 15% Q: We can define our own collection type that uses array syntax to manipulate the elements of the collection. False

P2 Q7 Whole Group: 41% Upper 27%: 84% Lower 27%: 15% Q: The index() method of AnInheritingStringDatabase calls an instance method in its superclass without specifying the target of the call. True

P4 Q4 Whole Group: 61% Upper 27%: 94% Lower 27%: 26% Q: System.out.println(o) calls: the toString() method on o. the println() method on o. getter() methods of o. A

P6 Q8 Whole Group: 65% Upper 27%: 89% Lower 27%: 21% Q: If no super() call is made in a constructor: an exception is thrown. no superclass constructor is called. a call to the parameterless super constructor is automatically added as the first statement in the constructor. C

P6 Q4 Whole Group: 65% Upper 27%: 89% Lower 27%: 26% Q: If C is a subclass of E, and an object c of type C is instantiated, then: a constructor of only C is called. a constructor of only E is called. a constructor of C and E are called. C