SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Name: _______________________________ Class time:
__________
Prewriting Instructions for Paper 2 (Final Paper due 4/22)
1. Your choices for Paper 2 are posted on blackboard and also
listed below.
2. Choose 1 of these paper options. Notice that each choice also
mentions the type of paper (comparison, etc.) My paper choice
is: _________________________: paper type:
_______________.
3. Read the related essay(s) in your Research and Composition
textbook.
4. Thursday: write a tentative thesis for paper 2 (one sentence):
_____________________________________________________
_____________________________________________________
_____________________________________________________
_____________________________________________________
__.
5. Thursday: write 5 questions that you will need to answer
through research to write this paper (for ex. What is the divorce
rate for 2012?) Write legibly please.
1.
2.
3.
4.
5.
6. Thursday: go to the library and use the databases to locate at
least three sources that will likely give you the information to
answer the five questions above. At least one should be a book,
at least one should be a database article. In addition, you may
use your textbook, internet, or even refer to a film. Write down
the all of the information about each source. You will need this
information for a works cited page later or to locate the article
and book again. You do not need to answer the questions right
away, but if you do find the answers, take notes or make a copy
of the source.
Source 1:
_____________________________________________________
_____________________________________________________
__________________________________________________
Source 2:
_____________________________________________________
_____________________________________________________
__________________________________________________
Source 3:
_____________________________________________________
_____________________________________________________
__________________________________________________
7. Have any new questions come to mind? What are they? Write
them here:
8. Have you revised your thesis? What is it?
___________________________________
_____________________________________________________
________________.
9. Write a tentative first paragraph to paper 2 (this includes
your thesis):
10. Turn this in Tuesday 3/25 in exchange for your last Q
exercise, M&M Color Distribution.
***You need this prewriting exercise completed to receive your
instructions and data for this last Q exercise and parts of this
exercise will count for your attendance in a week or so.
See next page
Writing Assignment 2 Choices due on or before 4/22
Here are your choices for Writing Assignment 2 due 4/22.
Additional research is required for all choices. Two visuals,
tables or figures, are required. Your paper will be in MLA
format with a works cited page. This paper is approximately 5
pages including a works cited page.
1. Read the essays in Chapter 8. Go to p. 510-511. Choose to
write a paper based on one of these questions: #8, 10, 11, 12, or
13.
For question 8, see prompt and write a cause and effect paper;
for question 10 or 11 see prompt and write a comparison paper;
for question 12, see prompt and write a definition paper
1. Read “State of Our Unions,” p. 368, and update the essay
with current trends and statistics. (comparison)
1. Respond to any of the essays in Chapter 8. You may agree or
disagree with the author based on your evidence from research.
(persuasion)
Exam
Name___________________________________
MULTIPLE CHOICE. Choose the one alternative that best
completes the statement or answers the question.
1) Analyze the following program fragment:
int x;
double d = 1.5;
switch (d) {
case 1.0: x = 1;
case 1.5: x = 2;
case 2.0: x = 3;
}
1)
A) The switch control variable cannot be double.
B) The program has a compile error because the required break
statement is missing in the
switch statement.
C) The program has a compile error because the required default
case is missing in the switch
statement.
D) No errors.
2) Analyze the following code:
boolean even = false;
if (even = true) {
System.out.println("It is even!");
}
2)
A) The program runs fine, but displays nothing.
B) The program runs fine and displays It is even!.
C) The program has a runtime error.
D) The program has a compile error.
3) What is the printout of the following switch statement?
char ch = 'a';
switch (ch) {
case 'a':
case 'A':
System.out.print(ch); break;
case 'b':
case 'B':
System.out.print(ch); break;
case 'c':
case 'C':
System.out.print(ch); break;
case 'd':
case 'D':
System.out.print(ch);
}
3)
A) abc B) abcd C) ab D) aa E) a
1
4) The order of the precedence (from high to low) of the
operators +, *, &&, ||, & is: 4)
A) *, +, &, &&, ||
B) *, +, &&, ||, &
C) &&, ||, &, *, +
D) &, ||, &&, *, +
E) *, +, &, ||, &&
5) The statement System.out.printf("%10s", 123456) outputs
________. (Note: * represents a space) 5)
A) ****123456 B) 12345***** C) 123456**** D) 23456*****
6) The following code displays ________.
double temperature = 50;
if (temperature >= 100)
System.out.println("too hot");
else if (temperature <= 40)
System.out.println("too cold");
else
System.out.println("just right");
6)
A) too cold B) too hot
C) too hot too cold just right D) just right
7) Which of the following code displays the area of a circle if
the radius is positive? 7)
A) if (radius >= 0) System.out.println(radius * radius *
3.14159);
B) if (radius != 0) System.out.println(radius * radius *
3.14159);
C) if (radius > 0) System.out.println(radius * radius * 3.14159);
D) if (radius <= 0) System.out.println(radius * radius *
3.14159);
8) ________ is the code with natural language mixed with Java
code. 8)
A) A flowchart diagram B) Java program
C) Pseudocode D) A Java statement
9) Analyze the following code:
if (x < 100) && (x > 10)
System.out.println("x is between 10 and 100");
9)
A) The statement compiles fine.
B) The statement has compile errors because (x<100) & (x > 10)
must be enclosed inside
parentheses and the println(…) statement must be put inside a
block.
C) The statement compiles fine, but has a runtime error.
D) The statement has compile errors because (x<100) & (x >
10) must be enclosed inside
parentheses.
10) In Java, the word true is ________. 10)
A) same as value 1 B) same as value 0
C) a Boolean literal D) a Java keyword
2
11) How many times will the following code print "Welcome to
Java"?
int count = 0;
do {
System.out.println("Welcome to Java");
} while (count++ < 10);
11)
A) 11 B) 0 C) 8 D) 9 E) 10
12) What is sum after the following loop terminates?
int sum = 0;
int item = 0;
do {
item++;
sum += item;
if (sum > 4) break;
}
while (item < 5);
12)
A) 5 B) 7 C) 6 D) 8
13) What is i after the following for loop?
int y = 0;
for (int i = 0; i<10; ++i) {
y += i;
}
13)
A) 9 B) 11 C) 10 D) undefined
14) How many times will the following code print "Welcome to
Java"?
int count = 0;
while (count < 10) {
System.out.println("Welcome to Java");
count++;
}
14)
A) 11 B) 8 C) 0 D) 10 E) 9
15) How many times will the following code print "Welcome to
Java"?
int count = 0;
while (count++ < 10) {
System.out.println("Welcome to Java");
}
15)
A) 0 B) 10 C) 9 D) 11 E) 8
3
16) What is the number of iterations in the following loop:
for (int i = 1; i < n; i++) {
// iteration
}
16)
A) 2*n B) n C) n + 1 D) n - 1
17) Analyze the following fragment:
double sum = 0;
double d = 0;
while (d != 10.0) {
d += 0.1;
sum += sum + d;
}
17)
A) The program never stops because d is always 0.1 inside the
loop.
B) After the loop, sum is 0 + 0.1 + 0.2 + 0.3 + ... + 1.9
C) The program does not compile because sum and d are
declared double, but assigned with
integer value 0.
D) The program may not stop because of the phenomenon
referred to as numerical inaccuracy
for operating with floating-point numbers.
18) What is Math.rint(3.5)? 18)
A) 3.0 B) 5.0 C) 4.0 D) 3 E) 4
19) Which of the following should be declared as a void
method? 19)
A) Write a method that checks whether current second is an
integer from 1 to 100.
B) Write a method that prints integers from 1 to 100.
C) Write a method that converts an uppercase letter to
lowercase.
D) Write a method that returns a random integer from 1 to 100.
20) Given the following method
static void nPrint(String message, int n) {
while (n > 0) {
System.out.print(message);
n--;
}
}
What is k after invoking nPrint("A message", k)?
int k = 2;
nPrint("A message", k);
20)
A) 2 B) 0 C) 1 D) 3
21) What is Math.ceil(3.6)? 21)
A) 3 B) 3.0 C) 4.0 D) 5.0
4
22) ________ is to implement one method in the structure chart
at a time from the top to the bottom. 22)
A) Bottom-up and top-down approach B) Top-down approach
C) Stepwise refinement D) Bottom-up approach
23) What is the output of the following program?
import java.util.Date;
public class Test {
public static void main(String[ ] args) {
Date date = new Date(1234567);
m1(date);
System.out.print(date.getTime() + " ");
m2(date);
System.out.println(date.getTime());
}
public static void m1(Date date) {
date = new Date(7654321);
}
public static void m2(Date date) {
date.setTime(7654321);
}
}
23)
A) 7654321 1234567 B) 1234567 7654321
C) 1234567 1234567 D) 7654321 7654321
24) Which of the following statement is most accurate? (Choose
all that apply.) 24)
A) An object may contain other objects.
B) A reference variable refers to an object.
C) An object may contain the references of other objects.
D) A reference variable is an object.
25) How many JFrame objects can you create and how many can
you display? 25)
A) three B) one C) two D) unlimited
26) An object is an instance of a ________. 26)
A) data B) class C) method D) program
5
27) Analyze the following code fragments that assign a boolean
value to the variable even.
Code 1:
if (number % 2 == 0)
even = true;
else
even = false;
Code 2:
even = (number % 2 == 0) ? true: false;
Code 3:
even = number % 2 == 0;
27)
A) Code 3 has a compile error, because you attempt to assign
number to even.
B) All three are correct, but Code 2 is preferred.
C) All three are correct, but Code 1 is preferred.
D) Code 2 has a compile error, because you cannot have true
and false literals in the conditional
expression.
E) All three are correct, but Code 3 is preferred.
28) What is the printout of the following switch statement?
char ch = 'b';
switch (ch) {
case 'a':
System.out.print(ch);
case 'b':
System.out.print(ch);
case 'c':
System.out.print(ch);
case 'd':
System.out.print(ch);
}
28)
A) bcd B) bbb C) bb D) abcd E) b
29) Suppose x=10 and y=10. What is x after evaluating the
expression (y > 10) && (x-- > 10)? 29)
A) 11 B) 9 C) 10
30) To add 0.01 + 0.02 + ... + 1.00, what order should you use
to add the numbers to get better accuracy? 30)
A) add 1.00, 0.99, 0.98, ..., 0.02, 0.01 in this order to a sum
variable whose initial value is 0.
B) add 0.01, 0.02, ..., 1.00 in this order to a sum variable whose
initial value is 0.
31) How many times are the following loops executed?
for (int i = 0; i < 10; i++)
for (int j = 0; j < i; j++)
System.out.println(i * j)
31)
A) 100 B) 10 C) 20 D) 45
6
32) Analyze the following code.
public class Test {
public static void main(String[ ] args) {
System.out.println(m(2));
}
public static int m(int num) {
return num;
}
public static void m(int num) {
System.out.println(num);
}
}
32)
A) The program runs and prints 2 once.
B) The program runs and prints 2 twice.
C) The program has a compile error because the two methods m
have the same signature.
D) The program has a compile error because the second m
method is defined, but not invoked in
the main method.
33) Which of the following is the best for generating random
integer 0 or 1? 33)
A) (int)Math.random()
B) (int)(Math.random() + 0.2)
C) (int)(Math.random() + 0.8)
D) (int)Math.random() + 1
E) (int)(Math.random() + 0.5)
34) Variables that are shared by every instances of a class are
________. 34)
A) private variables B) class variables
C) instance variables D) public variables
35) Which of the following operators are right-associative? 35)
A) + B) % C) * D) = E) &&
36) What is the number of iterations in the following loop:
for (int i = 1; i <= n; i++) {
// iteration
}
36)
A) n B) n + 1 C) n - 1 D) 2*n
37) What is Math.rint(3.6)? 37)
A) 4.0 B) 3.0 C) 5.0 D) 3
7
38) What code may be filled in the blank without causing syntax
or runtime errors:
public class Test {
java.util.Date date;
public static void main(String[ ] args) {
Test test = new Test();
System.out.println(________);
}
}
38)
A) test.date B) date.toString()
C) test.date.toString() D) date
39) Suppose x=10 and y=10 what is x after evaluating the
expression (y >= 10) || (x-- > 10)? 39)
A) 11 B) 9 C) 10
40) What is the value in count after the following loop is
executed?
int count = 0;
do {
System.out.println("Welcome to Java");
} while (count++ < 9);
System.out.println(count);
40)
A) 8 B) 0 C) 9 D) 10 E) 11
8
Note all essays require research, at least 3 sources, and two
visuals.
Choose one of the below for Paper 2.
#8. Write an essay explain how damaging it is for a man not to
fit the social stereotype for what is expected of a male in terms
of appearance and behavior (ex. A man who is not interested in
playing and/or watching sports). Use sources to support your
idea. (cause and effect)
#10. How are the differences between men’s and women’s
communication strategies related to social or biological norms.
What values of the society do these differing approaches reveal?
Research the communication strategies of men and women and
write an essay explaining the differences. (comparison)
#11. Statistically, men tend to hold more positions of power and
wealth than women do. Many women feel that simply being
born male automatically confers status and power, or at the very
least, makes life easier. This cultural assumption, however, may
apply to only a very small segment of the male population.
Write an essay discussing the effects of this stereotype on men.
(comparison)
#12. Write an essay explaining what it means to be male in
today’s society. Consider how men factor into current social,
intellectual, political, economic, and religious arenas. Consider
the opportunities that are available – or not available-to men.
(definition)
#13. What does it mean to be a wife in another culture? Choose
at least two other cultures and research those societies’
expectations of a wife. Try to find cultures that show significant
differences. Remember that interviews might be a useful source
of information-even email interview with wives in other
cultures. Using your research, write an essay offering a
comparative definition of a wife. Assume that your audience is
American. Be certain to document your sources, including any
interviews or email conversations. (definition)
Read “State of Our Unions,” p. 368 in my book, and update the
essay with current trends and statistics. (comparison)
Respond to any of the essays in Chapter 8 (Gender in my book).
You may agree or disagree with the author based on your
evidence from research. (persuasion)
Name _______________________________    Class time __________.docx

Weitere ähnliche Inhalte

Ähnlich wie Name _______________________________ Class time __________.docx

Consider this code using the ArrayBag of Section 5.2 and the Locat.docx
Consider this code using the ArrayBag of Section 5.2 and the Locat.docxConsider this code using the ArrayBag of Section 5.2 and the Locat.docx
Consider this code using the ArrayBag of Section 5.2 and the Locat.docx
maxinesmith73660
 
21: Which method determines if a JRadioButton is selected?
21: Which method determines if a JRadioButton is selected?21: Which method determines if a JRadioButton is selected?
21: Which method determines if a JRadioButton is selected?
sukeshsuresh189
 
Comp 328 final guide (devry)
Comp 328 final guide (devry)Comp 328 final guide (devry)
Comp 328 final guide (devry)
sukeshsuresh189
 
6: Which of the following statements about creating arrays and initializing t...
6: Which of the following statements about creating arrays and initializing t...6: Which of the following statements about creating arrays and initializing t...
6: Which of the following statements about creating arrays and initializing t...
sukeshsuresh189
 
202: When the user clicks a JCheckBox, a(n) occurs.
202: When the user clicks a JCheckBox, a(n) occurs.202: When the user clicks a JCheckBox, a(n) occurs.
202: When the user clicks a JCheckBox, a(n) occurs.
sukeshsuresh189
 
3: A(n) ________ enables a program to read data from the user.
3: A(n) ________ enables a program to read data from the user.3: A(n) ________ enables a program to read data from the user.
3: A(n) ________ enables a program to read data from the user.
sukeshsuresh189
 
22: The logical relationship between radio buttons is maintained by objects o...
22: The logical relationship between radio buttons is maintained by objects o...22: The logical relationship between radio buttons is maintained by objects o...
22: The logical relationship between radio buttons is maintained by objects o...
sukeshsuresh189
 
19: When the user presses Enter in a JTextField, the GUI component generates ...
19: When the user presses Enter in a JTextField, the GUI component generates ...19: When the user presses Enter in a JTextField, the GUI component generates ...
19: When the user presses Enter in a JTextField, the GUI component generates ...
sukeshsuresh189
 

Ähnlich wie Name _______________________________ Class time __________.docx (17)

Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.com
 
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
 
Cmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comCmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.com
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.com
 
Cp manual final
Cp manual finalCp manual final
Cp manual final
 
Consider this code using the ArrayBag of Section 5.2 and the Locat.docx
Consider this code using the ArrayBag of Section 5.2 and the Locat.docxConsider this code using the ArrayBag of Section 5.2 and the Locat.docx
Consider this code using the ArrayBag of Section 5.2 and the Locat.docx
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answers
 
GSP 125 Entire Course NEW
GSP 125 Entire Course NEWGSP 125 Entire Course NEW
GSP 125 Entire Course NEW
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomesh
 
FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013
 
21: Which method determines if a JRadioButton is selected?
21: Which method determines if a JRadioButton is selected?21: Which method determines if a JRadioButton is selected?
21: Which method determines if a JRadioButton is selected?
 
Comp 328 final guide (devry)
Comp 328 final guide (devry)Comp 328 final guide (devry)
Comp 328 final guide (devry)
 
6: Which of the following statements about creating arrays and initializing t...
6: Which of the following statements about creating arrays and initializing t...6: Which of the following statements about creating arrays and initializing t...
6: Which of the following statements about creating arrays and initializing t...
 
202: When the user clicks a JCheckBox, a(n) occurs.
202: When the user clicks a JCheckBox, a(n) occurs.202: When the user clicks a JCheckBox, a(n) occurs.
202: When the user clicks a JCheckBox, a(n) occurs.
 
3: A(n) ________ enables a program to read data from the user.
3: A(n) ________ enables a program to read data from the user.3: A(n) ________ enables a program to read data from the user.
3: A(n) ________ enables a program to read data from the user.
 
22: The logical relationship between radio buttons is maintained by objects o...
22: The logical relationship between radio buttons is maintained by objects o...22: The logical relationship between radio buttons is maintained by objects o...
22: The logical relationship between radio buttons is maintained by objects o...
 
19: When the user presses Enter in a JTextField, the GUI component generates ...
19: When the user presses Enter in a JTextField, the GUI component generates ...19: When the user presses Enter in a JTextField, the GUI component generates ...
19: When the user presses Enter in a JTextField, the GUI component generates ...
 

Mehr von rosemarybdodson23141

Your abilities in international management have been recognize.docx
Your abilities in international management have been recognize.docxYour abilities in international management have been recognize.docx
Your abilities in international management have been recognize.docx
rosemarybdodson23141
 
Young and the RestlessWeek 11 Couples Therapy Movie Experience .docx
Young and the RestlessWeek 11 Couples Therapy Movie Experience .docxYoung and the RestlessWeek 11 Couples Therapy Movie Experience .docx
Young and the RestlessWeek 11 Couples Therapy Movie Experience .docx
rosemarybdodson23141
 
You-Attitude A Linguistic PerspectiveLllita RodmanThe Uni.docx
You-Attitude A Linguistic PerspectiveLllita RodmanThe Uni.docxYou-Attitude A Linguistic PerspectiveLllita RodmanThe Uni.docx
You-Attitude A Linguistic PerspectiveLllita RodmanThe Uni.docx
rosemarybdodson23141
 
You  may have seen how financial news outlets provide real-time .docx
You  may have seen how financial news outlets provide real-time .docxYou  may have seen how financial news outlets provide real-time .docx
You  may have seen how financial news outlets provide real-time .docx
rosemarybdodson23141
 
