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
Objects, Classes and Data Structures
Strings and string handling
- 3 things to know
- AS Unit 1
Overview
A string as a sequence of characters counted from zero, length, extracting a substring, searching for one string inside another, joining strings, and why two strings are compared by value rather than by identity.
What you need to know
Answer each one before you reveal it.
What is the index of the first character of a Java string?
A program holds String s = "Systems";. What does System.out.println(s.length()); print?
Questions from this subtopic
Each one with the model answer underneath.
- 1
What is a string?
Model answer
A string is a sequence of characters stored and handled as a single value, with each character occupying a numbered position within the sequence.
- 2
Why is a string regarded as a data structure?
Model answer
A string keeps its characters in order and allows each one to be reached by position, so the characters can be counted, searched and copied in sections.
- 3
What is the index of the first character of a Java string?
Model answer
The first character of a Java string sits at index 0, so a string uses indices from 0 up to one less than its length.
- 4
A program holds String s = "Systems";. What does System.out.println(s.length()); print?
Model answer
The word Systems is made of the seven characters S, y, s, t, e, m and s, so the statement prints 7.
- 5
A program holds String s = "Systems";. What does System.out.println(s.charAt(2)); print?
Model answer
Counting from index 0, S is at 0, y is at 1 and s is at 2, so the statement prints the letter s.
- 6
A program holds String t = "Development";. What does System.out.println(t.substring(0, 7)); print?
Model answer
The method copies from index 0 and stops before index 7, taking the seven characters D, e, v, e, l, o and p, so the statement prints Develop.
Other ways to work this
The same content, four other ways.
What is inside Levo
Six ways to work the same material.
Every question in Objects, Classes and Data Structures, 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.