Solve your IGNOU Doubts
Solve your IGNOU Doubts
Question:

Write a C program which reads a line of text from keyboard, and writes the line to a file with lower case letters converted to upper case and vice-versa

See Answer →
Question:

Consider the following structure declaration of a doubly linked list:
struct dlink
{
int nodeid;
dlink *next;
dlink *prev;
} dlink t;
A pointer of the head of the linked list is maintained as a global variable, whose
definition is
dlink t *head;
The function remove element(dlink t *rp) defined below needs to remove the
node pointed to rp and adjust the head. The first node’s prev and the last node’s
next are NULL.
remove element(dlink t *rp)
{
rp->prev->next = rp->next;
rp->next->prev = rp->prev;
if(head == rp)
head = rp->next;
}
Explain whether the function remove element() works properly or not.

See Answer →
Question:

What do you understand by a nested structure? Explain with an example. Also, explain how would you access the members of a structure or a nested structure using pointers?

See Answer →
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 →
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support