Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.98 KB

java.md

File metadata and controls

53 lines (43 loc) · 1.98 KB

EXAM: Programming Basics

Getting Started

  • Fork this repository under your own account
  • Clone the forked repository to your computer
  • Create a .gitignore file so generated files won't be committed
  • Commit your progress frequently and with descriptive commit messages
  • All your answers and solutions should go in this repository

What can I use?

  • You can use any resource online, but please work individually
  • Don't just copy-paste your answers and solutions, use your own words instead.
  • Don't push your work to GitHub until your mentor announces that the time is up

Tasks

1-3. Complete the following tasks: (~90 mins)

Acceptance criteria

The application is accepted if:

  • The solution works according to specification [1p each]
  • The solution follows styleguide [1p]
  • Has proper error handling where the specification says it [1p each]
  • Has the correct loops, methods, filters [1p each]
  • The code is clean, without unnecessary repetition, and with descriptive names [1p each]
  • You commit frequently with descriptive commit messages [1p]

4. Question time! (~10 mins) [4p]

Name each building block of a method! [2p]

anatomy

Your answer:

[add your answer here]
1: signature 2: return type 3: method name 4: argument type 5: argument variable 6: local variable 7: method body 8: return statement

What is the constructor? When it is used? [2p]

Your answer:

[add your answer here] The constructor is a code in class that initializes an object. When creating a new instance of an object, the constructor is called by saying "new" before the object type. If a constructor is not provided when implementing a class, Java generates a default constructor. A constructor can also make the object be able to take arguments.