Friday, January 22, 2021

29. Write a program that will read 10 integers from user and store them in an array. Implement array using pointers. The program will print the array elements in ascending and descending order.

 29. Write a program that will read 10 integers from user and store them in an array. Implement array using pointers. The program will print the array elements in ascending and descending order.

BUBBLE SORT TECHNIQUE:







C++ CODE: 

28. Write a function that reverses the elements of an array in place. The function must accept only one pointer value and return void.

 28. Write a function that reverses the elements of an array in place. The function must accept only one pointer value and return void.




27. Copy the contents of one text file to another file, after removing all whitespaces.

 27. Copy the contents of one text file to another file, after removing all whitespaces.



26. Write a program to retrieve the student information from file created in previous question and print it in following format: Roll No. Name Marks

 26. Write a program to retrieve the student information from file created in previous question and print it in following format: Roll No. Name Marks




25. Create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file.

 25. Create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file.



24. Create a class Box containing length, breath and height. Include following methods in it: a) Calculate surface Area b) Calculate Volume c) Increment, Overload ++ operator (both prefix & postfix) d) Decrement, Overload -- operator (both prefix & postfix) e) Overload operator == (to check equality of two boxes), as a friend function f) Overload Assignment operator g) Check if it is a Cube or cuboid Write a program which takes input from the user for length, breath and height to test the above class.

 24. Create a class Box containing length, breath and height. Include following methods in it:

              a) Calculate surface Area

              b) Calculate Volume

              c) Increment, Overload ++ operator (both prefix & postfix)

              d) Decrement, Overload -- operator (both prefix & postfix)

              e) Overload operator == (to check equality of two boxes), as a friend function

              f) Overload Assignment operator

              g) Check if it is a Cube or cuboid Write a program which takes input from the user for                             length, breath and height to test the above class.




23. Create a class Triangle. Include overloaded functions for calculating area. Overload assignment operator and equality operator.

 23. Create a class Triangle. Include overloaded functions for calculating area. Overload assignment operator and equality operator.




22. Create the Person class. Create some objects of this class (by taking information from the user). Inherit the class Person to create two classes Teacher and Student class. Maintain the respective information in the classes and create, display and delete objects of these two classes (Use Runtime Polymorphism).

 22. Create the Person class. Create some objects of this class (by taking information from the user). Inherit the class Person to create two classes Teacher and Student class. Maintain the respective information in the classes and create, display and delete objects of these two classes (Use Runtime Polymorphism).



21. Create Matrix class using templates. Write a menu-driven program to perform following Matrixoperations (2-D array implementation): a) Sum b) Difference c) Product d) Transpose

 21. Create Matrix class using templates. Write a menu-driven program to perform following Matrixoperations (2-D array implementation): a) Sum b) Difference c) Product d) Transpose





Wednesday, January 6, 2021

COMPUTER GRAPHICS question set (PAKHIRA)

  CHAPTER 9

1. window and view port

2. clipping

3. Cohen_Sutherland algo

4. Midpoint subdivision'

5. Sutherland-Hodgman algo

COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 8

1. Parallel projection, Perspective projection

2. orthographic,oblique

3. Vanishing point


COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 7



1. 3D Translation, scaling , rotation


2. 3D rotation about a reference point


4. 3D reflection


5. 3D reflection about a reference point


6. 3D shearing


COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 5

1. Translation, scaling , rotation

2. Translation, scaling , rotation about a reference point

3. homogeneous coordinate system

4. reflection

5. reflection about a reference point

6. shearing




COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 4

1. polygon - concave,convex, scan conversion.

2. odd-even method.

3. winding number method.

4. Boundary fill

5. Flood fill.

6. scan line fill

7. Scan line seed fill.

COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 3

1. Scan conversion method

2. ploynomial method of line, cicrle.

3. DDA for a line, circle.

4. advantage and disadvantage of DDA.

5. Bresssenham's algorithm for line, circle.

6. Midpoint method of line, circle,ellipse.

COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 2

1. Raster Scan Display.

2. Working principle of CRT.

3. Interlacing.

4. Aspect ratio.

5. RGB & CMY color system.

6. frame buffer.

7. LUT.

8. LCD

9. Random scan devices.

10. Memory tube displays.


