Introduction to Programming
Introduction to Programming COMP 110
Popular in Course
Popular in ComputerScienence
This 2 page Class Notes was uploaded by Dorothea Pollich on Sunday October 25, 2015. The Class Notes belongs to COMP 110 at University of North Carolina - Chapel Hill taught by Staff in Fall. Since its upload, it has received 11 views. For similar materials see /class/228795/comp-110-university-of-north-carolina-chapel-hill in ComputerScienence at University of North Carolina - Chapel Hill.
Reviews for Introduction to Programming
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 10/25/15
COMP110003 Fall 2008 Review Chapters 1 and 2 1 Name How many bits are in a byte 8 The CPU is known as quotthe brain of the computer The two values ofa bit are Oand 1 Write the line of code that would print out the line COMP110 is my favorite class Systemoutpr intln COMP110 is my favorite class Write down the declaration for two variables called miles and time Declare miles as type int and initialize it to zero Declare time as type double and initialize it to 40 5 int miles 0 double time 405 What data value is stored in myDouble remember that 1 and 2 are integers double myDouble 1 2 50 00 What data value is stored in myDouble now double myDouble 10 20 50 25 Which of the following are illegal variable names circle them magicalFluffyBunnies a What is the output produced by the following lines of program code input char a b b a Systemoutpr intlna b c Systemoutpr intlnb a b Systemoutpr intlna b c C
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'