c programming previous year question papers
Model Question Paper I/II Semester C-PROGRAMMING FOR
Model Question Paper. I/II Semester. C-PROGRAMMING FOR PROBLEM SOLVING (18CPS13/23). Time: 3 hrs. Max. Marks: 100. Note: Answer any FIVE full questions |
Model Question Papers
28-Nov-2018 c. There is a queue for exchange of old 500 rupees currency notes after demonetization in the post office. But a single customer can exchange ... |
C programming for Problem Solving[18CPS13/23] QUESTION
C programming for Problem Solving[18CPS13/23]. QUESTION BANK PREAPRED BY: Dr.Jyoti Marks & Year. 1. What is structure? Explain the C syntax of structure ... |
Syllabus and Model Question Papers
UG PROGRAM (4 Years Honors). CBCS-2020-21. B.Sc. Computer Brain W Kernighan and Dennis M Ritchie - The 'C' Programming language” - Pearson publications. |
SAMPLE QUESTION PAPER (SOLVED)
(c) Rewrite the following code in python after removing all syntax error(s).Underline each correction done in the code. STRING=""HAPPY NEW YEAR" for S in range[ |
MATHEMATICS (PAPER-II)
Taking a group {e a |
Syllabus and Model Question Papers
Programming Basic concepts of Object Oriented Programming |
MCA (Sem. -1st) PROGRAMMING IN C Paper ID : [BOI02] . 2) Section
%20M-Tec |
Class: XII Session: 2022-23 Computer Science (083) Sample
16-Sept-2022 All programming questions are to be answered using Python Language only. ... (c) Year . 022. at All the best. (d) Year . 0. at all the best. 6 ... |
GATE Previous Year Solved Paper
(C) Dynamic Programming paradigm. (D) Neither Greedy nor Divide-and-Conquer nor Dynamic Programming paradigm. Key: (C). Exp: Floyd - warshall algorithm |
Model Question Paper I/II Semester C-PROGRAMMING FOR
Model Question Paper. I/II Semester. C-PROGRAMMING FOR PROBLEM SOLVING (18CPS13/23). Time: 3 hrs. Max. Marks: 100. Note: Answer any FIVE full questions |
C programming for Problem Solving[18CPS13/23] QUESTION
QUESTION BANK PREAPRED BY: Dr.Jyoti Metan Questions. Marks & Year ... Draw the flowchart and write a C program to compute simple interest. |
Model Question Papers
11-Dec-2018 The model question papers are suggestive blueprints. ... c. There is a queue for exchange of old 500 rupees currency notes. |
Syllabus and Model Question Papers
Any specific instructions to the teacher /paper setters/Exam-Chief. Superintendent It introduces the concepts of the C Programming language. |
Syllabus and Model Question Papers
Any specific instructions to the teacher /paper setters/Exam-Chief Superintendent. -. 3. Program objectives outcomes |
Model Question Paper PROGRAMMING IN C AND DATA
Note: Answer any FIVE full questions choosing one full question from each module. c. Design and develop a C program to read a year as an input and find. |
AMIE Question Paper (Programming Languages)
(d) Reverse a string using recursion in a C program. (a) Write a Java program to find the distance between two given numbers in an array of size 100. |
Indian Institute of Technology Kharagpur
30-Sept-2013 Questions have been shuffled across different question papers. ... (c) What will be the output of the program if nMax is initialized to 2K ... |
ACHARYA NAGARJUNA UNIVERSITY
B.Sc (Computer Science and IT) 1st Year |
3rd-sem-object-oriented-programming-using-c-computer-sample
Sample Question Paper. Program Name. : Computer Engineering Program Group. Program Code. : CO/CM/IF/CW. Semester. : Third. Course Title. |
Key Informations
This tutorial covers various concepts and questions related to C programming from previous years' exams.
Examples
Here are some examples to illustrate different programming concepts:
- Calculating factorial of a number
- Reversing a string
- Finding prime numbers
- Sum of elements in an array
- Sorting an array
Exercises
Here are some exercises with solutions to practice previous year's questions in C programming:
- Write a program to check if a number is prime or not.
- Implement a function to reverse a given string.
- Create a C program to calculate the factorial of a number using recursion.
- Write a program to find the largest element in an array.
- Develop a C program to generate the Fibonacci series up to n terms.
- Program to check if a number is prime or not:
- Function to reverse a given string:
- Program to calculate the factorial of a number using recursion:
- Program to find the largest element in an array:
- Program to generate the Fibonacci series up to n terms:
Case Studies
Here are some real-world scenarios where C programming is applied:
- Implementing a banking system
- Developing a student management system
- Creating a simple calculator application
- Building a file handling system
- Designing a chat application
Subcategories
List of subcategories in C programming:
- Data types and variables
- Control statements
- Functions and recursion
- Arrays and strings
- Pointers and structures
Notes
Important notes to remember in C programming:
- Always initialize variables before use
- Handle memory allocation and deallocation carefully
- Understand the concept of pointers thoroughly
- Test your code with boundary cases
- Practice coding regularly to improve skills
Step-by-Step Guide
A detailed guide on how to approach C programming:
- Understand the problem statement
- Break down the problem into smaller tasks
- Design the algorithm to solve each task
- Write code for each task and test it
- Optimize the code for better performance
Cases
Real-life cases where C programming is applied:
- Development of operating systems
- Embedded system programming
- Network programming
- Game development
- Software development
Questions & Answers
Frequently asked questions in C programming:
- What is the difference between ++i and i++?
- How to pass arguments by reference in C?
- What is the purpose of the 'volatile' keyword in C?
- Explain the difference between 'calloc' and 'malloc'.
- How do you use 'strcpy' and 'strncpy' functions?
- Answer 1: The '++i' increments the value of 'i' and then returns the updated value, while 'i++' returns the value of 'i' and then increments it.
- Answer 2: To pass arguments by reference, use pointers or pass the address of variables.
- Answer 3: The 'volatile' keyword is used to indicate that a variable may be changed by an external entity, so the compiler should not optimize its access.
- Answer 4: 'calloc' allocates memory for an array and initializes it to zero, while 'malloc' allocates memory without initialization.
- Answer 5: 'strcpy' is used to copy a string, while 'strncpy' allows you to specify the number of characters to copy.
Multiple Choice Questions
Test your knowledge with these multiple-choice questions:
- What is the output of the following code?
#include <stdio.h>
int main() {
int x = 10;
int y = ++x;
printf("%d", y);
return 0;
}
A) 9
B) 10
C) 11
D) Compilation error
Correct Answer: C) 11 - What is the purpose of the 'break' statement in a switch case?
- Which of the following is a valid C identifier?
- What is the use of the 'sizeof' operator?
- What is the default return type of a function in C?
- Answer 2: The 'break' statement is used to exit from a switch case and transfer control to the statement after the switch.
- Answer 3: An identifier in C can consist of letters, digits, and underscores, and it must begin with a letter or underscore.
- Answer 4: The 'sizeof' operator is used to determine the size of a variable or data type in bytes.
- Answer 5: The default return type of a function in C is 'int'.
About the Topic
C programming is a widely-used programming language known for its efficiency and versatility. It is commonly used for system programming, embedded systems, and application development.
Elements to Remember
Here are some key elements to remember in C programming:
- Use comments to improve code readability
- Avoid global variables whenever possible
- Practice modular programming for better code organization
- Understand the importance of data types and memory management
- Regularly update your knowledge with new features and techniques
Model Question Paper I/II Semester C-PROGRAMMING FOR
Model Question Paper I/II Semester C-PROGRAMMING FOR PROBLEM SOLVING (18CPS13/23) Time: 3 hrs Max Marks: 100 Note: Answer any FIVE full |
Model Question Paper PROGRAMMING IN C AND DATA
Note: Answer any FIVE full questions, choosing one full question from each module Design and develop a C program to read a year as an input and find |
BSC - I COMPURER SCIENCE - PAPER I PROGRAMMING
This question paper contains 2 printed pages ) Your Roll No 2514 B Sc /I COMPUTER SCIENCE--Paper I (Programming Fundamentals and Data Structures) |
BSC (H) III COMPUTER SCIENCE SYSTEM PROGRAMMING-776
Write your Roll No on the top immediately on receipt of this question paper 2 The paper has two sections 3 All the questions in the 'Section A' are compulsory |
COMPUTER PROGRAMMING (First Paper) NATIONAL
COMPUTER PROGRAMMING (First Paper) NQF LEVEL 4 (10041024) 15 March 2019 (Y-Paper) 13:00–15:00 This question paper consists of 10 pages |
Java Programming - Sample Question Paper
Semester : Fifth for CO/CM/IF and Sixth for CD Subject Title : Java Programming Marks : 100 Time: 3 Hours Instructions: 1 All questions are compulsory 2 |