Question
f Question 1 1.1 Discuss temporary and permanent data, highlighting the advantages and disadvantages of each. (10) 1.2 Besides variables, name other ways to store
f
Question 1
1.1 Discuss temporary and permanent data, highlighting the advantages and disadvantages of each. (10)
1.2 Besides variables, name other ways to store information in temporary storage. (5)
1.3 Explain the concept data abstraction. (5)
State whether the following statements are True or False. Write down the question number and the word True or False next to it. E.g.1.4 True
1.4.1 A single array can hold components of many different data types.
1.4.2 The constructor is called when an object is created.
1.4.3 Given the declaration, int[] list = new int[50]; the statement, System.out.println(list); outputs all 50 components of the array list, one component per line.
1.4.4 Get and set methods are used to obtain and change the values of an objects attributes.
1.4.5 A file is a place to store data we wish to persist after our program has terminated.
1.4.6 In Java, the array index starts at 1.
1.4.7 Arrays are made up only of integers.
1.4.8 The ability of a family of related classes to each implement their own version of a method is an example of polymorphism.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started