Cookie policy · You can change your choice at any time on the page „Cookies“.

Accessibility

Text size
Read aloud

Your browser reads the text with the voice it has for this language.

Accessibility statement

Quiz

Computer science I: Programs with a sequential structure

10 computer science questions for year 1, following the national curriculum: basic language elements, comments, identifiers, keywords, output statement, sequential execution.

Choose the right answer for each question. When you finish, click Check answers and read the explanations.

1. Which C++ statement shows text on the screen?

2. What does this show: cout << 3 + 4;

3. What does this show: cout << "3 + 4";

4. How is a one-line comment written in C++?

5. Which character ends a statement in C++?

6. Which is a keyword in C++?

7. What does the program show? cout << "A"; cout << "B"; cout << "C";

8. What does endl do in cout << "Hello" << endl;

9. Which name is a valid identifier in C++?

10. Which function does every C++ program have, where execution starts?