Шукаєте відповіді та рішення тестів для Programming for Problem Solving? Перегляньте нашу велику колекцію перевірених відповідей для Programming for Problem Solving в moodle.lnmiit.ac.in.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
The subtraction of binary numbers 10111010 and 01110101 results in
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;
}
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;
}
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;
}
Which of the following statements is not true
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");
}
Trace the output of the below C code
#include <stdio.h>
int y;
void main()
{
if (y)
printf("Good");
else
printf("Class");
}
The hexadecimal number equivalent to the decimal number 499 is
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;
}