You wrote this scenario from the perspective of Behaviorism learni.docx
You wrote this scenario from the perspective of Behaviorism learni.docxYou wrote this scenario from the perspective of Behaviorism learni.docx
You wrote this scenario from the perspective of Behaviorism learni.docx
rosemarybdodson23141
 
You work in the IT department of a financial services company that s.docx
You work in the IT department of a financial services company that s.docxYou work in the IT department of a financial services company that s.docx
You work in the IT department of a financial services company that s.docx
rosemarybdodson23141
 
You work for OneEarth, an environmental consulting company that .docx
You work for OneEarth, an environmental consulting company that .docxYou work for OneEarth, an environmental consulting company that .docx
You work for OneEarth, an environmental consulting company that .docx
rosemarybdodson23141
 
You work for an international construction company that has been con.docx
You work for an international construction company that has been con.docxYou work for an international construction company that has been con.docx
You work for an international construction company that has been con.docx
rosemarybdodson23141
 
You will write your Literature Review Section of your EBP Projec.docx
You will write your Literature Review Section of your EBP Projec.docxYou will write your Literature Review Section of your EBP Projec.docx
You will write your Literature Review Section of your EBP Projec.docx
rosemarybdodson23141
 
You work for an airline, a small airline, so small you have only one.docx
You work for an airline, a small airline, so small you have only one.docxYou work for an airline, a small airline, so small you have only one.docx
You work for an airline, a small airline, so small you have only one.docx
rosemarybdodson23141
 

Mehr von rosemarybdodson23141 (20)

Young Adulthood begins with the individual being on the verge of att.docx
Young Adulthood begins with the individual being on the verge of att.docxYoung Adulthood begins with the individual being on the verge of att.docx
Young Adulthood begins with the individual being on the verge of att.docx
 
Your abilities in international management have been recognize.docx
Your abilities in international management have been recognize.docxYour abilities in international management have been recognize.docx
Your abilities in international management have been recognize.docx
 
your 14 years daughter accidently leaves her purse open in the fam.docx
your 14 years daughter accidently leaves her purse open in the fam.docxyour 14 years daughter accidently leaves her purse open in the fam.docx
your 14 years daughter accidently leaves her purse open in the fam.docx
 
Young people are ruining the English languageIn your reflectio.docx
Young people are ruining the English languageIn your reflectio.docxYoung people are ruining the English languageIn your reflectio.docx
Young people are ruining the English languageIn your reflectio.docx
 
Young man drops out of school in seventh grade and becomes his mothe.docx
Young man drops out of school in seventh grade and becomes his mothe.docxYoung man drops out of school in seventh grade and becomes his mothe.docx
Young man drops out of school in seventh grade and becomes his mothe.docx
 
Young and the RestlessWeek 11 Couples Therapy Movie Experience .docx
Young and the RestlessWeek 11 Couples Therapy Movie Experience .docxYoung and the RestlessWeek 11 Couples Therapy Movie Experience .docx
Young and the RestlessWeek 11 Couples Therapy Movie Experience .docx
 
You-Attitude A Linguistic PerspectiveLllita RodmanThe Uni.docx
You-Attitude A Linguistic PerspectiveLllita RodmanThe Uni.docxYou-Attitude A Linguistic PerspectiveLllita RodmanThe Uni.docx
You-Attitude A Linguistic PerspectiveLllita RodmanThe Uni.docx
 
You  may have seen how financial news outlets provide real-time .docx
You  may have seen how financial news outlets provide real-time .docxYou  may have seen how financial news outlets provide real-time .docx
You  may have seen how financial news outlets provide real-time .docx
 
You  are responsible for putting together the Harmony Day celebr.docx
You  are responsible for putting together the Harmony Day celebr.docxYou  are responsible for putting together the Harmony Day celebr.docx
You  are responsible for putting together the Harmony Day celebr.docx
 
You wrote this scenario from the perspective of Behaviorism learni.docx
You wrote this scenario from the perspective of Behaviorism learni.docxYou wrote this scenario from the perspective of Behaviorism learni.docx
You wrote this scenario from the perspective of Behaviorism learni.docx
 
You worked closely with your IT managers to develop a complementing .docx
You worked closely with your IT managers to develop a complementing .docxYou worked closely with your IT managers to develop a complementing .docx
You worked closely with your IT managers to develop a complementing .docx
 
You work in the office of a personal financial planner. He has asked.docx
You work in the office of a personal financial planner. He has asked.docxYou work in the office of a personal financial planner. He has asked.docx
You work in the office of a personal financial planner. He has asked.docx
 
You work in the IT department of a financial services company that s.docx
You work in the IT department of a financial services company that s.docxYou work in the IT department of a financial services company that s.docx
You work in the IT department of a financial services company that s.docx
 
You work for the Jaguars Bank as the Chief Information Officer.  It .docx
You work for the Jaguars Bank as the Chief Information Officer.  It .docxYou work for the Jaguars Bank as the Chief Information Officer.  It .docx
You work for the Jaguars Bank as the Chief Information Officer.  It .docx
 
