Explain the use of the string library functions strncpy() and strncat(), with the help of an example for each.
See Answer →When passing an argument to a function, what is the difference between passing by value and passing by reference?
See Answer →How is an external variable defined? How is it initialised? What happens when an external variable definition does not include the assignment of an initial value?
See Answer →Suppose you wish to solve the equation for x. Rearrange this equation to get an appropriate fixed point iteration method. Then write a program to get an approximate value of the root of the equation. The initial guess must be entered by the user. Your programme must be able to flag a warning message if the initial guess is too far from the exact root. In that case, your program must be able to suggest an initial guess to the user. Terminate the program and print the current value of the root as soon as the difference between two successive approximations becomes smaller than 0.005
Explain how will you read a three-dimensional array using for loops.
See Answer →Write a loop that examines each character in a character type array called text, and determines how many of the characters are letters, how many are digits, how many are whitespace characters, and how many are other characters.
See Answer →Arrange the following operators in descending order of their priority. If any two operators have the same priority, then specify their associativity. + =, %, +, ∗, ∗(unary), ! =, −, ++
See Answer →Explain the use of the functions getchar(), putchar(), gets() and puts() functions, with a suitable program
See Answer →Write the output of the following C codes, with proper justification for each.
i) main()
{
int a = 2, b = 4, c = 5;
a = b + c;
b = a + c;
c = a - b;
printf("%d,%d,%d", a, b, c);
}
ii) main()
{
printf("%d", ‘C’ + ‘P’ + ‘r’ + ‘o’ + ‘g’ + ‘r’ + ‘a’ + ‘m’);
}
iii) main()
{
int i, j = 1;
for(i = 1; i <= 10; i = i + 2)
{
j = i - j;
while(j <= 2)
printf("%d ", i+j++);
}
}
iv) main()
{
int a = 10, b = 20, c = 30;
int *p = 2;
a = c/*p;
b = c;
printf("a = %d, b = %d", a, b);
}
v) func(int x)
{
static int a = 0;
a += x;
return(a);
}
main()
{
int p;
for(p = 1; p <= 5; ++p)
printf("%d", fun(p));
}
Spatial interpolation
See Answer →Stages of map design
See Answer →Data quality and the FAIR principles of spatial data
See Answer →Concept of topology in GIS
See Answer →Non-spatial data structure
See Answer →GIS data standards
See Answer →What do you understand by vector data analysis? Discuss overlay operations with the help of neat well labelled diagrams
See Answer →Discuss the methods of GIS data inputs with suitable examples.
See Answer →Digital representation of data and geospatial data
See Answer →Vector data structure
See Answer →Comparison of raster and vector data models
See Answer →