1 Lecture

CS101

Midterm & Final Term Short Notes

Introduction to Computer Science

Introduction to Computer Science is a course designed to provide students with a fundamental understanding of computer science concepts. Students will learn about programming languages, data structures, algorithms, and computer systems. The cour


Important Mcq's
Midterm & Finalterm Prepration
Past papers included

Download PDF

Which of the following is NOT a programming language?

A. Java

B. Python

C. C++

D. Microsoft Excel

Answer: D. Microsoft Excel


Which of the following is an example of an algorithm?

A. Playing a video game

B. Checking your email

C. Making a sandwich

D. Sorting a list of numbers in ascending order

Answer: D. Sorting a list of numbers in ascending order


What is a variable in programming?

A. A keyword used to define a function

B. A value used to perform a calculation

C. A named location in memory used to store data

D. A programming language used to write code

Answer: C. A named location in memory used to store data


Which of the following is NOT a basic data type in programming?

A. Integer

B. Float

C. Boolean

D. Text

Answer: D. Text


What is the purpose of a loop in programming?

A. To execute a set of instructions only once

B. To repeat a set of instructions multiple times

C. To perform a calculation

D. To store data

Answer: B. To repeat a set of instructions multiple times


Which of the following is a data structure used to store a collection of elements in a specific order?

A. Array

B. Queue

C. Stack

D. Binary Tree

Answer: A. Array


What is the difference between a compiler and an interpreter?

A. A compiler translates code into machine language, while an interpreter executes code directly.

B. An interpreter translates code into machine language, while a compiler executes code directly.

C. A compiler and an interpreter are the same thing.

D. A compiler translates code into high-level language, while an interpreter translates it into machine language.

Answer: A. A compiler translates code into machine language, while an interpreter executes code directly.


What is the purpose of a function in programming?

A. To repeat a set of instructions multiple times

B. To store data

C. To perform a calculation

D. To encapsulate a set of instructions for reuse

Answer: D. To encapsulate a set of instructions for reuse


What is a conditional statement in programming?

A. A statement that performs a calculation

B. A statement that causes a program to stop executing

C. A loop that repeats a set of instructions while a condition is true

D. A statement that executes code based on a specific condition

Answer: D. A statement that executes code based on a specific condition


What is an algorithm?

A. A set of instructions for solving a problem

B. A programming language

C. A function used to perform calculations

D. A data structure used to store data

Answer: A. A set of instructions for solving a problem



Subjective Short Notes
Midterm & Finalterm Prepration
Past papers included

Download PDF

What is a programming language?

Answer: A programming language is a set of instructions and commands used to create software programs, applications, and websites.


What is an algorithm?

Answer: An algorithm is a set of instructions used to solve a problem or complete a task, often used in programming.


What is a data structure?

Answer: A data structure is a way of organizing and storing data in a computer, such as an array or a linked list.


What is a function in programming?

Answer: A function is a reusable block of code that performs a specific task or set of tasks within a program.


What is the difference between a variable and a constant?

Answer: A variable is a value that can change during program execution, while a constant is a value that remains the same throughout the program.


What is an operating system?

Answer: An operating system is software that manages computer hardware and software resources, and provides common services for computer programs.


What is a database?

Answer: A database is a collection of data that is organized and stored in a computer, typically used for managing large amounts of information.


What is a network?

Answer: A network is a collection of computers and devices connected together, often used for sharing information and resources.


What is object-oriented programming?

Answer: Object-oriented programming is a programming paradigm that uses objects and their interactions to design and create software programs.


What is the difference between a compiler and an interpreter?

Answer: A compiler translates entire program into machine language, while an interpreter reads and executes the code line by line.

Introduction to Computer Science is a fundamental course that introduces students to the core concepts and principles of computer science. Through this course, students will gain a broad understanding of topics such as programming, algorithms, data structures, operating systems, networks, and more. The course covers the basics of programming languages, their syntax, and their usage. Students will learn about the various types of programming languages, such as object-oriented programming, procedural programming, and functional programming. The course also focuses on algorithms, which are a set of instructions used to solve a problem or complete a task. Students will learn how to design and analyze algorithms, as well as the different types of data structures that algorithms can use, such as arrays, linked lists, stacks, and queues. In addition, students will gain an understanding of operating systems, databases, networks, and other important concepts in computer science. The course is designed to be accessible to beginners, but also offers challenges for more advanced students. Some of the keywords that may help to rank this content on Google include: Introduction to Computer Science, programming, algorithms, data structures, operating systems, networks, programming languages, object-oriented programming, procedural programming, functional programming, and computer science basics.