HamroCSIT Logo
HAMRO CSIT
  • Course New
  • Entrance
    • Entrance Preparation
    • MCQ Questions
    • Colleges
    • Entrance Class
    • Entrance Books
    • Free Entrance Video Course
  • Semester
    • First Semester
    • Second Semester
    • Third Semester
    • Fourth Semester
    • Fifth Semester
    • Sixth Semester
    • Seventh Semester
    • Eight Semester
  • Questions
  • Subscription Automated
  • Notices
  • Articles
  • More
    • Ask Question
    • College Ambassadors
    • Financial Support Program
    • Contribute
    • Contact Us
Login Register
Hamro CSIT User Account
  • Sign In
  • Create Account


Shape | Hamro CSIT Shape | Hamro CSIT Shape | Hamro CSIT Shape | Hamro CSIT
Subject

C Programming

This course is designed to familiarize students to the techniques of programming in C

Subject Image | Hamro CSIT
  • Chapters
  • Syllabus
  • Question Banks
  • Questions
  • Text Book
  • Practical
  • Viva

Exam Year

  • C programming Question Bank 2081
  • C Question Bank 2080
  • C Question Bank 2079
  • C Question Bank 2078
  • C Question Bank 2074
  • C Question Bank 2075
  • C Question Bank 2077

Tribhuvan University

Institute of Science and Technology

2079

Bachelor Level / first-semester / Science

Computer Science and Information Technology( CSC115 )

C Programming

Full Marks: 60 + 20 + 20

Pass Marks: 24 + 8 + 8

Time: 3 Hours

Candidates are required to give their answers in their own words as far as practicable.

The figures in the margin indicate full marks.

Section A

Attempts any two questions:

1

What is the difference between exit(0) and exit(1)? Discuss the need of nested structue with an example. Write a program to find the value of xy without using POW code.

2

Why do we need a break and continue statement? Define formal argument and actual argument in function with examples. Identify and list the errors in the following code.

int main(){
    int a,b,c
    scanf("%d%d%d, &a, &b, &c);
    sum(a, b, c);
    return -1;
}

void sum(int x, int y, int z){
    int sum;
    sum = a + b + c;
    return sum;
}
3

Write a program to demonstrate the following menu-driven program. The user will provide an integer and alphabet for making choice and the corresponding task has to be performed according as follow:

  1. Find Odd or Even
  2. Find Positive or Negative
  3. Find the Factorial value
  4. Exit

The choice will be displayed until the user will give “D” as a choice.

Section B

Attempts any eight questions:

4

How do you swap the values of two integers without using the third temporary variable? Justify with the example.

5

Write a program to find the sum of digits of a given integer using recursion.

6

Differentiate between constant and literals. Why do we need to define the type of data?

7

Write a program to find the second largest number in the given array of numbers.

8

Create a structure “Employee” having Name, Address, Salary, and Age as member functions. Display the name of the employee having aged between 40 and 50 are living in Kathmandu.

9

List any one advantage and disadvantage of the pointer. How do you pass pointers as function arguments?

10

Suppose a file named “Num.txt” contains a list of integers. Write a program to extract the prime numbers only from that file and write them on “Prime.txt” file.

11

What is the advantage of the union over structure? List any four-string library functions with the prototype.

12

Write short notes on

  1. Local, Global, and Static variables
  2. Conditional Operator
C Programming Question Bank Solution 2079
Solution Video
Solution
Share

Share this link via

Or copy link

logoHAMROCSIT

Hamro CSIT is a comprehensive web and mobile platform that provides B.Sc. CSIT students with resources like notes, syllabi, question banks, solved past papers, practical files, and free entrance preparation materials — all in one place.

  • [email protected]
Semester
  • First Semester
  • Second Semester
  • Third Semester
  • Fourth Semester
  • Fifth Semester
  • Sixth Semester
  • Seventh Semester
  • Eighth Semester
Links
  • About Us
  • FAQs
  • Sitemap
  • Privacy Policy
  • Terms and Conditions
  • College Ambassadors
  • Financial Support Program
Hits Counter
20240640
Google Play App Store
Follow Us

Copyright 2026 | HAMROCSIT | All Right Reserved

Official Payment Partner Esewa Logo
HAMROCSIT.COM

Copyright 2024 | HAMROCSIT.COM | All Right Reserved - Nymna Technology