logo

Cambridge IGCSE Information and Communication Technology practice

Which of the following is an example of a coding convention?

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

At a glance

MCQ

Type

cambridge_mcq

Style

Topic

Design

Exam-style question

Try this first

Which of the following is an example of a coding convention?.

  1. A.Using 'M' for male and 'F' for female
  2. B.Checking if a number is within a range
  3. C.Ensuring a field is not left blank
  4. D.Verifying the data type is numeric

Answer and explanation

Attempt the question first, then reveal the model answer and 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

Question 1 of 5

Choose an answer, get feedback, then move sideways through the set.

0 of 3 attempted

Paper 1 structured question: Design

Paper 1Theory6 marks

Description

File Structure Example

A student database includes fields such as Student ID, Name, Gender, and Age. The Gender field uses coding conventions where 'M' represents male and 'F' represents female.

Field NameData TypeField LengthCoding Convention
Student IDNumeric6None
NameText30None
GenderText1M/F
AgeNumeric2None
  1. a

    Define Define what is meant by a 'coding convention' in the context of the Gender field.

    Aim for approximately 2 distinct marking points.

    [2]
  2. b

    Explain Explain two validation checks that could be used for the Age field.

    Aim for approximately 4 distinct marking points.

    [4]