You work for OneEarth, an environmental consulting company that .docx
You work for OneEarth, an environmental consulting company that .docxYou work for OneEarth, an environmental consulting company that .docx
You work for OneEarth, an environmental consulting company that .docx
 
You work for an international construction company that has been con.docx
You work for an international construction company that has been con.docxYou work for an international construction company that has been con.docx
You work for an international construction company that has been con.docx
 
You will write your Literature Review Section of your EBP Projec.docx
You will write your Literature Review Section of your EBP Projec.docxYou will write your Literature Review Section of your EBP Projec.docx
You will write your Literature Review Section of your EBP Projec.docx
 
You work for an airline, a small airline, so small you have only one.docx
You work for an airline, a small airline, so small you have only one.docxYou work for an airline, a small airline, so small you have only one.docx
You work for an airline, a small airline, so small you have only one.docx
 
You work for a small community hospital that has recently updated it.docx
You work for a small community hospital that has recently updated it.docxYou work for a small community hospital that has recently updated it.docx
You work for a small community hospital that has recently updated it.docx
 
You work for a regional forensic computer lab and have been tasked w.docx
You work for a regional forensic computer lab and have been tasked w.docxYou work for a regional forensic computer lab and have been tasked w.docx
You work for a regional forensic computer lab and have been tasked w.docx
 

