Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CSSE 220 Exam 1 Topics, Exams of Software Engineering

The topics covered in the first exam for CSSE 220 - Object-Oriented Software Development. The exam consists of two parts: a closed-book, paper-and-pencil section and an open-book, on-the-computer section. The closed-book section covers topics such as identifying elements of a class, method and class naming conventions, variable types and scopes, and primitive types. The open-book section allows the use of any written source and the internet, but no communication with others. The document also mentions the use of a cheat sheet for the closed-book section.

Typology: Exams

2021/2022

Uploaded on 05/11/2023

eknath
eknath 🇺🇸

4.6

(28)

17 documents

1 / 5

Toggle sidebar

Related documents


Partial preview of the text

Download CSSE 220 Exam 1 Topics and more Exams Software Engineering in PDF only on Docsity! 1 CSSE 220 – Object-Oriented Software Development Exam 1 Topics The exam has two parts: A closed-book, paper-and-pencil section. Topics for this section are drawn only from the first two lists below. Questions might be short answer, fill-in-the-blank, multiple-choice, true/false, or problems whose answer is a short code fragment. An open-book, on-the-computer section. You write code and turn it in via your individual repository. See the third topic list below. For the closed-book portion, you can use a single 8.5 inch by 11 inch “cheat sheet” (back and front, with whatever you want on it, handwritten or typed). You may work with others to make your cheat sheet, but you will probably find it most useful if you do much or all of it yourself. For the open-book portion, you may use any written source, anything you can find on the internet, and your computer. You may not communicate with any human being except your instructor in any way during the exam, however. Closed-book topics, things you should know: 1. Given a class, identify the: a. Fields b. Constructors c. Methods d. Type of variable blah e. Visibility of variable blah f. Return type of method blah g. Number of parameters of method blah, and the types of those parameters 2. What style do we use for method names? Class names? Global constants? Getter’s? Setter’s? Predicate methods? 3. What is the signature of a method? 4. What is the scope of a field? Of a parameter? Of a local variable that is not a parameter? 5. What is the lifetime of a field? Of a parameter? Of a local variable that is not a parameter? 6. List the seven primitive types. 7. What is the most commonly used type for whole numbers? For floating-point numbers? 8. What is the type for a string of characters, like “When the moon is in the Seventh House”? 9. How do object-type variables differ from primitive-type variables? 10. True or false: In Java, every variable has a declared type. 11. What keyword indicates that a method does not return a value? Identifying elements of a class Variables: scope, lifetime, type 2 12. The plus sign (+) has two meanings: what are they? How does the compiler know which to use? 13. Explain the difference between the == operator and the equals method. When should you use the == operator, and when the equals method? 14. True or false: We can define a method in Java that is not associated with any class. 15. How does a static method differ from a non-static method? 16. How does a static field differ from a non-static field? 17. What is the difference between a class and an instance of a class? What word do we use for instances of classes (hint: begins with an “o”)? 18. What does the final keyword mean when applied to a variable, as in the following? final int DEFAULT_RADIUS = 25; 19. What is the implicit parameter in the following? The explicit parameters? father.replace(‘a’, ‘8’); 20. In a class definition, what keyword refers to the implicit parameter? 21. What does the keyword this mean, as in the following? return this.widthAndHeight; 22. What does the keyword this mean, as in the following? world.addBall(this); 23. What are two reasons why we use “this” to refer to the implicit argument (as in this.color) when implementing a constructor or method? 24. What does a constructor do? 25. How do you invoke a constructor? 26. True or false: In Java, the constructors for a class always have the same name as the class. 27. Explain what space is allocated by the following (hint: space for 5 things are allocated): Rectangle box = new Rectangle(5, 10, 20, 30); 28. What are the four visibility levels? For each, what restrictions does it impose? (You can skip protected and package visibility for this exam; we’ll cover them later in the course. That leaves two of the four visibility levels – they are …) 29. Generally, what visibility should fields have? Why? 30. Generally, what visibility should methods have? Why? 31. Generally, what visibility should constructors have? Why? 32. Generally, what visibility should classes have? Why? 33. If class B implements interface X, what does that imply? 34. If class B extends class Y, what does that imply? Operators: +, == (and equals) Static, instance, this keyword Constructors Visibility Inplements an interface Extends a class
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved