BICTE ICTED 416 Programming Concept with C 2078

From ICTED-WIKI
Revision as of 02:13, 27 November 2024 by WikiSysop (talk | contribs)
Jump to navigation Jump to search

TRIBHUVAN UNIVERSITY

2078

Bachelors/Education /1" Semester

Full Marks: 40

ICTEd 416 Programming Concept with C

Time: 3 hrs.

Candidates are required to give their answers in their own words as for as practicable. The figures in the margin indicate full marks.

Attempt all questions

Group "B" 6X 5 marks 30

1. Write down rules of naming identifiers in C. Discuss unary operators and arithmetic binary operators with example.

OR

What is variable? Explain the different data types used in C.

2. Differentiate between while loop and do while loop. Explain about switch case statement with suitable example

3. What is function? Why is it important? Write a C program by using function to find whether given number is odd or not.

4. What is meant by String? How is it represented in C? Write a C program store age of 10 students in an array and then find and Display average age.

5. What is structure? How can you declare it? How can you use array of structure? Explain with example.

6. Why file handling is important? What are different file opening modes? Write a C program to write your name, roll number, age, sex etc into file student.txt

OR

What is a pointer? Explain pointer arthematic with example