• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 11 pages
Exam (elaborations)

ITEC 1030-Intro to programming- Week 2

Document preview thumbnail
Preview 2 out of 11 pages

ITEC 1030-Intro to programming- Week 2 • Question 1 0.5 out of 0.5 points When data cannot be changed after a class is complied, the data is . Selected Answer: consta nt Correct Answer: consta nt • Question 2 Which of the following is not a primitive data type in Java? Selected Answer: sector Correct Answer: sector • Question 3 0.5 out of 0.5 points 1 out of 1 points Which of the following elements is not required in a variable declaration? Selected Answer: an assigned value Correct Answer: an assigned value ▪ Question 4 The assignment operator in Java is . Selected Answer: = Correct Answer: = ▪ Question 5 1 out of 1 points 1 out of 1 points Assuming you have declared shoeSize to be a variable of type int, which of the following is valid assignment statement in Java? Selected Answer: shoeSize = 9; Correct Answer: shoeSize = 9; • Question 6 1 out of 1 points Which of the following data types can store a value in the least amount of memory? Selected Answer: byte Correct Answer: byte • Question 7 A boolean variable can hold . Selected Answer: the value true or false 1 out of 1 points Correct Answer: the value true or false • Question 8 The value 137.68 can be held by a variable of type . Selected Answer: Two of the preceding answers are correct. 1 out of 1 points Correct Answer: Two of the preceding answers are correct. • Question 9 An escape sequence always begins with a(n) . 0 out of 1 points Selected Answer: Correct [None Given] Answer: backslash ◦ Question 10 Which Java statement produces the following output? w xyz Selected Answer: Sln(“wn 1 out of 1 points Correct xyz”); Answer: Sln(“wn xyz”); ◦ Question 11 The remainder operator . Selected Answer: is none of the above Correct Answer: is represented by a percent sign ◦ Question 12 0 out of 1 points 1 out of 1 points Consider the arithmetic statement (4*5-19)*2+7. According to the rules of operator precedence, which of the following calculations would take place first? Selected Answer: 4* 5 Correct Answer: 4* 5 ◦ Question 13 The “equal to” relational operator is . Selected Answer: = = 1 out of 1 points Correct Answer: = = • Question 14 1 out of 1 points When you perform arithmetic with values of diverse types, Java .


Document information

Uploaded on
November 22, 2022
Number of pages
11
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers
$11.49

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.
BESTEXAMINER01
2.3
(4)
Sold
27
Followers
23
Items
2685
Last sold
7 months 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

Whoops! We can’t load your doc right now. Try again or contact support.