Ask Your Doubts ×
Solve your IGNOU Doubts
Solve your IGNOU Doubts
Question:

What does the following C function compute? Discover. 
int some fun(int n)
{
if(n%2 == 0)
return 2;
int d, s = sqrt(n);
2
for(d = 3; d <= s; d = d+2)
if(n%d == 0)
return d;
return n;
}

See Answer →
Question:

How would you differentiate between the terms pointer to an array and array of pointers? Give proper examples.

See Answer →
Question:

A C program contains the following statements:
char u, v = ‘A’;
char *pu, *pv = &v;
*pv = v+1;
u = *pv + 1;
pu = &u;

Suppose each character occupies one byte of memory. If the value assigned to u is stored in (hexadecimal) address F8C and the value assigned to v is stored in the address F8D, then
i) What value is represented by &v?
ii) What value is assigned to pv?
iii) What value is represented by *pv?
iv) What value is assigned to u?
v) What value is represented by &u?
vi) What value is assigned to pu?

See Answer →
Question:

Explain the use of the string library functions strncpy() and strncat(), with the help of an example for each.

See Answer →
Question:

When passing an argument to a function, what is the difference between passing by value and passing by reference?

See Answer →
Question:

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 →
Question:

Suppose you wish to solve the equation x^5 + 3x^2 - 10 = 0 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

See Answer →
Question:

Explain how will you read a three-dimensional array using for loops.

See Answer →
Question:

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 →
Question:

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 →
Question:

Explain the use of the functions getchar(), putchar(), gets() and puts() functions, with a suitable program

See Answer →
Question:

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));
}

See Answer →
Question:

Spatial interpolation

See Answer →
Question:

Stages of map design

See Answer →
Question:

Data quality and the FAIR principles of spatial data

See Answer →
Question:

Concept of topology in GIS

See Answer →
Question:

Non-spatial data structure

See Answer →
Question:

GIS data standards

See Answer →
Question:

What do you understand by vector data analysis? Discuss overlay operations with the help of neat well labelled diagrams

See Answer →
Question:

Discuss the methods of GIS data inputs with suitable examples.

See Answer →
Top
📞
Call Support Instant phone assistance IGNOU Academy - India’s Largest IGNOU Help Book Provider
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→