Computer Science 1

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Number 9.)

2

Number 20.)

4

Number 19.)

Yes, (int)

Data types smallest to largest

Char, int, double, string

What is (6%2) *7?

0

Number 18.)

Char q = (char) Math.abs(-82);

Which character is not allowed in a variable name?

&

Number 16.)

97.6

Which of the following is a legal variable name in Java?

Ans

What is the best way to avoid round off error?

Convert doubles to ints and do calculations using integers

What is modular division not used for?

Converting decimals to whole numbers

What is a legal variable assignments in Java?

Double n=3;

Number 17.)

Error: possible loss of precision

Which would properly create A and B as integer variables?

Int A, B;

Number 14.)

Nothing wrong

Which of the following is not a primitive data type?

String

Which of the following correctly inputs a String?

String Val= scan.nextLine();

Which correctly stores the word umbrella in a variable called stuff?

String stuff = "umbrella";

Number 8.)

The answer is 519

Which of the following is a legal variable name in java?

\n


Ensembles d'études connexes

Principles of Finance C708 V4 - UG: Unit 5 Module 10

View Set

Domain 4 - Communication and Network Security

View Set

útba igazítás a kurva anyádat

View Set

ALGORITHM, ECOSYSTEM & FRAMEWORK

View Set

09.01 Test Short Story: Paul's Case

View Set

Ethics Final Study Guide- Week 5

View Set

9.3 Activities, 9.2 Activities, 9.1 Activities, 8.8 Activities, 8.7 Activities, 8.6 Activities, 8.5 Activities, 8.4 Acrtivities, 8.2 Activities, 8.1 Activities, 7.9 Quizlet, 7.8 Activities, 7.7 Activities, 7.6 Activities, 7.5 Activities, 7.4 Activiti...

View Set

ACC 3313 EXAM 3 (Chapt 13,14) - Binod Guragai

View Set

Wonders Vocabulary- Unit 6 Week 3- Resources

View Set

Chapter 10: Assessment of High Risk Pregnancy NCLEX

View Set

Grammar in Context from UN #HeForShe Campaign: Gender Equality is Your Issue Too by Emma Watson. Present, Past, Present Perfect Tenses in Active and Passive Voice https://quizlet.com/_unz6i

View Set