Programming in C (CS1003) End Semester Jan 2026 Question Paper

RV University End Semester exam for Programming in C (CS1003), held Jan 2026, semester 1, with 9 questions. Also searched as C, PIC, POC. Last updated 2026-11-24.

Questions

  1. 1a. After the Compiler completes its task but before the Linker starts, the source code has been turned into "Assembly Code." What is the primary reason the computer cannot execute this assembly code directly without a further conversion step?
  2. 1b. Given the preprocessor directive define SQUARE(x) x x; What is the numerical result of the expression SQUARE(2 + 3)?
  3. 1c. Differentiate between for , while and do-while loops. In what situations is each loop preferred?
  4. 2a. What is a static variable ? Explain with suitable example
  5. 2b. What is a pointer? Explain its different applications.
  6. 3. Create a user defined function which accepts a string which contains first name, middle name and last name and prints only the first name, middle initial & last name. Eg. Sample input : Albert James David Sample o/p Albert J David i) The main function must have 1 string initializ
  7. 4a. Explain the syntax, provide an example, and describe the functionality of any six built-in string handling functions from the C standard library (string.h)
  8. 4b. Write a C program to display the contents of a text file backwards — starting from the last character to the first.
  9. 5. An organization wants to process employee details. Using structures in C, write a program to, Read details of all employees: Employee ID, Name, and Salary. Display the employee details in the format: ID: <empid Name: <name Salary: <salary

More Programming in C papers

Browse more RVU papers

RVU 1st semester previous year question papers · RVU End-sem previous year question papers · RVU School of Computer Science and Engineering (SoCSE) question papers