Programming for Problem Solving Unit 3 Notes AKTU (BCS101)
AKTU · BTECH · Semester 1, 2 · Programming for Problem Solving · Unit 3 · Notes
AKTU Programming for Problem Solving (BCS101) Unit 3 notes for B.Tech Semester 1/2 – Loops Arrays Strings and Structures. Topics: Iteration and Loops…
A preview is available. Sign in or check access options in the reader for the complete resource.
Unit 3: Loops Arrays Strings and Structures – AKTU syllabus topics
- Iteration and Loops: While and Do While Loop, For Loop Multiple Variables, Break Goto Continue Statements
- Arrays: Array Notation and Manipulation, Multi Dimensional Arrays, Passing Arrays to Functions
- Character Arrays and Strings
- Structure Union Enumerated Types: Structure and Array of Structures, Union, Enumerated Data Types
Most asked AKTU PYQ questions from Unit 3
- Q2c. What is the use of break statement in loops? Write a program in C using while loop to elaborate the use of break statement. (10 marks, 2018-19)
- Q2d. Write a program in C to input two 3x3 matrix from the user and print multiplication as the result in matrix form. (Write comments also at appropriate places in the program) (10 marks, 2018-19)
- Q5a. Write a program in C to print following pattern with appropriate comments: 10 9 8 7 6 5 4 3 2 1 (10 marks, 2018-19)
- Q6b. Explain the importance of structure in C programming. Write a program in C using structure to enter and print the record of 10 books available in your library. Following fields may be included in the record: book_title, book_price and number_of_pages. (10 marks, 2018-19)
- Q1e. Differentiate while and do while loop. (2 marks, 2018-19)
- Q1g. Explain the significance of null character in string. (2 marks, 2018-19)
- Q2c. Take the three digit number from the user then write a program to check entered number is palindrome or not. (10 marks, 2019-20)
- Q5a. (i) Write a program in C to generate the Fibonacci series up to the last Fibonacci number less than 100. Also finds the sum of all Fibonacci numbers and total count of all Fibonacci numbers. (ii) Write a program in C to print the following pattern: 2 3 4 5 6 7 3 4 5 6 7 4 5 6 7 5 6 7 6 7 7 (10 marks, 2019-20)
- Q1f. Differentiate between while and do-while loop. (2 marks, 2019-20)
- Q1h. Differentiate between structure with union. (2 marks, 2019-20)
AKTU paper codes: BCS101, BCS201, KCS101, KCS101T, KCS201, KCS201T
Other Programming for Problem Solving units
Programming for Problem Solving previous year papers
More Programming for Problem Solving resources
Browse all notes · Semester 1 notes