Computer Science Subject 12th Class ICS Part 2 Notes, Chapter 01, Chapter 02, chapter 03, chapter 04, chapter 05, chapter 06, chapter 07, chapter 08 and chapter 09.
Computer Science Notes of All Chapters
Table of Contents
Chapter 1 Operating Systems
- MCQs
- ABBREVIATION
- True/False
- question and answer
- Definition
- OPERATING SYSTEM
- MULTITASKING OPERATING SYSTEM
- Differentiate between the following
- distributed operating system
- ADVANTAGES
- DISADVANTAGES
- Describe the functions of operating systems
- Describe the functions of operating systems
- WINDOWS OPERATING SYSTEM
- UNIX
Chapter 2 System Development Life Cycle
- What is the Systems Development Life Cycle?
- What are the 7 phases of SDLC?
- A short question and long question
- Define software development life cycle (SDLC). What are its objectives?
- DEFINITION
- OBJECTIVES OF SDLC
- What is a system? Where exactly the testing activities begin in SDLC?
- Why is the software development life cycle important for the development of software?
- Who are stakeholders of SDLC? Describe their responsibilities.
- Who are stakeholders of SDLC? Describe their responsibilities.
- etc click below button
Chapter 3 Object Oriented Programming using C++
- Q.5) Pick that variable from the following list which is improperly declared and named. Also, describe the reason of its invalidity.
- Q.6) Write a C++ program to get six subject marks of a student and then calculate its total, average, and percentage and display them on screen.
- Q.7) Write a C++ program to find the mum value out of three integers using conditional operator.
- KPK Grade 12 Computer Science Notes
- Q.8) Write a C++ program to find out the roots of a quadratic equation.
- Q.9) Write a C++ program to find out the area of a rectangle and display the result on the screen
- Q.10) Write a C++ program to get the age of a student from the user at run time and display it on the screen.
- What is object-oriented programming in C++?
- What is object-oriented programming with example?
Chapter 4 Control Structures
- KPK Grade 12 Computer Science Notes
- 2nd year Computer science Notes Chapter 4 Control structures
- .4) Write a C++ program that takes two integers and characters representing one of the following mathematical operations: +,-,/, or *. Use a switch statement to perform the appropriate mathematical operation on the integers, and display the result. If an invalid operator enters then “Error” message should be displayed and the program should exit (use the exit() function).
- Q.5) Write a program using for loop that prints even numbers from 0 to 20.
- Q.6) Write a program using while loop that takes an integer for a variable value, and returns the sum of all the numbers from 1 to value. Hint: For example, nValue=5 should return 15, which is 1+2+3+4+5
- Q.8) Write a C++ program to read the address of a person and exit when the user enters dot (.) from the keyboard.
- Q.9) Write a C++ program to find out the area of a triangle and if any side is zero then display the message “There is no triangle”.
- Q.10) Write a C++ program to input a character from the keyboard and display the message after testing whether it is Vowel or Consonant.
- What are the 3 types of control structures?
Chapter 5 Arrays and Strings
KPK Grade 12 Computer Science Arrays and Strings
- Q.5) Write down a C++ program to find the multiplication of two matrices A[3][2] and B[2][3].
- Q.6) Write down a C++ program to find the subtraction and addition of two matrices A[3][3] and B[3][3].
- Q.7) Write a C++ program to find the transpose of a matrix A[3][3].
- Q.8) Write a C++ program to read the temperature of the whole week in an array and then find the hottest day of the week.
- Q.9) Write a C++ program to read ten alphabets of English from the keyboard into a character type array and then sort them in descending order.
- Q.10) Write a C++ program to find the of the values of a two-dimensional array int Test [2][3] and display the result on the screen.
Chapter 7 Pointers

- Q.4) Define the term pointer. Describe the advantages of using pointer variables.
- Q.5) What is the difference between the deference operator* and reference operator &? Explain with the help of some lines of code.
- Q.6) What is meant by the term pointer initialization? Write a simple program to illustrate this concept.
- Q.7) How the declaration of a pointer variable is different from the declaration of a variable.
Chapter 8 Objects and Classes

- Q.4) Write a C++ program implementing a class with the name Circle having two functions with the names: GatRadius and CalArea. The functions should get the value for the radius from the user and then calculate the area of the circle and display the result.
- Q.5) Write a C++ program implementing inheritance between Employee (base class) and Manager (derived class).
- Q.6) Diagrammatically represent the following scenario of inheritance:
- Q.7) Write a C++ program implementing a class with the name ConstDest having constructor and destructor functions in its body.
- Q.8) Write a C++ program implementing a class with the name Time. This class should have a constructor to initialize the time, hours, minutes and seconds. The class should have another function named ToSecond() to convert and display the time into seconds.
- Q.9) What is an ect? How objects are created to access members of a class?
- Q.10) Explain inheritance and polymorphism with examples.
KPK Chapter 9 File Handling

- Q.4) Define file. Describe different types of file.
- Q.4) Define file. Describe different types of file.
- Q.6) Define streams. Describe the input and output stream in detail.
- Q.7) What is meant by the term mode of file opening? Describe different modes of opening file.
- Q.7) What is meant by the term mode of file opening? Describe different modes of opening file.