Posts

Session 12

Image
  Session 12 : Write a Program that is correct but still not reliable. Justify your answer. Make   necessary assumptions.  Ans:  #include <stdio.h> int main() {   int a[10][10], transpose[10][10], r, c;   printf("Enter rows and columns: ");   scanf("%d %d", &r, &c);   // asssigning elements to the matrix   printf("\nEnter matrix elements:\n");   for (int i = 0; i < r; ++i)   for (int j = 0; j < c; ++j) {     printf("Enter element a%d%d: ", i + 1, j + 1);     scanf("%d", &a[i][j]);   }   // printing the matrix a[][]   printf("\nEntered matrix: \n");   for (int i = 0; i < r; ++i)   for (int j = 0; j < c; ++j) {     printf("%d  ", a[i][j]);     if (j == c - 1)     printf("\n");   }   // computing the transpose   for (int i = 0; i < r; ++i)   for (int ...

Session 11

Image
  Session 11: Write a Program that is correct but of not good quality. Justify your answer.   Make necessary assumptions.  Ans:   #include<stdio.h> void main() {   int enrol,choice,k,z;                 while (enrol != 175987440)                 {                                 printf("\nEnter Student Enrollment Number:");                                 scanf("%d",&enrol);                 ...

Session 10

  Session 10: Develop test cases for the web pages of 9(a). Then, develop test report after testing  using the test cases developed. Ans: We have to generate the test cases for the above web page. Normally there are two types of testing. They are i)                  White Box Testing ii)                Black Box Testing   Black Box Testing In black box testing can help to get the design and coding correct with respect to the specification. Black box testing is mainly used to test the functionality and features of th...