Start learning →

Computer Science — Uganda Programming — practice questions

Explore 29 free Programming questions in Computer Science — Uganda Computer Science. Open each question or exercise to read its content, reference answers and available explanation.

Practise Programming with Quill →

Programming questions and exercises with answers

Showing questions 1–29 of 29.

A programmer writes in English-like code rather than ones and zeros. That ability comes from:Read the answer and worked solution →High-level languages exist so programmers can work in familiar notation instead of numbers or:Read the answer and worked solution →In the early 1950s IBM built one of the first high-level compilers, for which language?Read the answer and worked solution →In pure compilation, a program is translated directly into:Read the answer and worked solution →In pure interpretation, the program is instead translated by another program known as an:Read the answer and worked solution →Modern high-level languages rarely use one approach alone. They are almost always:Read the answer and worked solution →A Java program is distributed in a form made of instructions for a virtual machine. That form is:Read the answer and worked solution →A name given to a memory location that holds a value is a:Read the answer and worked solution →Java allows a variable to hold only values of its declared type for its whole life. That makes Java:Read the answer and worked solution →In C, a character string is represented as a complex data type built from:Read the answer and worked solution →Repeating a block of statements under the control of a flow structure is known as:Read the answer and worked solution →Decision making in a program, choosing one branch over another, is called:Read the answer and worked solution →The commonest construct for a one-way branch in most languages is the:Read the answer and worked solution →A function that calls itself is using:Read the answer and worked solution →The three main principles of object-oriented programming are inheritance, polymorphism and:Read the answer and worked solution →Object-oriented languages organise software design around data, or objects, rather than around:Read the answer and worked solution →C++, Java, C# and Python are given as examples of languages that are:Read the answer and worked solution →Java and other modern languages destroy unused objects and recover memory automatically through:Read the answer and worked solution →An array going out of bounds is a fault discovered only while the program runs. Such behaviour belongs to its dynamic:Read the answer and worked solution →Pascal and C, invented at about the same time, are described as imperative and:Read the answer and worked solution →Alongside object-oriented and parallel programming, two other models named are declarative and:Read the answer and worked solution →Catch the OOP principlesRead the answer and worked solution →Pop the control structuresRead the answer and worked solution →Run the language gatesRead the answer and worked solution →Slice the programming wordsRead the answer and worked solution →Compiled or interpretedRead the answer and worked solution →Sort the language wordsRead the answer and worked solution →Type the numberRead the answer and worked solution →Programming bingoRead the answer and worked solution →

Worked practice questions

A programmer writes in English-like code rather than ones and zeros. That ability comes from:

  1. Abstraction
  2. Abbreviation
  3. Attenuation
  4. Approximation
Show answer and solution

Correct answer: A. Abstraction

1. Machine language is left behind. 2. The syntax reads like English. 3. It is abstraction. _Source: OpenStax Introduction to Computer Science, Chapter 7, High-Level Programming Languages._

Open this question →

High-level languages exist so programmers can work in familiar notation instead of numbers or:

  1. Diagrams
  2. Mnemonics
  3. Melodies
  4. Manuals
Show answer and solution

Correct answer: B. Mnemonics

1. Assembly language uses them. 2. They sit between numbers and English. 3. They are mnemonics. _Source: OpenStax Introduction to Computer Science, Chapter 7, High-Level Programming Languages._

Open this question →

In the early 1950s IBM built one of the first high-level compilers, for which language?

  1. Fortran lang
  2. Ruby lang
  3. Python lang
  4. Pascal lang
Show answer and solution

Correct answer: A. Fortran lang

1. It came from the 1950s. 2. Scientific computing was its home. 3. It is the Fortran lang. _Source: OpenStax Introduction to Computer Science, Chapter 7, High-Level Programming Languages._

Open this question →

How to practise

  1. Choose a Programming question and try to work out your answer.
  2. Open the question to check the correct answer and read its worked solution.
  3. Continue in the app for bite-sized lessons, explanations and review with Quill. You can start without creating an account.

More Computer Science topics