logo

Crowdly

Programming for Problem Solving

Looking for Programming for Problem Solving test answers and solutions? Browse our comprehensive collection of verified answers for Programming for Problem Solving at moodle.lnmiit.ac.in.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

What is the output of the below program

#include<stdio.h>

void main()

{

     int n;

     for (n = 9; n!=0; n--)

     printf("%d", n--);

     return 0;

}

0%
0%
0%
0%
View this question

What is the output of the below program

#include<stdio.h>

int main()

{

    int i,j,k;

    for(i=0,j=2,k=1;i<=4;i++)

   {

         printf("%d ",i+j+k);

    }

    return 0;       

}

0%
0%
0%
0%
View this question

    The subtraction of binary numbers 10111010 and 01110101 results in

0%
0%
0%
0%
View this question

Which of the following statements is not true 

  1. Primary memory is directly accessible by the CPU
  2. Primary memory is permanent
  3. Secondary memory is permanent
  4. RAM and ROM come under secondary memory
0%
0%
0%
0%
View this question

Which of the statements would compile

(i) for (i < 10; i++ ; i = 0) {}

(ii) for (i = 0; i < 10 ; i++) {}

(iii) for (i = 0; i++ ; i < 10) {}

(iv) for (i++; i = 0 ; i < 10) {}

(v) for (i++; i < 0 ; i = 10) {}

(vi) for (i < 10; i = 0 ; i++) {}

0%
0%
0%
0%
0%
View this question

Trace the output of the below C code for n=19.99

#include <stdio.h>

int main()

{

    int n;

    if (scanf("%d", &n))

        printf("Good");

    else

        printf("Class");

    return 0;

}

0%
0%
0%
0%
View this question

    The hexadecimal number equivalent to the decimal number 499 is

0%
0%
0%
0%
View this question

Trace the output of the below C code

#include <stdio.h>

 int y;

 void main()

 {

      if (y)

          printf("Good");

      else

          printf("Class");

 }

0%
0%
0%
0%
View this question

Trace the output of the below C code

 #include<stdio.h>

void main()

{

    int num = 50;

    if (num%2=0)

    printf("Even");

    else

    printf("Odd");

}

0%
0%
0%
0%
View this question

What is the output of the below program?

int main()

{

   int i = 0;

   for (i=0; i<20; i++)

   {

     switch(i)

     {

       case 0:

         i += 5;

       case 1:

         i += 2;

       case 5:

         i += 5;

       default:

         i += 4;

         break;

     }

     printf("%d  ", i);

   }

   return 0;

}

0%
0%
0%
0%
View this question

Want instant access to all verified answers on moodle.lnmiit.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!