ISE 1-Div E
ISE 1-Div E
Select one:
a. Use “break” statement to take the control to the beginning of the loop,
bypassing the statements inside the loop, which have not yet been executed.
d.
Use “continue” statement to take the control to the beginning of the loop,
bypassing the statements inside the loop, which have not yet been executed.
b. a % = 10;
c. a ! = 10;
d. a / = 10
Select one:
None of These
1.5
0
2
2.5
Select one:
a. Syntax Error
b. False
c. True
d. logical Error
Select one:
a. Hi is printed 6 times
b. Hi is printed 8 times
c. Hi is printed 9 times
d. Hi is printed 7 times
Select one:
a. Compiler Error
b. SPIT Quiz
c. No Output
Select one:
a. 20
b. 19
c. 21
d. 0.33
return 0;
}
Select one:
NNNN
Compile-time error
N
NNNNN
Select one:
a. Compare Three numbers
Correct
Select one:
a. 11 13
b. 10 11
c. 11 12
d. 10 12
Select one:
a.
compiler error.
b. a = 14.867
c.
a = 10
d. a = 14
Select one:
Inside else: 0
Inside if: 0
Inside if: 1
Select one:
a. float
b. char
c. long
d. int
Question 14
What is the output of following program
Not answered
#include<stdio.h>
Marked out of 1.00
int main()
{
int a,b,c;
scanf(“%1d %2d %3d”, &a,&b,&c);
printf(“\nsum=%d”, a+b+c);
return 0;
}
(note user input is: 123456 44 544)
Select one:
a. None of the option
b. sum=480
c. sum=594
d. sum=589
Select one:
a. 2320
b. 9920
c. 9810
d. 8910
Select one:
28 28 28
26 27 28
Compiler Error
26 26 26 26
Select one:
a. Run time error
b. -1 1
c. 1 -1
d. Compile time error
Select one:
a. 1
b. 1.000000
c. 0
d. Compiler error
Select one:
a.
1-10 2-8 3-6 4-4 5-2
b.
0-9 1-7 2-5 3-3 4-1
c.
0-10 1-8 2-6 3-4 4-2
d. Compilation Error
Select one:
a. Extract digits from a number
Correct
Select one:
a. printf("%f %lf %llf",a,b,c);
Select one:
a. 3628800
b. 0
c. 36288
d. 362880
Select one:
a. 10.0
b. 10
c. 10.00
d. Compilation Error
Question 24 Which for loop has a range of ‘i’ values the same as the loop for (i = 0;i < n; i++)?
Not answered
Select one:
Marked out of 1.00
a. for (i = n; i>0; i--)
b. for (i = n-1; i>0; i--)
Select one:
a. 1000
b. -999
c. 0
d. -1000
Select one:
a. FIVE DEER LION
b. Compilation Error
Select one:
a. 1
b. 10
c. 15
d. 35
Question 28
for c = 2, value of c after c << 1;
Not answered
Select one:
a. c=2
b. c=3
c. c=4
d. c = 1
b. Computation
c. Statement
d. Predefined process
while(b++ < 4)
printf("%d ", b);
return 0;
}
Select one:
12341234
1231234
12340123
01231234
◄ ISE 1-Div D
Jump to...
ISE 1-Div F ►