Skip to main content

Modern Programming Languages MCQs with Answers

Practice important Modern Programming Languages MCQs with answers and explanations.

Chapter: 2
Q21:
Which language level corresponds to 10-20 function points per staff month?
A. 45294
B. 45390
C. 45550
D. 16-23
Correct Answer: B
Chapter: 2
Q22:
What is the output of the following BASIC code: 10 PRINT "HELLO WORLD" 20 END?
A. HELLO
B. HELLO WORLD
C. Syntax error
D. Blank screen
Correct Answer: B
Chapter: 2
Q23:
Which of the following is the primary focus of the Cyber Society?
A. Selling products online
B. Developing programming tools
C. Creating social media
D. Managing communication systems
Correct Answer: A
Chapter: 2
Q24:
Fill in the blank: Capers Jones's table shows that _______ languages yield 40 to 100 function points per staff month.
A. high-level
B. mid-level
C. assembly-level
D. low-level
Correct Answer: A
Chapter: 2
Q25:
Fill in the blank: In Pascal, the command writeln('Hello World') is used to _______.
A. write "Hello World" on the console
B. define a function
C. end a program
D. initiate variables
Correct Answer: A
Chapter: 2
Q26:
Which syntax represents a "Hello World" program written by a seasoned hacker?
A. % cc -o a.out ~/src/misc/hw/hw.c
B. 10 PRINT "HELLO WORLD"
C. #define S "Hello"
D. (defun hello...)
Correct Answer: A
Chapter: 2
Q27:
Fill in the blank: In C, the function printf("Hello, World"); is used to _______.
A. allocate memory
B. display output on the console
C. include libraries
D. create functions
Correct Answer: B
Chapter: 3
Q28:
What are the three main criteria for comparing programming languages?
A. Simplicity, Syntax, Cost
B. Readability, Writability, Reliability
C. Complexity, Efficiency, Speed
D. Execution, Optimization, Compilation
Correct Answer: B
Chapter: 3
Q29:
Which factor is directly related to the cost of maintenance in programming languages?
A. Writability
B. Reliability
C. Readability
D. Cost
Correct Answer: C
Chapter: 3
Q30:
What does "feature multiplicity" in a programming language cause?
A. Simplicity
B. Confusion
C. Abstraction
D. Consistency
Correct Answer: B
Chapter: 3
Q31:
How many ways can a variable be incremented in C language?
A. Two
B. Three
C. Four
D. Five
Correct Answer: C
Chapter: 3
Q32:
Which control statement is known to cause confusion in program logic?
A. if
B. for
C. while
D. goto
Correct Answer: D
Chapter: 3
Q33:
What happens if a programming language lacks a Boolean data type?
A. Programs run faster
B. It leads to logical errors and debugging difficulties
C. Programs are simpler to write
D. Variable types are unaffected
Correct Answer: B
Chapter: 3
Q34:
In which language are "then" and "end if" used for if-statements?
A. C
B. FORTRAN
C. Ada
D. Python
Correct Answer: C
Chapter: 3
Q35:
Fill in the blank: ___ measures how easy it is to define and use complicated structures in a programming language.
A. Readability
B. Writability
C. Reliability
D. Orthogonality
Correct Answer: B
Chapter: 3
Q36:
Which of the following is an example of an orthogonal operation in VAX?
A. A Reg1, memory_cell
B. AR Reg1, Reg2
C. ADDL operand1, operand2
D. ADD Reg1, operand1
Correct Answer: C
Chapter: 3
Q37:
What is the purpose of type checking in programming languages?
A. To ensure compile-time efficiency
B. To validate variable types during execution
C. To prevent errors related to operand types
D. To improve program execution speed
Correct Answer: C
Chapter: 3
Q38:
Fill in the blank: Exception handling improves program ____ by intercepting and handling runtime errors.
A. Speed
B. Reliability
C. Simplicity
D. Cost
Correct Answer: B
Chapter: 3
Q39:
Which of the following impacts training costs for a programming language?
A. Compiler speed
B. Language simplicity
C. Execution time
D. Development environment
Correct Answer: B
Chapter: 3
Q40:
Fill in the blank: More compilation speed can reduce ________ costs.
A. Development
B. Execution
C. Productivity
D. Training
Correct Answer: C

Test Your Knowledge

Take a timed quiz on Modern Programming Languages

🚀 Start Quiz Now