Computer Science - Class 12
Solutions to CBSE Sample Paper - Computer Science Class 12

What possible outputs(s) will be obtained when the following code is executed?

Question 10 CBSE Sample Question Paper 2024 Boards - Teachoo.png

Options:

a.

 RED*

 WHITE*

 BLACK*

 RED*

b.

 YELLOW*

 WHITE*

 BLACK*

 RED*

c.

 WHITE* WHITE*

 YELLOW* YELLOW*

 BLACK* BLACK*

 RED* RED*

d.

 YELLOW*

 WHITE*WHITE*

 BLACK* BLACK* BLACK*

 RED* RED* RED* RED*   RED*

Answer

Answer by student:

b. YELLOW* 

     WHITE* 

     BLACK* 

     RED*

Detailed answer by teachoo:

The rest of the post is locked. Join Teachoo Black to see the full post.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo