MCQ PORTAL

Back to All Topics

Programming Fundamentals

Showing 15 of 15 questions in this topic

Start Practice Mode

Answer Green MarksON

Correct answers are highlighted in green

PF001Programming Fundamentals • Language type
ImportantMedium

Q1.Which of the following is a procedural programming language?

A
SQL
B
Prolog
C
C
Correct answer
D
HTML
PF003Programming Fundamentals • Structured programming
ImportantMedium

Q2.Structured programming mainly uses which three control structures?

A
sequence, selection and iteration
Correct answer
B
input, process and output
C
class, object and method
D
compile, link and run
PF004Programming Fundamentals • OOP
ImportantEasy

Q3.Which of the following is a feature of Object Oriented Programming?

A
inheritance
Correct answer
B
goto statements
C
line numbers
D
punch cards
PF005Programming Fundamentals • Complexity
ImportantMedium

Q4.The time complexity of an algorithm measures:

A
the memory it uses
B
how its running time grows with input size
Correct answer
C
the number of variables
D
the file size
PF006Programming Fundamentals • Complexity
ImportantMedium

Q5.The space complexity of an algorithm measures the:

A
running time
B
amount of memory it needs
Correct answer
C
number of outputs
D
number of loops
PF007Programming Fundamentals • Asymptotic notation
ImportantHard

Q6.Which asymptotic notation is used to represent the WORST-case (upper bound) running time?

A
Big Omega
B
Big Theta
C
Big O
Correct answer
D
Big Delta
PF010Programming Fundamentals • Recursion
ImportantMedium

Q7.An algorithm that solves a problem by calling itself is called:

A
iterative
B
recursive
Correct answer
C
sequential
D
modular
PF011Programming Fundamentals • Problem solving
ImportantEasy

Q8.Which of these is the correct order of steps in problem solving?

A
coding, analysing, testing
B
analysing, algorithm, coding, testing
Correct answer
C
testing, coding, analysing
D
algorithm, testing, analysing
PF013Programming Fundamentals • Algorithm vs program
ImportantMedium

Q9.An algorithm written in a mix of English and programming-like statements is called:

A
machine code
B
pseudocode
Correct answer
C
flowchart
D
object code
PF015Programming Fundamentals • Machine language
ImportantMedium

Q10.The only language directly understood by a computer's hardware is:

A
high-level language
B
assembly language
C
machine language (binary)
Correct answer
D
pseudocode
PF002Programming Fundamentals • Language type
OtherMedium

Q11.Which of the following is a non-procedural (declarative) language?

A
C
B
FORTRAN
C
SQL
Correct answer
D
Pascal
PF008Programming Fundamentals • Asymptotic notation
OtherHard

Q12.Big Omega notation is used to represent the:

A
worst case (upper bound)
B
best case (lower bound)
Correct answer
C
average case
D
memory used
PF009Programming Fundamentals • Asymptotic notation
OtherHard

Q13.Big Theta notation represents the:

A
upper bound only
B
lower bound only
C
tight (both upper and lower) bound
Correct answer
D
memory usage
PF012Programming Fundamentals • Code
OtherMedium

Q14.The program written by a programmer in a high-level language is called:

A
object code
B
source code
Correct answer
C
machine code
D
byte code
PF014Programming Fundamentals • Instruction
OtherEasy

Q15.A set of instructions written to perform a specific task is called a:

A
program
Correct answer
B
keyboard
C
monitor
D
gate