1.a.

The different stages of the Program Development Life Cycle (PDLC) are:

  1. Editor: The stage where we write and edit code to give the maching.
  2. Preprocessor: The stage where comments are removed, header files are expanded and MACROS are substituted
  3. Compiler: The stage where the program is converted to Assembly level Language
  4. Assembly: The Assembly level file is taken and an output is provided
  5. Linker: Links the output to an Executable File
  6. Loader
  7. Execution
graph LR
  Editor --> Preprocessor --> Compiler --> Assembly --> Linker --> Loader --> Execution

1.b.

a = 6, b = 2, c = 7, d = 1

1.c.

#include <stdio.h>
int main(){
	int num,digit,max=9,min=10;
	printf("Enter a number: "); scanf("%d",&num);
	if (num < 0){
		printf("Cant process negative numbers");
		return 0;
	}
	else if (num == 0){
		printf("You have entered 0");
		return 0;
	}
	else{
		while (num != 0){
			digit = num % 10;
			if (digit > max){max = digit;}
			else if (digit < min){min = digit;}
			num /= 10;
		}
	}
	printf("Largest digit: %d\nSmallest Digit: %d",max,min);
	return 0;
}

1.d.

  1. 2
  2. 0
  3. 2
  4. 0
  5. 2