Olympiad (Class 12) Olympiad Computer Science — practice questions
66 free MCQs with worked solutions. Tap any question for the answer + explanation, or practice them all in the app.
Practice Olympiad (Class 12) Olympiad Computer Science in the app →A beginner picks a language built to be easy for people to read and write. That is a:A programmer writes count = 5. The name count labels a spot in:In JavaScript one variable holds a number, then later a text string. JavaScript is:A language forces every declaration to state both a name and a data type. It is:A C variable named a stores the location of variable b. The variable a is a:A team reuses ready made library functions through a published interface called an:The first high level language to use a compiler, a landmark in computing, was:A tool takes a whole source program and produces equivalent object code. It is a:A different tool runs a program one line at a time as it translates. It is an:Java compiles to bytecode, which the JVM then executes. This execution style is:A paradigm centred on evaluating expressions and storing results in variables is:A named block of code that can be called from anywhere to do one job is a:A programmer states what result she wants and lets the system work out the steps. That style is:A language built from facts and rules about a problem is a:A function that calls itself to solve smaller versions of a problem uses:A function that can be assigned to a variable like any value is called:A function that accepts other functions as arguments is called:In object oriented code, the blueprint used to construct objects is the:Building one object from a class is known as:A class keeps its data and methods together and hides the inner workings. This is:A child class takes on attributes from its parent class. This principle is:The same inherited behaviour acts differently depending on context. This is:A learner asks what a Python string really is. It is a sequence of zero or more:In the Python string 'HELLO', the index of the letter H is:Counting from the right hand end of a Python string, the last character has index:The international standard Python uses for representing text is:The unique number Unicode gives to each possible character is called a:The built in function that converts a character into its code point is:The built in function that converts a code point back into a character is:Unicode was built as an extension of an older standard known as:The original ASCII standard defined how many code points?A backslash used inside a string to stand for a special character starts an:Julius Caesar shifted each letter of a message by three. Such a method is a:A string literal prefixed with the letter f, allowing values inside braces, is an:Inside an f string, an expression written in curly braces is called a:In the f string with minute:02d, the part written after the colon is a:In Python, the statement message = 'Hello' makes the variable message:The unique integer tied to an object, usually its memory location, is its:The built in function that reports what kind of object a value is:A Python list is written using comma separated values enclosed in:A Python list has 50 elements. The index of its last element is:The built in function that returns how many elements a list holds is:An object that cannot be changed after it is created is described as:A programmer needs a fixed sequence of constants that no code can alter. He should use a:A system that defines what an algorithm does and how to run it is a:The Random Access Machine, the Turing machine and the Lambda calculus are examples of:A model used mainly to analyse how efficient an algorithm is, is the:An algorithm written in an abstract model has one clear limitation. It cannot be:A language in which the programmer must speak in terms the hardware understands is:Java and Python are usually classified as languages that are:A paradigm where the programmer writes a series of steps to follow in order is:A paradigm in which algorithms are written as mathematical functions is:Regarding the two paradigms, it is true that all procedural languages are also:C++, C#, Java, JavaScript and Swift share one paradigm. They are all:A thing that bundles data together with the procedures that act on it is an:C is not counted as object oriented because it cannot create objects that are instances of:Programs full of jumps that are hard to follow are criticised as messy:In an if statement, the line runs only when the condition is:Inside a while loop, the statements keep executing only while the condition is:In the code x = 10, the item x is the variable and 10 is the:Program memory is divided into four blocks: stack, heap, static and:The data type of a variable decides how much memory it uses and which operators can:A system defined in terms of itself, as when a function calls itself, shows:A variable whose value is the memory address of another variable is a:The same C source code can be compiled and run on different machines. C is therefore:A web client page is commonly built from HTML5, CSS and: