0% found this document useful (0 votes)
9 views

ISE 1-Div E

The document details the results of a quiz taken on programming concepts, including questions on control statements, arithmetic operations, and output of code snippets. The participant completed the quiz in approximately 45 minutes, scoring 18 out of 30. Various questions were answered correctly or incorrectly, with explanations provided for the correct answers.

Uploaded by

gathanivanshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

ISE 1-Div E

The document details the results of a quiz taken on programming concepts, including questions on control statements, arithmetic operations, and output of code snippets. The participant completed the quiz in approximately 45 minutes, scoring 18 out of 30. Various questions were answered correctly or incorrectly, with explanations provided for the correct answers.

Uploaded by

gathanivanshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Home ► My courses ► PSIP ISE 2021-22 ► ISE1 ► ISE 1-Div E

Started on Monday, 14 February 2022, 7:00 PM


State Finished
Completed on Monday, 14 February 2022, 7:45 PM
Time taken 44 mins 51 secs
Grade 18.00 out of 30.00 (60%)

Question 1 Which of the following is true?


Not answered

Marked out of 1.00

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.

b. “continue” is usually not associated with if


c. “break” statement cannot be used in do-while loop

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.

Your answer is incorrect.


The correct answer is:
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.

Question 2 Which of the following is not an arithmetic operation?


Correct
Select one:
Mark 1.00 out of
1.00 a. a * = 10;

b. a % = 10;

c. a ! = 10;

d. a / = 10

Your answer is correct.


The correct answer is: a ! = 10;
Question 3 What will be the value of variable “result” after the following lines of code are executed?
Not answered int a=1, b=0;
Marked out of 1.00 int result= (a>b++)+9/5;

Select one:
None of These

1.5

0
2

2.5

Your answer is incorrect.


The correct answer is: 2

Question 4 What will be the output of the following program


Incorrect

Mark 0.00 out of


1.00

Select one:
a. Syntax Error

b. False

c. True

d. logical Error

Your answer is incorrect.


The correct answer is: False
Question 5 What is the output of the given code?
Correct

Mark 1.00 out of


1.00

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

Your answer is correct.


The correct answer is: Hi is printed 8 times
Question 6 What is the output?
Correct

Mark 1.00 out of


1.00

Select one:
a. Compiler Error

b. SPIT Quiz
c. No Output

Your answer is correct.


The correct answers are: SPIT Quiz, No Output, Compiler Error
Question 7
What will be the output of the flowchart given below
Correct

Mark 1.00 out of


1.00

Select one:
a. 20

b. 19
c. 21

d. 0.33

Your answer is correct.


The correct answer is: 21
Question 8
#include<stdio.h>
Correct
int main()
Mark 1.00 out of
{
1.00
int a = 1;
do
{
printf("N");
a++;
} while(a <= 5);

return 0;
}

Select one:

NNNN

Compile-time error
N

NNNNN

Your answer is correct.


The correct answer is:
NNNNN
Question 9 The Problem represented by the Flow chart is
Correct

Mark 1.00 out of


1.00

Select one:
a. Compare Three numbers

b. Maximum of Three numbers

c. Minimum of Three numbers

d. Average of Three numbers

Your answer is correct.


The correct answer is: Maximum of Three numbers
Question 10

Correct

Mark 1.00 out of


1.00

Select one:
a. 11 13

b. 10 11

c. 11 12

d. 10 12

Your answer is correct.


The correct answer is: 10 12
Question 11
Find the correct value of a:
Correct
int a = 10 + 4.867;
Mark 1.00 out of
1.00

Select one:
a.
compiler error.

b. a = 14.867
c.
a = 10

d. a = 14

Your answer is correct.


The correct answer is: a = 14
Question 12 What will be the output of the following code?
Correct

Mark 1.00 out of


1.00

Select one:
Inside else: 0

Inside if: 0

Program will execute but won’t print anything


Inside else: 1

Will Throw an Error

Inside if: 1

Your answer is correct.


The correct answer is: Inside else: 0
Question 13
Which of the following data type will throw an error on modulus operation(%)?
Incorrect

Mark 0.00 out of


1.00

Select one:
a. float

b. char
c. long

d. int

Your answer is incorrect.


The correct answer is: float

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

Your answer is incorrect.


The correct answer is: sum=480
Question 15 What is the output of the following program?
Not answered

Marked out of 1.00

Select one:
a. 2320

b. 9920

c. 9810
d. 8910

Your answer is incorrect.


The correct answer is: 8910
Question 16
What is the output of C Program.?
Correct
int main()
Mark 1.00 out of
{
1.00
int a=26;
while(a <= 28)
{
printf("%d ", a);
a++;
}
return 0;
}

Select one:
28 28 28

26 27 28

Compiler Error
26 26 26 26

Your answer is correct.


The correct answer is:
26 27 28
Question 17
What is the output of this C code?
Correct #include<stdio.h>
Mark 1.00 out of int main()
1.00 {
int i = 5;
int l = i / -4;
int k = i % -4;
printf("%d %d\n", l, k);
return 0;
}

Select one:
a. Run time error

b. -1 1

c. 1 -1
d. Compile time error

Your answer is correct.


The correct answer is: -1 1
Question 18
1. What is the output of the following C program:
Correct

Mark 1.00 out of


1.00

Select one:
a. 1

b. 1.000000

c. 0
d. Compiler error

Your answer is correct.


The correct answer is: Compiler error
Question 19 What is the output of following code:
Correct

Mark 1.00 out of


1.00

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

Your answer is correct.


The correct answer is:
0-10 1-8 2-6 3-4 4-2
Question 20 The Problem represented by the Flow chart is
Correct

Mark 1.00 out of


1.00

Select one:
a. Extract digits from a number

b. Subtract digits from a number

c. sum of digits of a number


d. Count the number of digits

Your answer is correct.


The correct answer is: Extract digits from a number
Question 21

Correct

Mark 1.00 out of


1.00

Select one:
a. printf("%f %lf %llf",a,b,c);

b. printf("%f %lf %Lf",a,b,c);

c. printf("%f %ff %fff",a,b,c);


d. printf("%f %f %f",a,b,c);

Your answer is correct.


The correct answer is: printf("%f %lf %Lf",a,b,c);
Question 22
What is the output of the following code?
Not answered

Marked out of 1.00

Select one:
a. 3628800

b. 0

c. 36288
d. 362880

Your answer is incorrect.


The correct answer is: 0
Question 23
1. What is the output of this program?
Incorrect

Mark 0.00 out of


1.00

Select one:
a. 10.0

b. 10
c. 10.00

d. Compilation Error

Your answer is incorrect.


The correct answer is: 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--)

c. for (i = n-1; i>-1; i--)


d. for (i = n; i>=0; i--)

Your answer is incorrect.


The correct answer is: for (i = n-1; i>-1; i--)
Question 25
What is the output of the following code?
Not answered

Marked out of 1.00

Select one:
a. 1000

b. -999
c. 0

d. -1000

Your answer is incorrect.


The correct answer is: -1000
Question 26
What is the output of the following code?
Not answered

Marked out of 1.00

Select one:
a. FIVE DEER LION

b. Compilation Error

c. FIVE DEER TEN LION


d. DEER LION

Your answer is incorrect.


The correct answer is: FIVE DEER LION
Question 27
What is the output of this C code?
Correct

Mark 1.00 out of int main()


1.00 {
int a = 25, b = 15, c = 10;
int d;
d = a == (b + c);
printf("%d", d);
}

Select one:
a. 1

b. 10

c. 15
d. 35

Your answer is correct.


The correct answer is: 1

Question 28
for c = 2, value of c after c << 1;
Not answered

Marked out of 1.00

Select one:
a. c=2
b. c=3

c. c=4

d. c = 1

Your answer is incorrect.


The correct answer is: c=4
Question 29 Rectangle with vertical lines on two sides is used for which of the following
Correct
Select one:
Mark 1.00 out of
1.00 a. Variables defined

b. Computation

c. Statement
d. Predefined process

Your answer is correct.


The correct answer is: Predefined process

Question 30 What is the output of C Program.?


Correct int main()
Mark 1.00 out of {
1.00
int a=0, b=0;
while(++a < 4)
printf("%d ", a);

while(b++ < 4)
printf("%d ", b);

return 0;
}

Select one:
12341234

1231234

12340123

01231234

Your answer is correct.


The correct answer is: 1 2 3 1 2 3 4

◄ ISE 1-Div D

Jump to...

ISE 1-Div F ►

You might also like