:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Business Management >> IT Management


 Business Administration interview questions  Business Administration Interview Questions (413)
 Marketing Sales interview questions  Marketing Sales Interview Questions (878)
 Finance interview questions  Finance Interview Questions (1042)
 Human Resources interview questions  Human Resources Interview Questions (699)
 Personnel Management interview questions  Personnel Management Interview Questions (11)
 Hotel Management interview questions  Hotel Management Interview Questions (18)
 Industrial Management interview questions  Industrial Management Interview Questions (58)
 Infrastructure Management interview questions  Infrastructure Management Interview Questions (12)
 IT Management interview questions  IT Management Interview Questions (87)
 Non Technical interview questions  Non Technical Interview Questions (67)
 Business Management AllOther interview questions  Business Management AllOther Interview Questions (364)
Write a C Program to create a structured data file named 
Student.dat to store the roll no, name
and course.
Provide following functions:
1. Accept the values from the user using structure 
variables. Store the contents in a file.
2. Display the file.
3. The user should be able to add new records to the 
existing file. And display the new file.
 Question Submitted By :: IT-Management
I also faced this Question!!     Answer Posted By  
# 1
i want to this quastion answer 
Is This Answer Correct ?    110 Yes 28 No
# 2
#include <stdio.h>
#include <ctype.h>

struct Student
int ID;
char LastName[32];
char FirstName[32];
int DateOfBirth; // This could be of the form YYYYMMDD. For example someone born on December 21st, 1990 would have a value of 19901221
char Address[32];
char TelephoneNumber[11]; // a 10-digit string
char ProgramPursued[32];

char GetUserOption()
char option = 'I'; // 'I' for Invalid

while(option == 'I')
// Print the menu items
printf("Choose one of the following options:\n[u]pdate [P]rint [S]earch [E]xit\n");
scanf("%c", &option);

case 'U':
case 'P':
case 'S':
case 'E':
option = 'I';

return option;

// students must hold 10 students
void LoadStudents(Student students[])
// TODO: load students from file

// students must hold 10 students
void SaveStudents(Student students[])
// TODO: save students to file

int main()
Student students[10];
int looping = 1;

// Load the students from the file

// Loop until exit
char option = GetUserOption();
case 'U':
// TODO: Let the user update a record

case 'P':
// TODO: Print the students to the screen

case 'S':
// TODO: Let the user search for a student

case 'E':
looping = 0; // exit the loop

// Save the students to the file

return 0;
Is This Answer Correct ?    64 Yes 58 No
Muklesh Kumr

Other IT Management Interview Questions
  Question Asked @ Answers
what is farm accounting?   1
What are Tier 1 and Tier 2 IT companies??   2
where do you see yourself after 5 or 10 years Vodafone 4
why u choose mba after bca? Samsung 2
In SAP SD , HOw to remove the materail block ?   1
What change management processes have you used to ensure that change is introduced properly? Safeway 1
what is proxy?   2
How do you monitor risks to the project and mitigate them? Safeway 1
what are charateristics of business analsyt   1
TDS calculation Kotak 5
what is the difference between database software, middleware and enterprise application software SAP-Labs 2
For more IT Management Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::