logo

AQA A-Level Computer Science practice

In the C# declaration "const int MAX_TRIES = 3;", which part identifies the value as a constant?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Programming

Exam-style question

Try this first

In the C# declaration "const int MAX_TRIES = 3;", which part identifies the value as a constant?.

  1. A.const
  2. B.int
  3. C.MAX_TRIES
  4. D.3

Answer and explanation

Concise answer

const

Why this is correct

In this C# declaration, the keyword "const" indicates that MAX_TRIES is a constant. The name identifies the constant, and 3 is its value.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions