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;
}
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;
}
The subtraction of binary numbers 10111010 and 01110101 results in
Which of the following statements is not true
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++) {}
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;
}
The hexadecimal number equivalent to the decimal number 499 is
Trace the output of the below C code
#include <stdio.h>
int y;
void main()
{
if (y)
printf("Good");
else
printf("Class");
}
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");
}
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;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!