
String Manipulation
Quiz by GCSE Computer Science Teacher 4
GCSE (AQA)
Computer Science
English National Curriculum
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measures 1 skill from
Measures 1 skill from
Track each student's skills and progress in your Mastery dashboards
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
16 questions
Show answers
- Q1Explain what is meant by string length?It's the amount of integers in a stringIt's the amount of characters in a stringIt takes snippets of text of a string valueIt returns the value of a character based on a integer45s3.2.8
- Q2State the output from the following piece of code: word = "Hello Word" LEN(word)98101145s3.2.8
- Q3What is the psuedocode to check if the length of the password is at least 8 characters?IF LEN(password) <= 8:IF LEN(password) == 8:IF (password) >= 8:IF LEN(password) >= 8:45s3.2.8
- Q4Which position is 'P' is in?123045s3.2.8
- Q5What is the output of this function POSITION("Hello World", "e")?102345s3.2.8
- Q6Which function will find the position of the '@' character?POSITION( '@',email)POSITION(email, '@')POSITION(@, '@')(email, '@')45s3.2.8
- Q7What is the purpose of a SUBSTRING?It finds the length of a stringIt finds the position of the characterIt converts the string value to an integerIt takes snippets of text from a string45s3.2.8
- Q8Which function will take the first three letters of the individuals first name?username <-- SUBSTRING(0, 3, firstname)username <-- SUBSTRING(0, firstname)username <-- SUBSTRING(0, 3)username <-- SUBSTRING(3, 3, firstname)60s3.2.8
- Q9Which line of code will output the first initial of this name?name <-- SUBSTRING(0, 1, "Carmen")name <-- SUBSTRING(0, 3, "Carmen")name <-- SUBSTRING(1, 1, "Carmen")name <-- SUBSTRING(1, 1, "Carmen")60s3.2.8
- Q10What is meant by concatenation?Finds the position in the string.Chains two or more strings togetherChecks the length of the string.Takes snippets out of the string.45s3.2.8
- Q11Which code will concatenate the first initial of the first name with the surname?username <-- SUBSTRING(1, 1, firstName) & lastNameusername <-- firstName) + lastNameusername <-- SUBSTRING(0, 1, firstName) + lastNameusername <-- SUBSTRING(1, 1, firstName) - lastName60s3.2.8
- Q12Which symbol will concatenate two strings together?,-&+45s3.2.8
- Q13What is meant by CHAR_TO_CODE?Converts from ASCII/Unicode to alphanumericConverts from alphanumeric to ASCII/UnicodeFinds the position of the characterStates the length of the string45s3.2.8
- Q14What is meant by CODE_TO_CHAR?Finds the position of the characterConverts from ASCII/Unicode to alphanumericStates the length of the stringConverts from alphanumeric to ASCII/Unicode45s3.2.8
- Q15What is the output of the following piece of code? STRING_TO_INT("45")-"45"45INT_TO_STRING("45")45s3.2.8