T4Tutorials .PK

VU Past Papers CS201-Important MCQs on Programming Concepts

​ Q#1: What is the definition of programming?
(A) A set of random activities
(B) A sequence of steps to solve a particular problem
(C) A creative expression of abstract ideas
(D) A mechanism for computer communication
Answer: (B) A sequence of steps to solve a particular problem

Q#2: According to Alan Perlis, what is his sarcastic statement about modern education?
(A) Programming is a boring activity
(B) Modern education teaches critical skills effectively
(C) Making plans and organizing thoughts are unnecessary skills
(D) Programming develops essential skills for everyone
Answer: (C) Making plans and organizing thoughts are unnecessary skills

Q#3: How does Mr. Steve Summit define programming at its most basic level?
(A) A complex set of instructions
(B) Telling the computer what to do
(C) Creating artificial mechanisms
(D) Solving a problem with natural language
Answer: (B) Telling the computer what to do

Q#4: Why does Matthias Felleisen argue that learning to program is important?
(A) To automate tasks effectively
(B) To use application software efficiently
(C) Develops analytical and problem-solving abilities
(D) Traditional programming is useful for everyone
Answer: (C) Develops analytical and problem-solving abilities

Q#5: What skills are emphasized as needed for programming in the paragraph?
(A) Technical expertise only
(B) Mathematical proficiency
(C) Critical reading, analytical thinking, and creative synthesis
(D) Only creative synthesis
Answer: (C) Critical reading, analytical thinking, and creative synthesis

Q#6: According to the paragraph, what is a crucial skill in programming regarding problem analysis?
(A) Creativity
(B) Attention to detail
(C) User interface design
(D) Reusability
Answer: (B) Attention to detail

Q#7: When writing a program, what is the advice regarding reusability?
(A) Avoid reusing code to maintain uniqueness
(B) Always write code from scratch
(C) Consider the possibility of reuse in related problems
(D) Reusability is not important in programming
Answer: (C) Consider the possibility of reuse in related problems

Q#8: What does the paragraph suggest about good user interface design?
(A) Assume users are computer literate
(B) Provide a complex interface for experienced users
(C) Always make interfaces self-explanatory and easy to understand
(D) User interfaces are not important in programming
Answer: (C) Always make interfaces self-explanatory and easy to understand

Q#9: How does the paragraph characterize computers?
(A) Intelligent beings
(B) Stupid and unable to think independently
(C) Self-learning entities
(D) Capable of understanding human language
Answer: (B) Stupid and unable to think independently

Q#10: Why is commenting code liberally recommended in programming?
(A) It improves program performance
(B) It adds unnecessary complexity
(C) Comments help explain the code without affecting performance
(D) Comments take up valuable memory space
Answer: (C) Comments help explain the code without affecting performance

Q#11: What is the comparison made between learning to design programs and playing soccer?
(A) Both involve physical activity
(B) Learning soccer is more complex
(C) Designing programs is not a creative process
(D) Both require learning basic skills before creativity
Answer: (D) Both require learning basic skills before creativity

Q#12: According to the paragraph, what is a programmer similar to?
(A) A mathematician
(B) A musician
(C) A scientist
(D) All of the above
Answer: (B) A musician

Q#13: What does the author suggest about the importance of design recipes?
(A) They are irrelevant in programming
(B) They are necessary for soccer players
(C) They help in refining programs until they meet aesthetic standards
(D) They are only useful for architects
Answer: (C) They help in refining programs until they meet aesthetic standards

Q#14: What are the recommended steps for designing a program properly?
(A) Analyzing the problem and then writing code
(B) Formulating statements and then evaluating activities
(C) Expressing the essence abstractly and evaluating activities
(D) Skipping the analysis and directly coding the solution
Answer: (C) Expressing the essence abstractly and evaluating activities

Q#15: In the example of developing a payroll system, what is the first step suggested in the problem analysis?
(A) Write the code for the payroll system
(B) Formulate precise language statements
(C) Divide the problem into small segments and calculations
(D) Assume the needs of the users
Answer: (C) Divide the problem into small segments and calculations

Q#16: What is the emphasis on testing and checking in program evaluation?
(A) It is unnecessary
(B) It should be done only once
(C) It is crucial to refining the program
(D) It is only for large programs
Answer: (C) It is crucial to refining the program

Q#17: According to the paragraph, what is a major point to remember when programming?
(A) Always assume the users understand the program
(B) Assume the needs of the users
(C) Skip detailed attention to the logic of the program
(D) Pay attention to the users’ assumptions
Answer: (B) Assume the needs of the users

Q#18: What does the paragraph suggest about the assumption of computer users’ knowledge?
(A) Users are always computer literate
(B) Users know very little about computers
(C) Assume users know everything about computers
(D) Providing user-friendly interfaces is unnecessary
Answer: (B) Users know very little about computers

Q#19: What does the paragraph propose regarding the repetition of the program design cycle?
(A) It is unnecessary
(B) It should be done only once
(C) It helps achieve a refined solution
(D) It is only for large programs
Answer: (C) It helps achieve a refined solution

Exit mobile version