CCEA A-Level Software Systems Development CL4
Software and the Development Environment
Defining Data: Types, Variables and Classes
Program Control Structures
Objects, Classes and Data Structures
Exception Handling and Managing Input and Output
Testing an Object Oriented Application
Graphical User Interface Objects and Events
Multiple Forms and Linking to Files
Designing, Testing and Evaluating an Event Driven Application
Reasons for Systems Development and Systems Methodologies
Managing Projects
Testing Strategies
Database Concepts and Entity Relationship Modelling
Normalisation and Structured Query Language
Project Management and the Systems Approach in Practice
Defining Requirements and Documenting the Design
Building a Desktop Solution with a Database
Testing and Evaluating the Solution
Defining Data: Types, Variables and Classes
- 12 subtopics
- 36 things to know
- AS Unit 1
What Defining Data: Types, Variables and Classes covers
Defining Data: Types, Variables and Classes is examined in Unit AS 1, Introduction to Object Oriented Development — a written examination. It covers primitive types and their storage, reference types, objects and null, declaring variables, scope and lifetime, type casting and conversion, arithmetic operators and expressions, relational and logical operators, operator precedence and evaluation order, objects as occurrences of a class, abstract, base and inherited classes, attributes and the properties of a class, static variables in a class and interfaces and class reusability.
Where it is assessed
AS Unit 1
Introduction to Object Oriented Development.
Check the CCEA specification ↗The 12 subtopics
Each one has its own page.
- Primitive types and their storageThe integer, floating point, character and boolean types, how many bits each occupies, the range each can hold, and what happens when a value exceeds it.Open →
- Reference types, objects and nullReference type, value null and wrapper class.Open →
- Declaring variables, scope and lifetimeScope of a variable and variable shadowing.Open →
- Type casting and conversionType casting and lost in a narrowing conversion.Open →
- Arithmetic operators and expressionsThe five arithmetic operators, integer against floating point division, the remainder operator and the sign it takes, increment and decrement in prefix and postfix form, and compound assignment.Open →
- Relational and logical operatorsValue does a relational expression produce and short-circuit evaluation.Open →
- Operator precedence and evaluation orderOperator precedence and value of true || false && false.Open →
- Objects as occurrences of a classSaying that an object is an occurrence of a class, term for creating an object from a class and state of an object.Open →
- Abstract, base and inherited classesBase class, inherited class and abstract class.Open →
- Attributes and the properties of a classAttribute of a class, saying that attributes represent the properties of a class and instance attribute.Open →
- Static variables in a classStatic variable, static constant and static method.Open →
- Interfaces and class reusabilityMain differences between an interface and an abstract class, one interface implemented by several unrelated classes and programming to an interface rather than to an implementation.Open →
What you need to know
Answer each one before you reveal it.
Why is a sum of money badly represented by a float or a double?
What is a constant, and how is a constant declared in Java?
What is variable shadowing, and how is a shadowed attribute reached in Java?
Why does Java convert an int to a double automatically, but refuse to convert a double to an int without a cast?
What is the value of 9 / 2 * 2 in integer arithmetic, and why?
int i = 3; int r = i++ + ++i; — what values do r and i hold?
What is short-circuit evaluation?
Explain why if (count != 0 && total / count > 5) is safe but reversing the two conditions is not.
Explain the difference between the logical AND written with two ampersands and the version written with one.
What is meant by saying that an object is an occurrence of a class?
Two objects of the same class hold entirely different data. Explain how one class definition supports that.
State the is-a test, and apply the test to decide whether Car should inherit from Engine.
Why must every attribute be declared with a type?
What is the difference between the attributes of a class and the values held by one object?
How does a well-designed class library shorten development and reduce defects?
What is the essential difference between what a primitive variable holds and what a reference variable holds?
What is operator precedence?
What is a static variable?
In Java, after the statement String s = new String("Ali"); what does the variable s actually contain?
How does implicit widening conversion differ from explicit narrowing conversion?
What is associativity, and which way do the arithmetic operators associate in Java?
What is a base class?
How does a static variable differ from an instance variable?
What is an interface?
What is a primitive data type?
What are three reference types a Java programmer can use without writing a class?
What two things must every variable declaration give?
What value is stored by double d = 7 / 2;, and why?
Which five arithmetic operators does Java provide, and what does each do?
What is the value of true || false && false, and in which order are the two operators applied?
What is a class?
What does an inherited class receive from its base class?
What is meant by saying that attributes represent the properties of a class?
Why is a static variable normally accessed through the class name rather than through an object reference?
What does an interface contain?
Take Defining Data: Types, Variables and Classes further
The same content, four other ways.
Commonly confused
Pairs that lose marks when they are blurred together.
Abstract class vs Interface
Abstract class: a type that may hold data and completed methods and can head only a single line of descent. Interface: a type that declares behaviour only, and any number of which may be promised by one implementer.
Questions from this topic
Each one with the model answer underneath.
- 1
What is a primitive data type?
Model answer
A primitive data type is a type built into the language whose variable holds the value itself, rather than holding a reference to an object stored elsewhere.
- 2
Which four integer primitive types does Java provide, and how wide is each?
Model answer
Java provides byte at 8 bits, short at 16 bits, int at 32 bits and long at 64 bits.
- 3
What range of values can a signed 8-bit integer hold, and how does that range follow from the number of bits?
Model answer
Eight bits give 256 different patterns, and in a signed type half are used for negative values, so the range runs from −128 to 127.
- 4
How many different values can be stored in 16 bits?
Model answer
Sixteen bits give 65 536 different values, because each extra bit doubles the number of patterns available.
- 5
Which two primitive types hold real numbers in Java, and which of the two is the more precise?
Model answer
Java holds real numbers in float at 32 bits and double at 64 bits, and double is the more precise, keeping roughly fifteen significant figures against roughly seven.
- 6
What values may a boolean variable hold, and how much information does a boolean actually carry?
Model answer
A boolean variable holds either true or false, so a boolean carries one bit of information even though a machine usually reserves a whole byte for it.
What is inside Levo
Six ways to work the same material.
Defining Data: Types, Variables and Classes revision questions
- What does Defining Data: Types, Variables and Classes cover in CCEA A-Level Software Systems Development?
- 12 subtopics: primitive types and their storage, reference types, objects and null, declaring variables, scope and lifetime, type casting and conversion, arithmetic operators and expressions, relational and logical operators, operator precedence and evaluation order, objects as occurrences of a class, abstract, base and inherited classes, attributes and the properties of a class, static variables in a class and interfaces and class reusability. Each one has its own page with questions and model answers.
- How is Defining Data: Types, Variables and Classes organised?
- By the CCEA CL4 specification, subtopic by subtopic, so it matches the order you are taught it in.
Every question in Defining Data: Types, Variables and Classes, on a schedule.
Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.