COSC 111 Exam Solutions Winter 2018: Cosc, Revised Version, Character Class
abdelazizahmedabdel and 37397 others unlocked
24
COSC 111 Full Course Notes
Verified Note
24 documents
Document Summary
The irving k. barber school of arts and sciences. Cosc 111 midterm 1 winter term ii 2016. Have your student id card out on your desk. This exam has 13 pages (including this cover page). // iteration (a) 2*n (b) n (c) n - 1 (d) n + 1. 2: what is the output of the following fragment? for (int i = 0; i < 15; i++) if (i % 4 == 1) System. out. print("the grade is "); printgrade(59. 5); public static __________ printgrade(double score) if (score >= 90. 0) System. out. println("f"); (a) int (b) double (c) boolean (d) char (e) void. System. out. println(indexofmax); (a) 0 (b) 1 (c) 2 (d) 3 (e) 4. There are 3 parts to this question regarding the following code stored inside tree. java: import java. util. scanner; public class tree. // print leading spaces on a given line for( int j=0; j