Order PDF of any content from our website with a little minor Fee to donate for hard work. Online MCQs are fully free but PDF books are paid. For details: contact whatsapp +923028700085 Important notes based PDF Books are available in very little price, starting from 500/-PKR; Order Now: contact whatsapp +923028700085

Past Papers CS101 – VU Computer Science Importants MCQs on Programming Languages

Q#1: What is the key distinction emphasized in the paragraph regarding software verification?
(A) The need for machine-independent programming languages
(B) The difference between software believed to be correct and software that is correct
(C) The importance of security in software development
(D) The use of assembly languages in software verification
Answer: (B) The difference between software believed to be correct and software that is correct

Q#2: What was the root cause of the Therac-25 X-ray radiation incident mentioned in the paragraph?
(A) Security breach
(B) Hardware failure
(C) Technical issue with software
(D) Environmental factors
Answer: (C) Technical issue with software

Q#3: In the context of programming languages, what is an assembler used for?
(A) Executing high-level code
(B) Debugging machine code
(C) Converting mnemonic expressions to machine language
(D) Writing machine-independent code
Answer: (C) Converting mnemonic expressions to machine language

Q#4: What characterizes the third generation of programming languages mentioned in the paragraph?
(A) They are machine-dependent and use assembly language
(B) They are machine-independent and use natural language
(C) They are higher-level and machine-independent
(D) They are lower-level and machine-dependent
Answer: (C) They are higher-level and machine-independent

Q#5: Which programming languages are cited as examples of third-generation languages in the paragraph?
(A) Assembly and FORTRAN
(B) COBOL and machine language
(C) FORTRAN and COBOL
(D) FORTRAN and HLT
Answer: (C) FORTRAN and COBOL

Q#6: What term is used to describe programs that translate high-level primitives into machine-language programs?
(A) Compilers
(B) Assemblers
(C) Interpreters
(D) Translators
Answer: (A) Compilers

Q#7: What disadvantage of assembly languages is highlighted in the paragraph?
(A) They are machine-dependent and cannot be transported
(B) They force programmers to think in small, machine-level steps
(C) They are difficult to compile into machine language
(D) They lack support for high-level primitives
Answer: (B) They force programmers to think in small, machine-level steps

Q#8: What is one of the challenges when making software machine-independent?
(A) The lack of standardized languages
(B) The difficulty of translating natural languages to machine code
(C) The need for precise grammatical analysis
(D) The variety of machine-specific I/O operations
Answer: (D) The variety of machine-specific I/O operations

Q#9: Which programming paradigm is associated with the imperative approach to programming?
(A) Functional
(B) Object-oriented
(C) Imperative
(D) Declarative
Answer: (C) Imperative

Q#10: In the declarative paradigm, what task does a programmer primarily focus on?
(A) Developing precise algorithms
(B) Translating machine code into high-level code
(C) Describing the problem to be solved
(D) Debugging code
Answer: (C) Describing the problem to be solved

Q#11: What was the significant discovery that boosted the declarative paradigm?
(A) The emergence of logic programming
(B) The development of high-level languages
(C) The creation of formal logic within mathematics
(D) The advancement of machine-independent languages
Answer: (C) The creation of formal logic within mathematics

Q#12: Which programming paradigm emphasizes building solutions through a sequence of commands?
(A) Functional
(B) Object-oriented
(C) Imperative
(D) Declarative
Answer: (C) Imperative

Q#13: What is the primary goal of the declarative paradigm in programming?
(A) Developing machine-dependent algorithms
(B) Simplifying the debugging process
(C) Describing the problem to be solved
(D) Enhancing security measures
Answer: (C) Describing the problem to be solved

Q#14: Which term is used for small variations of a programming language that are not part of the standard version?
(A) Language extensions
(B) Compiler enhancements
(C) Syntax modifications
(D) Standard deviations
Answer: (A) Language extensions

Q#15: What is the primary purpose of an assembler in programming?
(A) Executing high-level code
(B) Debugging machine code
(C) Converting mnemonic expressions to machine language
(D) Writing machine-independent code
Answer: (C) Converting mnemonic expressions to machine language

Q#16: What is the term for a program that translates high-level primitives into machine-language programs?
(A) Compilers
(B) Assemblers
(C) Interpreters
(D) Translators
Answer: (A) Compilers

Q#17: What challenge often arises when making software machine-independent?
(A) Lack of standardized languages
(B) Difficulty in formal grammatical analysis
(C) Variability in I/O operations
(D) Need for advanced machine translation
Answer: (C) Variability in I/O operations

Q#18: What term describes the result of minor modifications to a programming language that make it incompatible with other compilers?
(A) Dialect
(B) Syntax error
(C) Compiler extension
(D) Standardization
Answer: (A) Dialect

Q#19: What major paradigm shift has influenced the development of programming languages?
(A) A shift from imperative to functional languages
(B) A shift from assembly languages to high-level languages
(C) A shift from machine independence to machine dependence
(D) A shift from focusing on algorithms to high-level problem descriptions
Answer: (D) A shift from focusing on algorithms to high-level problem descriptions

Q#20: What is the term for a high-level primitive used to represent a concept associated with a major feature of a product during the design process?
(A) Language extension
(B) Program variable
(C) Compiler feature
(D) High-level identifier
Answer: (B) Program variable

Contents Copyrights Reserved By T4Tutorials