For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAQA GCSEAQA GCSE Computer Science Paper 1 PythonQuestion 01.3
    Easy1 markMultiple Choice
    ProgrammingGeneralstring manipulationconcatenation

    AQA GCSE · Question 01.3 · Programming

    What is the result of concatenating the contents of the variables city and landmark in Figure 1?

    Answer options:

    A.

    San Francisco Alcatraz Island

    B.

    San Francisco,Alcatraz Island

    C.

    San Francisco, Alcatraz Island

    D.

    San FranciscoAlcatraz Island

    How to approach this question

    1. Identify the values of the variables `city` and `landmark` from Figure 1. 2. `city` is "San Francisco". 3. `landmark` is "Alcatraz Island". 4. Concatenation means joining these two strings together, one after the other. 5. The resulting string will be "San Francisco" followed immediately by "Alcatraz Island". 6. This gives "San FranciscoAlcatraz Island".

    Full Answer

    D.San FranciscoAlcatraz Island✓ Correct
    The correct answer is D (San FranciscoAlcatraz Island). Concatenation means joining strings together end-to-end. `city` is "San Francisco" and `landmark` is "Alcatraz Island". Joining them results in "San FranciscoAlcatraz Island".
    Concatenation is the operation of joining character strings end-to-end. For example, concatenating "snow" and "ball" gives "snowball". In programming, this is often done with the `+` operator (e.g., `"San Francisco" + "Alcatraz Island"`). The operation simply combines the strings as they are, without adding any extra characters like spaces or commas unless they are explicitly included.

    Common mistakes

    ✗ Assuming a space is automatically added between concatenated strings. This is a common mistake; spaces must be added explicitly if needed (e.g., `city + " " + landmark`).
    Question 01.2All questionsQuestion 01.5

    Practice the full AQA GCSE Computer Science Paper 1 Python

    31 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01.1Figure 1 shows an algorithm, represented using pseudo-code, which assigns a different value to fo...EasyQ01.2The variable `x` is assigned a value using the statement: `x ← LEN(state)` Using Figure 1, what ...EasyQ01.5The subroutine `POSITION` finds the first position of a character in a string. For example, `POSI...EasyQ02.1Figure 2 shows an algorithm that uses integer division which has been represented using pseudo-co...EasyQ02.2In the algorithm in Figure 2, what will be output when the user input is 10?Medium
    View all 31 questions →