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 questions, Exams of Computer Science

Computer science questions with Answer Key.

Typology: Exams

2021/2022

Uploaded on 02/24/2022

alpana
alpana 🇺🇸

4.9

(13)

249 documents

1 / 10

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Computer science questions and more Exams Computer Science in PDF only on Docsity!

What docs 1001, plus 1110, equal? A. 10111, B. 1001, C 11i1t, D. lil, E. 3210 eed What is outpul by the code to the right? int x = 3; A 3 B. 10 Cc 12 int y = 2; System.out.printin( x + y * x): dD 3 EL xyx What is output by the code to the right? . i <= 5S; itty ef A, 10 B. 5 Cc. 90 D. 6 E. 12 System.out.printin( total ); What is output by the code to the right? A. SOUTH! B. SsOUTHSS ¢, souTH** | String s > "Southasy; System.out.printlna( s.toUpperCase() ); Dz Souths BE, SOUTH+** What is output by the code to the right? A ? B 3 int{] data = {3, 2, 4, 3, 1, 0}; data[1] 7+ data{1] + data[3}; Cc 2 D5 System.out.printin{( data[1] ); E. 1 What is output by the code to the right? . int r= 6; A. @ B. 20 C. 0.3 int v = 20; Systom.out.printin( r % vi )7 D. 120 E. 6 eS md p && Ig A P Il fq B. CG Which answer is logically equivalent to the following boolean expression, where p and gq are boolean variables?. '(ip Il q) D !pligd E !(!p && q) UIL COMPUTER SCIENCE INVITATIONAL A 2008 « PAGE 2