Kürzlich hochgeladen

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Kürzlich hochgeladen (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 

Name _______________________________ Class time __________.docx

  • 1. Name: _______________________________ Class time: __________ Prewriting Instructions for Paper 2 (Final Paper due 4/22) 1. Your choices for Paper 2 are posted on blackboard and also listed below. 2. Choose 1 of these paper options. Notice that each choice also mentions the type of paper (comparison, etc.) My paper choice is: _________________________: paper type: _______________. 3. Read the related essay(s) in your Research and Composition textbook. 4. Thursday: write a tentative thesis for paper 2 (one sentence): _____________________________________________________ _____________________________________________________ _____________________________________________________ _____________________________________________________ __. 5. Thursday: write 5 questions that you will need to answer through research to write this paper (for ex. What is the divorce rate for 2012?) Write legibly please. 1. 2. 3. 4. 5. 6. Thursday: go to the library and use the databases to locate at
  • 2. least three sources that will likely give you the information to answer the five questions above. At least one should be a book, at least one should be a database article. In addition, you may use your textbook, internet, or even refer to a film. Write down the all of the information about each source. You will need this information for a works cited page later or to locate the article and book again. You do not need to answer the questions right away, but if you do find the answers, take notes or make a copy of the source. Source 1: _____________________________________________________ _____________________________________________________ __________________________________________________ Source 2: _____________________________________________________ _____________________________________________________ __________________________________________________ Source 3: _____________________________________________________ _____________________________________________________ __________________________________________________ 7. Have any new questions come to mind? What are they? Write them here: 8. Have you revised your thesis? What is it? ___________________________________ _____________________________________________________ ________________. 9. Write a tentative first paragraph to paper 2 (this includes your thesis):
  • 3. 10. Turn this in Tuesday 3/25 in exchange for your last Q exercise, M&M Color Distribution. ***You need this prewriting exercise completed to receive your instructions and data for this last Q exercise and parts of this exercise will count for your attendance in a week or so. See next page Writing Assignment 2 Choices due on or before 4/22 Here are your choices for Writing Assignment 2 due 4/22. Additional research is required for all choices. Two visuals, tables or figures, are required. Your paper will be in MLA format with a works cited page. This paper is approximately 5 pages including a works cited page. 1. Read the essays in Chapter 8. Go to p. 510-511. Choose to write a paper based on one of these questions: #8, 10, 11, 12, or 13. For question 8, see prompt and write a cause and effect paper; for question 10 or 11 see prompt and write a comparison paper; for question 12, see prompt and write a definition paper 1. Read “State of Our Unions,” p. 368, and update the essay with current trends and statistics. (comparison) 1. Respond to any of the essays in Chapter 8. You may agree or disagree with the author based on your evidence from research. (persuasion)
  • 4. Exam Name___________________________________ MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) Analyze the following program fragment: int x; double d = 1.5; switch (d) { case 1.0: x = 1; case 1.5: x = 2; case 2.0: x = 3; } 1) A) The switch control variable cannot be double. B) The program has a compile error because the required break statement is missing in the switch statement. C) The program has a compile error because the required default case is missing in the switch statement. D) No errors. 2) Analyze the following code: boolean even = false; if (even = true) { System.out.println("It is even!");
  • 5. } 2) A) The program runs fine, but displays nothing. B) The program runs fine and displays It is even!. C) The program has a runtime error. D) The program has a compile error. 3) What is the printout of the following switch statement? char ch = 'a'; switch (ch) { case 'a': case 'A': System.out.print(ch); break; case 'b': case 'B': System.out.print(ch); break; case 'c': case 'C': System.out.print(ch); break; case 'd': case 'D': System.out.print(ch); } 3) A) abc B) abcd C) ab D) aa E) a 1 4) The order of the precedence (from high to low) of the operators +, *, &&, ||, & is: 4)
  • 6. A) *, +, &, &&, || B) *, +, &&, ||, & C) &&, ||, &, *, + D) &, ||, &&, *, + E) *, +, &, ||, && 5) The statement System.out.printf("%10s", 123456) outputs ________. (Note: * represents a space) 5) A) ****123456 B) 12345***** C) 123456**** D) 23456***** 6) The following code displays ________. double temperature = 50; if (temperature >= 100) System.out.println("too hot"); else if (temperature <= 40) System.out.println("too cold"); else System.out.println("just right"); 6) A) too cold B) too hot C) too hot too cold just right D) just right 7) Which of the following code displays the area of a circle if the radius is positive? 7) A) if (radius >= 0) System.out.println(radius * radius * 3.14159); B) if (radius != 0) System.out.println(radius * radius * 3.14159); C) if (radius > 0) System.out.println(radius * radius * 3.14159); D) if (radius <= 0) System.out.println(radius * radius * 3.14159);
  • 7. 8) ________ is the code with natural language mixed with Java code. 8) A) A flowchart diagram B) Java program C) Pseudocode D) A Java statement 9) Analyze the following code: if (x < 100) && (x > 10) System.out.println("x is between 10 and 100"); 9) A) The statement compiles fine. B) The statement has compile errors because (x<100) & (x > 10) must be enclosed inside parentheses and the println(…) statement must be put inside a block. C) The statement compiles fine, but has a runtime error. D) The statement has compile errors because (x<100) & (x > 10) must be enclosed inside parentheses. 10) In Java, the word true is ________. 10) A) same as value 1 B) same as value 0 C) a Boolean literal D) a Java keyword 2 11) How many times will the following code print "Welcome to Java"? int count = 0;
  • 8. do { System.out.println("Welcome to Java"); } while (count++ < 10); 11) A) 11 B) 0 C) 8 D) 9 E) 10 12) What is sum after the following loop terminates? int sum = 0; int item = 0; do { item++; sum += item; if (sum > 4) break; } while (item < 5); 12) A) 5 B) 7 C) 6 D) 8 13) What is i after the following for loop? int y = 0; for (int i = 0; i<10; ++i) { y += i; } 13) A) 9 B) 11 C) 10 D) undefined 14) How many times will the following code print "Welcome to Java"?
  • 9. int count = 0; while (count < 10) { System.out.println("Welcome to Java"); count++; } 14) A) 11 B) 8 C) 0 D) 10 E) 9 15) How many times will the following code print "Welcome to Java"? int count = 0; while (count++ < 10) { System.out.println("Welcome to Java"); } 15) A) 0 B) 10 C) 9 D) 11 E) 8 3 16) What is the number of iterations in the following loop: for (int i = 1; i < n; i++) { // iteration } 16) A) 2*n B) n C) n + 1 D) n - 1
  • 10. 17) Analyze the following fragment: double sum = 0; double d = 0; while (d != 10.0) { d += 0.1; sum += sum + d; } 17) A) The program never stops because d is always 0.1 inside the loop. B) After the loop, sum is 0 + 0.1 + 0.2 + 0.3 + ... + 1.9 C) The program does not compile because sum and d are declared double, but assigned with integer value 0. D) The program may not stop because of the phenomenon referred to as numerical inaccuracy for operating with floating-point numbers. 18) What is Math.rint(3.5)? 18) A) 3.0 B) 5.0 C) 4.0 D) 3 E) 4 19) Which of the following should be declared as a void method? 19) A) Write a method that checks whether current second is an integer from 1 to 100. B) Write a method that prints integers from 1 to 100. C) Write a method that converts an uppercase letter to lowercase. D) Write a method that returns a random integer from 1 to 100.
  • 11. 20) Given the following method static void nPrint(String message, int n) { while (n > 0) { System.out.print(message); n--; } } What is k after invoking nPrint("A message", k)? int k = 2; nPrint("A message", k); 20) A) 2 B) 0 C) 1 D) 3 21) What is Math.ceil(3.6)? 21) A) 3 B) 3.0 C) 4.0 D) 5.0 4 22) ________ is to implement one method in the structure chart at a time from the top to the bottom. 22) A) Bottom-up and top-down approach B) Top-down approach C) Stepwise refinement D) Bottom-up approach 23) What is the output of the following program? import java.util.Date; public class Test { public static void main(String[ ] args) {
  • 12. Date date = new Date(1234567); m1(date); System.out.print(date.getTime() + " "); m2(date); System.out.println(date.getTime()); } public static void m1(Date date) { date = new Date(7654321); } public static void m2(Date date) { date.setTime(7654321); } } 23) A) 7654321 1234567 B) 1234567 7654321 C) 1234567 1234567 D) 7654321 7654321 24) Which of the following statement is most accurate? (Choose all that apply.) 24) A) An object may contain other objects. B) A reference variable refers to an object. C) An object may contain the references of other objects. D) A reference variable is an object. 25) How many JFrame objects can you create and how many can you display? 25) A) three B) one C) two D) unlimited 26) An object is an instance of a ________. 26) A) data B) class C) method D) program
  • 13. 5 27) Analyze the following code fragments that assign a boolean value to the variable even. Code 1: if (number % 2 == 0) even = true; else even = false; Code 2: even = (number % 2 == 0) ? true: false; Code 3: even = number % 2 == 0; 27) A) Code 3 has a compile error, because you attempt to assign number to even. B) All three are correct, but Code 2 is preferred. C) All three are correct, but Code 1 is preferred. D) Code 2 has a compile error, because you cannot have true and false literals in the conditional expression. E) All three are correct, but Code 3 is preferred. 28) What is the printout of the following switch statement? char ch = 'b'; switch (ch) {
  • 14. case 'a': System.out.print(ch); case 'b': System.out.print(ch); case 'c': System.out.print(ch); case 'd': System.out.print(ch); } 28) A) bcd B) bbb C) bb D) abcd E) b 29) Suppose x=10 and y=10. What is x after evaluating the expression (y > 10) && (x-- > 10)? 29) A) 11 B) 9 C) 10 30) To add 0.01 + 0.02 + ... + 1.00, what order should you use to add the numbers to get better accuracy? 30) A) add 1.00, 0.99, 0.98, ..., 0.02, 0.01 in this order to a sum variable whose initial value is 0. B) add 0.01, 0.02, ..., 1.00 in this order to a sum variable whose initial value is 0. 31) How many times are the following loops executed? for (int i = 0; i < 10; i++) for (int j = 0; j < i; j++) System.out.println(i * j) 31) A) 100 B) 10 C) 20 D) 45 6
  • 15. 32) Analyze the following code. public class Test { public static void main(String[ ] args) { System.out.println(m(2)); } public static int m(int num) { return num; } public static void m(int num) { System.out.println(num); } } 32) A) The program runs and prints 2 once. B) The program runs and prints 2 twice. C) The program has a compile error because the two methods m have the same signature. D) The program has a compile error because the second m method is defined, but not invoked in the main method. 33) Which of the following is the best for generating random integer 0 or 1? 33) A) (int)Math.random() B) (int)(Math.random() + 0.2) C) (int)(Math.random() + 0.8) D) (int)Math.random() + 1
  • 16. E) (int)(Math.random() + 0.5) 34) Variables that are shared by every instances of a class are ________. 34) A) private variables B) class variables C) instance variables D) public variables 35) Which of the following operators are right-associative? 35) A) + B) % C) * D) = E) && 36) What is the number of iterations in the following loop: for (int i = 1; i <= n; i++) { // iteration } 36) A) n B) n + 1 C) n - 1 D) 2*n 37) What is Math.rint(3.6)? 37) A) 4.0 B) 3.0 C) 5.0 D) 3 7 38) What code may be filled in the blank without causing syntax or runtime errors: public class Test { java.util.Date date; public static void main(String[ ] args) { Test test = new Test(); System.out.println(________);
  • 17. } } 38) A) test.date B) date.toString() C) test.date.toString() D) date 39) Suppose x=10 and y=10 what is x after evaluating the expression (y >= 10) || (x-- > 10)? 39) A) 11 B) 9 C) 10 40) What is the value in count after the following loop is executed? int count = 0; do { System.out.println("Welcome to Java"); } while (count++ < 9); System.out.println(count); 40) A) 8 B) 0 C) 9 D) 10 E) 11 8 Note all essays require research, at least 3 sources, and two visuals. Choose one of the below for Paper 2. #8. Write an essay explain how damaging it is for a man not to fit the social stereotype for what is expected of a male in terms of appearance and behavior (ex. A man who is not interested in playing and/or watching sports). Use sources to support your idea. (cause and effect)
  • 18. #10. How are the differences between men’s and women’s communication strategies related to social or biological norms. What values of the society do these differing approaches reveal? Research the communication strategies of men and women and write an essay explaining the differences. (comparison) #11. Statistically, men tend to hold more positions of power and wealth than women do. Many women feel that simply being born male automatically confers status and power, or at the very least, makes life easier. This cultural assumption, however, may apply to only a very small segment of the male population. Write an essay discussing the effects of this stereotype on men. (comparison) #12. Write an essay explaining what it means to be male in today’s society. Consider how men factor into current social, intellectual, political, economic, and religious arenas. Consider the opportunities that are available – or not available-to men. (definition) #13. What does it mean to be a wife in another culture? Choose at least two other cultures and research those societies’ expectations of a wife. Try to find cultures that show significant differences. Remember that interviews might be a useful source of information-even email interview with wives in other cultures. Using your research, write an essay offering a comparative definition of a wife. Assume that your audience is American. Be certain to document your sources, including any interviews or email conversations. (definition) Read “State of Our Unions,” p. 368 in my book, and update the essay with current trends and statistics. (comparison) Respond to any of the essays in Chapter 8 (Gender in my book). You may agree or disagree with the author based on your evidence from research. (persuasion)