COMPUTER GRAPHICS question set (PAKHIRA)

 CHAPTER 1

1. Application of computer graphics.

2. Operation of computer graphics.

Deadlock:

 Operating System Question Set 

GALVIN


1. What is deadlock?

2. Request , Use, Release.
3. Necessary condition of deadlock.
4. Resource allocation graph.
5. Safe state , safe sequence, unsafe state.
6. Deadlock prevention, deadlock avoidance, deadlock recoverey.
7. Bakers algorithm- i) deadlock avoidance, ii) resource request 

File system:

 Operating System Question Set 

GALVIN


1. File attributes, File operations.

2. Aceess method.
3. Single level directory, two level directory.
4. Absolute path, relative path.
5. link
6. mount point
7. read write permission.
8. Contiguous alloaction, linked alloacation, indexed alloacation, 
9. Inode.
10. FAT,NTFS.

Disk Scheduling:

 Operating System Question Set 

GALVIN


1. FCFS, SSTF, SCAN, C-SCAN , LOOK ,

2. RAID STRUCTURE

Process synchronisation:

Operating System Question Set 
GALVIN


 1. code of producer consumer process.

2. race condition, critical section , starvation.
3. Peterson's solution.
4. semaphore - counting semaphore, binary semaphore.
5. spinlock.
6. bounded buffer problem.
7. Reader writer problem.
8. Dining philosopher problem.
9.  Producer consumer process using semaphore.
10. Monitor.
11. Bounded buffer problem using semaphore.
12. Dining philosopher problem using semaphore.
13.  Reader writer problem using semaphore.

Memory management.

 Operating System Question Set 

GALVIN


1. Address binding.

2. Base register and limit register.
3. memory protection.
4. Compile time, load time, execution time.
5. logical address, physical address.
6. dynamic loading.
7.  static linking and dynamic lining.
8. Swapping.
9. First fit, best fit, worst fit.
10. internal fragmentation, external fragmentation, 50-percent rule.
11. Paging, TLB.
12. Re-entrant code.
13. Hierarchical paging.
14. inverted page table
15. segmentation,  segmentation with paging .
16. virtual memory, demand paging.
17. Page replacement technique.
18. thrashing.
19. Working set model.
20. Buddy system.

PROCESS:

 Operating System Question Set 

GALVIN


1. What is Process?

2. Describe the structure of process in memory.
3. Show the diagram of process state.
4. What is Process Control Block?
5. Define CPU scheduling.
6. What are the various process scheduling concepts?
7. What is preemptive and non preemptive scheduling?
8. What is a Dispatcher?
9. What is dispatch latency?
10. What are the various scheduling criteria for CPU scheduling?
11. Define throughput.
12. What is turnaround time?
13.What is the objective of process scheduler?
14. Define job queue,ready queue.
15, Draw he queuing diagram of process.
16. Explain the term scheduler,short term scheduler,medium term scheduler,long term scheduler.
17. What do you mean by degree of multi programming?How it is related to scheduler?
18. What do you mean by I/O bound process and CPU bound process?
19. convoy effect, aging.

THREAD:

 Operating System Question Set 

GALVIN


1. definition.

2. single threaded and multi-threaded process.
3. synchronisation of thread.


INTRODUCTION:

 Operating System Question Set 

GALVIN


1. Differentiate between tightly coupled systems and loosely coupled systems.

2. Define OS

3. What are the differences between Batch OS and Multiprogramming?
4. What are the differences between Multitasking and Multiprogramming?
5. What is Clustered System?
6. What is Real Time System? List out their types.
7. What is the kernel?
8. What are the three main purposes of an operating system?
9. What are batch systems?
10. What do you mean by system calls?
11. Explain the various types of computer systems.
12. Explain how protection is provided for the hardware resources by the operating system.
13. What are the system components of an operating system and explain them?
14. What is mainframe computer?
15. What is workstations?
16. What is server?
17. What is bootstrap program?
18. What is firmware?
19. What is  symmetric multiprocessing (SMP) and asymmetric multiprocessing?
20. What is hot-standby mode?
21. What is response time
22. What is interactive (or hands-on) computer system
23. What is Time sharing (or multitasking)
24. What is Real-Time Embedded Systems
25. What is Handheld systems
26. What is Client-Server Computing
27. What is peer-to-peer (P2P) system