C PROGRAMMING EXAMINATON (2025-26) (GOVT OF INDIA VOCATIONAL EXAMINATON)

 


GOVT OF INDIA 

VOCATIONAL EXAMINATION BOARD 

APPROVED BY GOVT.OF INDIA 

 "C PROGRAMMING"

 

FINAL EXAM 2025-26

SUBJECT CODE-REG27/16/02


Total Marks: 100
Time: 01:15 Minutes

Section A: Objective / MCQs (20 Marks)

Each question carries 2 marks.

  1. Which of the following is a valid C identifier?
    a) 1variable
    b) _var
    c) float
    d) int-var

  2. Which header file is required for printf() and scanf()?
    a) conio.h
    b) stdlib.h
    c) stdio.h
    d) string.h

  3. What is the output of this code:

    c
    int a = 5; printf("%d", a++);

    a) 6
    b) 5
    c) Error
    d) Undefined

  4. What is the size of an int on most 32-bit compilers?
    a) 2 bytes
    b) 4 bytes
    c) 8 bytes
    d) Compiler dependent

  5. Which of the following loop is executed at least once?
    a) for
    b) while
    c) do-while
    d) if


✍️ Section B: Short Answer Questions (30 Marks)

Attempt any 5 questions. Each question carries 6 marks.

  1. Explain the difference between while and do-while loops with examples.

  2. Write a C program to find whether a number is prime or not.

  3. What are functions in C? Write a function to calculate the factorial of a number.

  4. What is the use of break and continue statements? Explain with examples.

  5. Differentiate between call by value and call by reference.

  6. What are arrays in C? Write a program to find the largest element in an array.

  7. What is a pointer? Explain with an example.


🧠 Section C: Long Answer / Application-Based Questions (50 Marks)

Attempt any 2 questions. Each question carries 25 marks.

  1. Write a menu-driven C program to implement a calculator that performs addition, subtraction, multiplication, and division using switch case.

  2. Define a structure for storing student information (name, roll no, marks). Write a program to input data for 5 students and display it.

  3. Write a program using file handling to create a file named data.txt, write user input into it, and then display the contents of the file.


Comments

Popular posts from this blog

TALLY PRIME DASHBOARD BY MOHIT SIR

BILLING CHAPTER

HOW TO CREATE STOCK ITEM