Professional Documents
Culture Documents
Test Summary
No. of Sections: 1
No. of Questions: 3
Total Duration: 90 min
Section 1 - Coding
Section Summary
No. of Questions: 3
Duration: 90 min
Additional Instructions:
Data structure
Complete the implementation of the below two functions which operates on a Student structure.
Student Structure:
struct Student {
int rollNo;
};
-> printStudentArray() must print all Student id's present in the Student array seperated by a single space.
-> convertToStudentArray() takes an integer array containing the student id's and converts it to an Student array and returns the
base address of the array.
Note: Some part of the code is given complete the program and compile
1 536
536
Complete the implementation of the given function which operates on the below Student structure.
Node Structure:
---------------
struct Student {
int rollNo;
char name[20];
oat marks;
};
Input Format
Output Format
36 Name: Tony
Tony ID: 36
74.099 Marks: 74.10
Complete the implementation of the below function which operates on the given Node structure.
Node Structure:
---------------
struct Node {
int data;
struct Node *next;
};
Example-1:
Example-2:
Input Format
Constraints
6 5 6 6 17 2 36
36 2 17 6 6 5 36 2 17 6 6 5