- Type
- Midterm past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 437 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 43. Download the file for all 43 pages.
What is a program in the context of programming?
✅ A sequence of steps to solve a problem A random collection of commands A set of files and folders An error checking method
According to Alan Perlis, why is teaching programming against the grain of modern education?
✅ It involves planning, organizing, and being self-critical Because it is boring and repetitive Because it’s expensive Because students don’t need computers
What does Steve Summit mean by saying computers need detailed instructions?
✅ Computers need precise and complete instructions Computers are smart and understand human language Computers can infer what we mean Computers can fix our mistakes
Why is programming considered important?
✅ It improves problem-solving and analytical thinking It is only for software engineers It makes computer games It avoids using application software
Which of the following is not a skill required for programming?
Using a mouse ✅ Avoiding comments in code Paying attention to detail Thinking about reusability
Why should code be commented liberally?
✅ To explain functionality for yourself and others To make the program run faster To confuse the compiler To hide logic from users
What does it mean when we say “computers are stupid”?
✅ They follow instructions exactly without understanding They can’t perform arithmetic They get viruses easily They cannot be programmed
What is the purpose of a program design recipe?
✅ To follow structured steps for writing code To learn different programming languages To find bugs in operating systems To build hardware systems
Which step is not part of the design recipe mentioned in the lecture?
✅ Guessing the output Analyzing a problem Using examples Formulating precise comments
What should be the first step in writing a program?
✅ Understand and analyze the problem Copy code from the internet Start coding immediately Create graphics first
Which statement about reusability is true?
✅ Reusable code saves time and effort Reusable code should always be rewritten Reusability is not important Comments make code reusable
What should be assumed about users when designing a program?
They are computer experts They can write code ✅ They may not understand technical terms They can debug errors
Why is it bad to be vague when writing code?
✅ The computer cannot infer or guess intentions It confuses other programmers It slows the system It makes the UI look ugly
What is meant by logical correctness in programming?
✅ Code should solve the problem as intended Code must run fast Code must be grammatically correct Code should be complicated
What makes programming fun, according to the lecture?
✅ It’s a creative way to solve problems It’s a way to get rich It’s easier than using apps It avoids using logic
Lecture # 02:
What are the two main categories of software?
✅ System software and Application software Hardware and Software Compiler and Interpreter Operating system and Antivirus
Which of the following is not part of system software?
✅ Microsoft Word Device Drivers Utilities
What is the primary function of an operating system?
To entertain users To create games ✅ To manage hardware resources To browse the internet
What is a device driver?
A hardware component ✅ A program that helps communicate with hardware A gaming software A virus checker
Why do we need drivers for devices like printers and scanners?
✅ To allow the computer to interact with them To make them look good To prevent hacking To store passwords
Related CS201 files
All CS201 files →- CS201 Midterm MCQs by VU Topper RM Midterm PDF 317 KB
- CS201 Midterm Solved MCQs by Junaid Midterm PDF 1.3 MB
- CS201 Midterm Short Notes Midterm PDF 171 KB
- CS201 Midterm Short Questions Updated Midterm PDF 304 KB
- CS201 Highlighted Handouts Set 5 Highlighted PDF 7 MB
- CS201 C++ Notes by Sonu Ilyas Quiz PDF 392 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.