Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 28 pages
Exam (elaborations)

CSC Exam 1 prep

Document preview thumbnail
Preview 3 out of 28 pages

Exam of 28 pages for the course CSC at CSC (CSC Exam 1 prep)

Content preview

CSC EXAM 1 PREP WITH 100% GUARANTEE PASS




1.A ysingle ysilicon ychip ymade yfrom ypotentially ymillions yof ytransistors yis
ycalled-
: yA ycentral yprocessing yunit, yCPU
2.How ydoes yJava yachieve yportability?: yJava yprograms yare ycompiled yto
yinstruc- ytions yfor ya yvirtual ymachine.

3.An yexample yof yan yinput ydevice ythat yinterfaces ybetween ycomputers
yand yhumans yis: ya ymicrophone
4.Consider ythe yfollowing ystatements yabout ycomputer yprograms:
I. Computer yprograms ycan ybe ywritten yby ysomeone ywho yhas ya ybasic
yknowledge yof yoperating ya ycomputer.
II. Computer yprograms ycan ycomplete ycomplex ytasks yquickly.
III. Large yand ycomplex ycomputer yprograms yare ygenerally ywritten yby ya
ygroup yof yprogrammers.
IV. Computer yprograms yare ycomposed yof yextremely yprimitive
yoperations. yWhich yof ythe ystatements yare ycorrect?: yII, yIII, yand yIV
yonly

5.Which yone yof ythe yfollowing ytranslates yhigh-level ydescriptions yinto
ymachine ycode?: ycompiler

6.What yis ythe ydifference ybetween yan yeditor yand ya ycompiler?: yAn yeditor
1 y/
y28

,yallows yprogram yfiles yto ybe ywritten yand ystored; ya ycompiler yconverts
yprogram yfiles yinto yan yexecutable yprogram.
7.What yis ythe youtput yfrom ythis ycode ysnippet?

System.out.print("The ysum yis y");
ySystem.out.println("7 y+ y3");: yThe ysum yis y7 y+ y3
8.Consider ythe yfollowing ypseudocode. yWhat ydoes yit yproduce?

Set yn yto
y1 ySet yp
yto y1
Repeat yuntil yn yequals y20
Multiply yp yby y2 yand ystore yresult yin yp
yAdd y1 yto yn
Print yp: yTwo yraised yto ythe ypower y20
9.Sometimes yerrors ythrow ythe ycompiler yoff ytrack ybecause: ythe
ycompiler ydoes ynot ygive yup ywhen yit yfinds ythe yfirst yerror

10.Evaluate ythe ypseudocode ybelow yto ycalculate ythe ypayment y(pmt) ywith
ythe yfollowing ytest yvalues:


The ytotal ynumber yof yhours yworked y(workingHours) y= y50

The yrate ypaid yfor yhourly ywork y(rate) y= y10
y




2 y/
y28

, Input
yworkingHours
yInput yrate
pmt y= yworkingHours y*
yrate yIf yworking_hours y>
y45
extraHours y= yworkingHours y-
y45 yextraPmt y= yextraHours y*
yrate y* y2 ypmt y= ypmt y+
yextraPmt
Output ypmt: y600
11.Which ystatement yis ytrue yabout yvariable ynames yin yJava?

They ycan ycontain ythe ypercent ysign y(%).
They ycan ycontain yan yunderscore ysymbol y("_").
yThey ymust ymake ysense yas ya yword.
They ycan ycontain yspaces.: yThey ycan ycontain yan yunderscore ysymb
y("_").
12.Which yof ythe yfollowing ystatements ywith ycomments yis(are) yvalid?

I. int ycnt y= y0; y/* ySet ycount yto y0
II. int ycnt y= y0; y/* ySet ycount yto y0 y*/
III. int ycnt y= y0; y// ySet ycount yto y0: yII yand yIII yonly
13.What ywill ybe ythe yvalue yinside ythe yvariables yx yand yy yafter ythe ygiven
yset yof yassignments?
int yx y=
y20; yint yy
y= y10;
x y= y(x y- yy) y* y2;
y y= yx y/ y2;: yx y= y20, yy y= y10
14.Assuming ythe yfollowing yinitializations:

double yx y= y-
2.5; ydouble yy y=
y1.5; yint ym y= y4;
int yn y= y18;

What yis ythe yvalue yof ythe yfollowing yexpression?
3 y/
y28

Document information

Uploaded on
February 17, 2025
Number of pages
28
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Registerednurse
3.0
(2)
Sold
32
Followers
3
Items
6077
Last sold
1 month ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions