Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Computer Science - Counting Statment Executions, Exercises of Computer Science

I have taken these questions and answers from Computer Science. The topics of which is Counting Statment Executions.

Typology: Exercises

2014/2015

Available from 05/16/2024

farook-ali
farook-ali 🇮🇳

52 documents

1 / 6

Toggle sidebar

Related documents


Partial preview of the text

Download Computer Science - Counting Statment Executions and more Exercises Computer Science in PDF only on Docsity! Computer Science Counting Statment Executions public void countStatements() { int a= 10, b= 15, c=/7; // Start for(int i = 0; i < a; i += 2) { b--; System.out.print("*"); The rest is given below } for(int i = b: i >=0; i--) { for(int j = 0; j < c: j++) { System.out.print("*"); // End The rest is given below array[i]--; System.out.println("Yay!"); } for(int i = array[3]; i > 0; i--) { System.out.println("Yay!"); } The rest is given below 2. How many calls will be made to System. out.println in the code above? 78
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved