← March 2025 questions

MARCH 2025 / BEGINNER / LEVEL 1 · QUESTION 1

Level 1 · Question 1

Archived question

Try the question in your own editor, then check your output below.

THE QUESTION

Text from the official booklet. Refer to the PDF for original mathematical notation, formatting, and linked input files. Printed samples and inputs are reproduced as published.

Give your answer in the same format as the sample output.
Write a program that asks the user “Who’s your favourite astronaut?” and prints a
message saying, "Your favourite astronaut is [Name]."
Sample Input:
Neil Armstrong
Sample Output:
Your favourite astronaut is Neil Armstrong.
Your Input:
Sally Ride

CHECK YOUR ANSWER

Try your answer.

Run your program in your own editor, then paste its output below. This checks the stated output; it does not assess your full program. Practice attempts do not affect competition scores.

Use the corresponding input from the question. For lists, brackets and commas are optional for numeric answers; text lists may also be entered one item per line.

Reveal worked answer

Your output

Your favourite astronaut is Sally Ride.

Insert Sally Ride into the sentence template.

Reveal supplied answer

From the supplied Beginner answer key. Outputs are reproduced as provided.

Expected output

Your favourite astronaut is Sally Ride.

Source: GIC 2025 Beginner Questions and the supplied Beginner answer key, March 2025 archive.