Download Fill in the Blank Questions:

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Java (programming language) wikipedia , lookup

Object-oriented programming wikipedia , lookup

Falcon (programming language) wikipedia , lookup

Java performance wikipedia , lookup

Compiler wikipedia , lookup

Class (computer programming) wikipedia , lookup

C++ wikipedia , lookup

Interpreter (computing) wikipedia , lookup

Reserved word wikipedia , lookup

C Sharp syntax wikipedia , lookup

Name mangling wikipedia , lookup

C Sharp (programming language) wikipedia , lookup

Transcript
Quiz #2 - CSE 110 - Fall 2006
Date___________
Last Name (Print) _________________First Name____________
Last Name (Print) _________________First Name____________
1 . Java is a ____ programming language. (1pt)
a) low-level
b) high-level
c) business-oriented
d) CPU-oriented
2. The primary task of a compiler is to (1 pt)
a) translate from source code into class files
b) translate from class files to source code
c) generate meaningful error messages
d) all of the above
3. What is the output of the following when the main method is executed? (2 pts)
public class Questions3
{
public static void main(String[ ] args)
{
System.out.print("Here");
System.out.println("There " + "Everywhere");
System.out.println("But not" + "in Texas");
}
}
4. Given the following class definition, what are the reserved words and what are the identifiers? (2 pts)
public class Program
{
public static void main(String[] args)
{
System.out.println("My third Java program");
}
}
List of reserved words: ________________________________
List of identifiers: _________________________________
5. A document of text is 15 pages long. Each page contains approximately 200 words and the
average length of each word is 5 characters. Also assume one blank space between each word
and no punctuation. How many bytes will it take to store this document in memory or on disk
using ASCII? (1pt)
6. Write a statement that would print the text “hi there”, including the quote marks, to the output
screen. (1pt)
7. Convert the following binary representation to its equivalent base ten form: (1 pt)
10101010
____________________
8. Convert the following base ten representation to its equivalent binary form: (1 pt)
15 _________________________