1.1.2 & 1.3.2 : Printing in Java & Arithmetic Expressions

0.0(0)
Studied by 7 people
0%Unit 1 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
Card Sorting

1/6

Last updated 11:05 PM on 3/21/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

7 Terms

1
New cards

What will this code segment output?

System.out.println("Hello");
System.out.println("World");

Hello
World

2
New cards

Which code segment will print “Hello Karel” to the screen in Java?

System.out.println("Hello Karel");

3
New cards

What will this code segment output?

public class Printing
{
    public static void main(String[] args)
    {
        System.out.println("*****");
        System.out.println("****");
        System.out.println("***");
        System.out.println("**");
        System.out.println("*");
    }
}

*****
****
***
**
*

4
New cards

What is the correct syntax for writing the main method in Java?

public static void main(String[] args)
{

}

5
New cards

What is the result of this expression?

150 % 100

50

6
New cards

Which of the below is NOT a Java arithmetic operator?

+

-

#

/

#

7
New cards

What will be the output of the following code snippet?

public class Calculator
{
    public static void main(String[] args)    
   {
        int first = 7;
        int second = 2;
        int result = first / second;
        System.out.println(result);
    }
}

3

Explore top notes

note
Gases and Solutions
Updated 1206d ago
0.0(0)
note
Chapter 3: Federalism
Updated 1019d ago
0.0(0)
note
apush 5.1-5.3
Updated 464d ago
0.0(0)
note
Español 3H Repaso vocabulario
Updated 1060d ago
0.0(0)
note
Cranial Nerves
Updated 392d ago
0.0(0)
note
Gases and Solutions
Updated 1206d ago
0.0(0)
note
Chapter 3: Federalism
Updated 1019d ago
0.0(0)
note
apush 5.1-5.3
Updated 464d ago
0.0(0)
note
Español 3H Repaso vocabulario
Updated 1060d ago
0.0(0)
note
Cranial Nerves
Updated 392d ago
0.0(0)

Explore top flashcards

flashcards
Bio Lecture Final
276
Updated 690d ago
0.0(0)
flashcards
Microbiology Exam 4 Part 2
108
Updated 1062d ago
0.0(0)
flashcards
industrialization study guide
20
Updated 913d ago
0.0(0)
flashcards
Mesopotamia vocab
37
Updated 123d ago
0.0(0)
flashcards
bio practical 3
82
Updated 1077d ago
0.0(0)
flashcards
AD 227 Exam 3 Key Works
33
Updated 315d ago
0.0(0)
flashcards
Bio Lecture Final
276
Updated 690d ago
0.0(0)
flashcards
Microbiology Exam 4 Part 2
108
Updated 1062d ago
0.0(0)
flashcards
industrialization study guide
20
Updated 913d ago
0.0(0)
flashcards
Mesopotamia vocab
37
Updated 123d ago
0.0(0)
flashcards
bio practical 3
82
Updated 1077d ago
0.0(0)
flashcards
AD 227 Exam 3 Key Works
33
Updated 315d ago
0.0(0)