Chapter Study

Bsc CSIT Semester 1 C ProgrammingUnit 8: Structure and Union (5 Hrs.)

Comprehensive questions and detailed answers for Unit 8: Structure and Union (5 Hrs.). Perfect for exam preparation and concept clarity.

10
Questions
80
Marks
Back to All Chapters

Create a structure called STUDENT with data members SID, name, address, CGPA. Write a program to initialize the value of 100 students and display the information of those students whose address is “KTM” and CGPA is between 3.5 to 4. using C program

MediumTHEORY5 marks2081(TU Final)

Define structure and nested structure. Write a program to find out whether the nth term of the Fibonacci series is a prime number or not. Read the value of n from the user and display the result in the main function. Uses separate user-defined function to generate the nth Fibonacci term and to check whether that number is prime or not.

HardTHEORY10 marks2080(TU Final)

Differentiate between source code and object code. Create a structure named Book with members Book_Name, Price and Author_Name, then take input for 10 records of Book and print the name of authors having the price of book greater than 1000.

HardTHEORY10 marks2080(TU Final)

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.

HardTHEORY10 marks2079(TU Final)

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.

MediumTHEORY5 marks2079(TU Final)

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

MediumTHEORY5 marks2079(TU Final)

Define structure. Explain nested structure with example. Create a structure named book with name, author, and publisher as its members. Write a program using this structure to read data of 50 books and display name of those books published by “XYX” publisher.

HardTHEORY10 marks2078(TU Final)

What is structure? How is it different from union? Create a structure named course with name, code, and credit_hour as its members. Write a program using this structure to read data of 5courses and display data of those curses with credit_hour greater than 3.

HardTHEORY10 marks2077(TU Final)

What is structure? Create a structure rectangle with data members length and breadth.

MediumTHEORY5 marks2075(TU Final)

What is structure? How is it different from array? Create a structure student having data members name, roll-number and percentage. Complete the program to display the name of student having percentage greater than or equal to 60.

HardTHEORY10 marks2074(TU Final)
Showing 10 questions

Sample Questions

Create a structure called STUDENT with data members SID, name, address, CGPA. Write a program to initialize the value of 100 students and display the information of those students whose address is “KT

Marks: 5Chapter: Unit 8: Structure and Union (5 Hrs.)

Define structure and nested structure. Write a program to find out whether the nth term of the Fibonacci series is a prime number or not. Read the value of n from the user and display the result in th

Marks: 10Chapter: Unit 8: Structure and Union (5 Hrs.)

Differentiate between source code and object code. Create a structure named Book with members BookName, Price and AuthorName, then take input for 10 records of Book and print the name of authors havin

Marks: 10Chapter: Unit 8: Structure and Union (5 Hrs.)

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.

Marks: 10Chapter: Unit 8: Structure and Union (5 Hrs.)

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.

Marks: 5Chapter: Unit 8: Structure and Union (5 Hrs.)

And more questions available on this page.

Unit 8: Structure and Union (5 Hrs.) chapter questions with answers for C Programming (Bsc CSIT Semester 1). Prepare for TU exams with our comprehensive question bank and model answers.