1 Lecture
CS201
Midterm & Final Term Short Notes
What is programming
Programming is the process of designing, writing, and testing computer programs. It involves using a programming language to communicate with a computer and give it instructions to perform specific tasks. Programming is used in a wide variety of
Important Mcq's
Midterm & Finalterm Prepration
Past papers included
Download PDF
- Which of the following best describes programming? A) The process of designing and building computers B) The process of writing and testing computer programs C) The process of using computers to solve problems D) The process of analyzing data
Answer: B) The process of writing and testing computer programs
- Which of the following is NOT a programming language? A) Java B) HTML C) Python D) Photoshop
Answer: D) Photoshop
- What is the purpose of programming? A) To design and build computers B) To create user interfaces C) To write computer programs to solve problems D) To manipulate data
Answer: C) To write computer programs to solve problems
- Which of the following is a high-level programming language? A) Assembly language B) C++ C) Machine language D) Binary
Answer: B) C++
- Which of the following is a low-level programming language? A) Java B) Python C) Assembly language D) HTML
Answer: C) Assembly language
- What is the role of a compiler in programming? A) To convert high-level code to machine code B) To debug programs C) To provide an interface for users to interact with the computer D) To store and retrieve data
Answer: A) To convert high-level code to machine code
- Which of the following is a programming paradigm? A) Object-oriented programming B) Web programming C) Mobile app development D) Data analysis
Answer: A) Object-oriented programming
- Which of the following is NOT a data type in programming? A) Integer B) Float C) String D) Sound
Answer: D) Sound
- Which of the following is NOT a control structure in programming? A) If-else statement B) For loop C) While loop D) Array
Answer: D) Array
- Which of the following is a programming tool? A) Keyboard B) Mouse C) Integrated Development Environment (IDE) D) Printer
Answer: C) Integrated Development Environment (IDE)
Subjective Short Notes
Midterm & Finalterm Prepration
Past papers included
Download PDF
What is programming, and why is it important? Answer: Programming is the process of writing computer programs that instruct a computer to perform specific tasks. It is important because it allows us to automate tasks, solve complex problems, and create innovative technologies.
What are programming languages, and why are they necessary? Answer: Programming languages are languages used to communicate with a computer and write code. They are necessary because they allow us to write instructions that a computer can understand and execute.
What is a compiler, and what is its role in programming? Answer: A compiler is a software tool that translates high-level programming code into machine code that a computer can understand and execute. Its role in programming is to convert human-readable code into machine-readable code.
What are the common data types used in programming? Answer: The common data types used in programming include integers, floating-point numbers, characters, and strings.
What are the common control structures used in programming? Answer: The common control structures used in programming include if-else statements, loops (for, while, do-while), and switch statements.
What is an algorithm, and why is it important in programming? Answer: An algorithm is a set of step-by-step instructions that solve a problem or perform a task. It is important in programming because it allows us to create efficient and optimized programs.
What is object-oriented programming, and what are its advantages? Answer: Object-oriented programming is a programming paradigm that focuses on creating objects that encapsulate data and behavior. Its advantages include code reuse, modularity, and easier maintenance.
What is a function, and why is it important in programming? Answer: A function is a block of code that performs a specific task. It is important in programming because it allows us to write reusable code and break down complex problems into smaller, more manageable parts.
What is debugging, and why is it important in programming? Answer: Debugging is the process of finding and fixing errors in code. It is important in programming because it ensures that the program works correctly and reliably.
What are some ethical considerations in programming? Answer: Some ethical considerations in programming include protecting user privacy and security, avoiding bias and discrimination, and respecting intellectual property rights.