Computer Programming and Numerical Analysis MCQs

Computer Programming and Numerical Analysis MCQs

Our experts have gathered these Computer Programming and Numerical Analysis MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of Computer Programming and Numerical Analysis by answering these multiple-choice questions.
Get started now by scrolling down!

1: What is an abstract class?

A.   A class that can be directly constructed

B.   A class that can only be constructed through construction of its subclasses

C.   A class that cannot be constructed

D.   A class that cannot be directly constructed

2: What is an abstract type?

A.   A type in a nominative type system that can be instantiated.

B.   A type in a non-nominative type system that cannot be instantiated.

C.   A type in a non-nominative type system that can be instantiated.

D.   A type in a nominative type system that cannot be instantiated.

3: What is an actual argument?

A.   A variable declared inside a function

B.   A variable declared outside a function

C.   A value, or reference to a value, passed to a function.

D.   The value returned from a function

4: What does app stand for?

A.   Application

B.   Apple

C.   Append

D.   Applicant

5: What is an application?

A.   A document sent with a job application

B.   A program that is run by an operating system

C.   A device that is used to apply cosmetics

D.   A program or integrated suite of programs that has a defined function.

6: What is an argument?

A.   A set of all possible arguments

B.   A value, or reference to a value, passed to a function

C.   The average number of arguments in a day

D.   This

7: What is an argument in a function definition?

A.   A programming language

B.   A software system

C.   A command

D.   A parameter

8: What is an array?

A.   An ordered sequence of same-typed values whose elements are fast to access by their numerical index in the array.

B.   A variable that can store multiple values

C.   An ordered sequence of different-typed values

D.   A structure that stores data in a hierarchy

9: What is the Boolean data type used for?

A.   Yes or no, true or false values

B.   Characters

C.   Strings

D.   Integers

10: What is a compiler?

A.   A hardware device

B.   A computer program which transforms source code into object code.

C.   A software application

D.   A type of computer virus

11: What does "constant" mean in programming?

A.   A keyword that indicates a value cannot be changed.

B.   A type of data that can only store positive whole numbers.

C.   An identifier that is bound to an invariant value.

D.   A reserved word that cannot be used as an identifier.

12: What is a constructor?

A.   A method that is called when an object is destroyed

B.   A class method that creates and initializes each instance of an object.

C.   A method that is called when an object is created

D.   A method that is responsible for initializing an object

13: What is data type?

A.   The operations that can be done on data

B.   The study of various types of data

C.   A type of data used to calculate

D.   A classification or category of various types of data

14: What is a destructor?

A.   In object-oriented programming, the command sequence that is launched when the execution of an object is aborted.

B.   In object-oriented programming, the command sequence that is launched when the execution of an object is interrupted.

C.   In object-oriented programming, the command sequence that is launched when the execution of an object begins.

D.   In object-oriented programming, the command sequence that is launched when the execution of an object is finished.

15: What is a dump?

A.   A type of computer memory

B.   A file containing a copy of the data from a failed hard drive

C.   A formatted listing of the contents of program storage, especially when produced automatically by a failing program

D.   A place where unwanted materials are disposed

16: What does "enumeration" mean?

A.   A data type that can take on any real number value.

B.   A data type that can take on any value.

C.   A data type whose values are a set of mutually exclusive named constants.

D.   A data type that can take on any integer value.

17: What is an exception?

A.   Something that is allowed to happen

B.   An interruption in normal processing, especially as caused by an error condition.

C.   Something that is not allowed to happen

D.   Something that is not related to the matter at hand

18: What is the mantissa?

A.   A method of representing real numbers as a pair of integers

B.   An integer that represents the real number

C.   A number that cannot be represented as an integer

D.   The characteristic of a real number

19: What is a flowchart?

A.   A breakdown of the functionality of a system

B.   A graphical representation of the dataflow through a system

C.   A schematic representation of the logic that defines the flow of control through a program

D.   A diagram of the steps in a process

20: What is a parameter in a function definition?

A.   A local variable in a function definition.

B.   The name of a function definition.

C.   A formal argument in a function definition.

D.   The return type of a function definition.

21: What is a function?

A.   A sequence of program instructions

B.   A routine that receives zero or more arguments and may return a result.

C.   A variable

D.   A set of mathematical values

22: What is the definition of "goto"?

A.   A function in the Python programming language that returns the absolute value of a number.

B.   A statement (in source code) that transfers control unconditionally to another part of a program.

C.   A reserved keyword in the C++ programming language that is used to declare variables and functions

D.   An operator in the Java programming language that contains two operands and performs addition

23: What is the name for an area of memory set aside for objects that are not stored in the stack?

A.   Garbage collector

B.   Heap

C.   Bus

D.   Dump

24: What is the heap?

A.   A short-term storage area

B.   An area of memory not reserved for anything in particular

C.   An area of memory reserved for dynamically allocated data objects

D.   An area of memory where data is stored in order

25: What is the purpose of an identifier?

A.   Refer to a class

