logo

Cambridge IGCSE Computer Science practice

How do you declare a constant in many programming languages?

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

At a glance

MCQ

Type

cambridge_mcq

Style

Topic

P rogramming concepts

Exam-style question

Try this first

How do you declare a constant in many programming languages?.

  1. A.Using 'var' keyword
  2. B.Using 'const' or 'final' keyword
  3. C.Using 'let' keyword
  4. D.Constants cannot be declared

Answer and explanation

Concise answer

Using 'const' or 'final' keyword

Why this is correct

Constants are typically declared with specific keywords that indicate their immutability.

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

Flashcard 1 of 6

Press Space to flip, arrows to move

Related practice questions