Programming Language Structure
Computer Studies · 50 practice questions
Features/syntax of a programming language (keywords, variable types, constants/literals); basic statements of a high-level programming language (input, output, processing, comments, subunits such as functions/procedures/subroutines, and control statements such as iteration and conditional statements); arithmetic and string operators and expressions; built-in functions; primitive data types (integer, float, Boolean, character) and non-primitive data types (arrays, classes, strings) and complex data structures (trees, graphs, linked lists, objects).
- Identify the features/syntax of a programming language.
- Identify the basic statements of a high-level programming language.
- Use arithmetic and string operators and built-in functions.
- Differentiate between primitive and non-primitive data types and complex data structures.
Try a few questions
- Practice question 1
A statement in a programming language represents a single, complete instruction that
- A.the computer can never actually execute, under any circumstances
- B.must always be written in a completely different, unrelated language
- C.the computer can execute
- D.has no defined meaning within the language at all
Show the answer
C. the computer can execute
A statement is the basic executable unit of instruction within a programming language.
- Practice question 2
Indentation, though not always required, is commonly used in programming to visually clarify
- A.a program's structure
- B.a program's total file size
- C.a program's compatibility with different processors
- D.a program's exact execution speed
Show the answer
A. a program's structure
Indentation is primarily a readability aid, visually clarifying a program's nested structure for human readers.
- Practice question 3
A programming language's operators, including comparison operators, allow values to be
- A.transmitted over a network connection automatically
- B.evaluated against one another
- C.physically manufactured as computer hardware
- D.printed onto a physical document automatically
Show the answer
B. evaluated against one another
Operators, particularly comparison operators, let a program evaluate and compare values against each other.
More UTME Computer Studies topics
Practise with instant feedback
Answer questions one at a time and see the right answer and the reason straight away. Free to start.
Start practising