B.   Refer to a constant

C.   Define a data type

D.   Refer to a variable, function, procedure, package, etc.

26: What data type is best suited for integer values?

A.   Integer

B.   Boolean

C.   String

D.   Float

27: What is an interpreter?

A.   A device that makes digital data intelligible to humans

B.   A program which executes another program written in a programming language other than machine code.

C.   A person who converts spoken words in one language to spoken words in another language

D.   A software that translates one programming language to another

28: A linker is a computer program that...

A.   Takes an executable program and links it with libraries

B.   Takes one or more objects generated by compilers and assembles them into a single executable program

C.   Generates objects that a compiler can link together

D.   Links together multiple files generated by a compiler

29: What is logic programming?

A.   A programming language that is difficult to learn

B.   A style or paradigm of computer programming exemplified by the language Prolog.

C.   A programming language that is used for artificial intelligence

D.   A way of programming that is based on remains

30: What is machine code?

A.   System of instructions and data indirectly understandable by a computer's central processing unit.

B.   System of instructions and data understandings understandable by a computer's central processing unit.

C.   System of instructions and data directly understandable by a computer's central processing unit.

D.   System of instructions and data relations understandable by a computer's central processing unit.

31: In object-oriented languages, what is a method?

A.   A software development model

B.   A programming language model

C.   A subroutine or function belonging to a class or object.

D.   A way of organizing data

32: What is a module?

A.   A subroutine

B.   A program that forms a functioning application

C.   A method of implementing a subroutine

D.   A program that is linked with others to form a functioning application

33: What is an object?

A.   A method

B.   A relationship

C.   An attribute

D.   An instance of a class.

34: What is the output of a compiler or assembler called?

A.   Source code

B.   Assembly code

C.   Object code

D.   Machine code

35: What is object-oriented programming?

A.   A method of programming in which data and instructions are organized into objects

B.   Using entities called objects that can process data and exchange messages with other objects.

C.   A way of programming in which data is organized into a hierarchy of classes

D.   A style of programming in which all computations are done in parallel

36: What does the term "paradigm" mean in computer programming?

A.   A fundamental style of computer programming to which the design of a programming language typically has to cater

B.   A type of programming language

C.   A set of tools used by programmers to make their jobs easier

D.   A method of storing data on a computer

37: What is a procedure?

A.   A subroutine or function coded to perform a specific task.

B.   A method of cooking food.

C.   A set of instructions for carrying out a experiment

D.   A set of instructions for completing a task.

38: What is a program?

A.   A device that runs a programming language.

B.   A software application designed to run a specific task.

C.   A type of application software.

D.   A software application, or a collection of software applications, designed to perform a specific task.

39: What type of number is 3.14159268?

A.   Complex

B.   Rational

C.   Real

D.   Imaginary

40: What is the difference between run time and compile time?

A.   Run time is the time during which a program is executing, as oppose to the load time.

B.   Compile time is the time during which a program is compiling, as oppose to the run time.

C.   Run time is the time during which a program is loading, as oppose to the compile time.

D.   Run time is the time during which a program is executing, as oppose to the compile time.

41: What is the stack used for in a computer?

A.   Running programs

B.   Keeping track of called procedures or call instructions.

C.   Keeping track of open files

D.   Saving data

42: What is a string?

A.   A data type for a sequence of bits

B.   A data type for a sequence of Boolean values

C.   A data type for a sequence of numbers

D.   A data type for a sequence of characters such as letters of English alphabet.

43: What is a subclass?

A.   An object class derived from another class (its superclass)

B.   A superclass that does not inherit any methods or properties from any other class

C.   An abstract class that cannot be instantiated

D.   A method that returns a value of the subclass type

44: What is a subprogram?

A.   A program that is written in a different language than the main program.

B.   A program contained within a larger program.

C.   A program that is not related to the main program

D.   A smaller program

45: What is a subroutine?

A.   A software development method

B.   A section of code that implements a task.

C.   A programming language

D.   A type of computer memory

46: What is a superclass?

A.   A class that passes attributes and methods up the hierarchy to superclasses.

B.   A class that passes attributes and methods down the hierarchy to subclasses.

C.   The most parent class in a class hierarchy.

D.   A class that inherits from two or more classes.

47: What is a Type A tag?

A.   A tag attached to variables and values used in determining what variables may be assigned to what values.

B.   A tag attached to variables and values used in determining what variables may be assigned to what variables.

C.   A tag attached to variables and values used in determining what values may be assigned to what variables.

48: What intermediate results can a program store in a variable?

A.   Integer values

B.   Memory locations

C.   Objects

D.   Strings

49: What is a variable?

A.   An operating system

B.   A reserved keyword in java

C.   A named memory location in which a program can store intermediate results and from which it can read them.

D.   A programming language

50: What is the rate of convergence?

A.   The speed at which a convergent sequence approaches its limit

B.   How quickly a sequence converges

C.   A sequence that does not converge

D.   The limit of a convergent sequence