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 choiceAP Practice
Supplemental Materials
call kaiCall Kai
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
Photosynthesis Quiz
Updated 1282d ago
0.0(0)
note
Unit 5: Period 5: 1844-1877
Updated 1063d ago
0.0(0)
note
Dutch
Updated 410d ago
0.0(0)
note
Iteration
Updated 1094d ago
0.0(0)
note
Specific Phobias
Updated 1161d ago
0.0(0)
note
Photosynthesis Quiz
Updated 1282d ago
0.0(0)
note
Unit 5: Period 5: 1844-1877
Updated 1063d ago
0.0(0)
note
Dutch
Updated 410d ago
0.0(0)
note
Iteration
Updated 1094d ago
0.0(0)
note
Specific Phobias
Updated 1161d ago
0.0(0)

Explore top flashcards

flashcards
Unit 2 Health ILSW 7
149
Updated 277d ago
0.0(0)
flashcards
Religion 2 - Kristendom
53
Updated 1146d ago
0.0(0)
flashcards
La Siesta del Martes
55
Updated 928d ago
0.0(0)
flashcards
Piliavin
59
Updated 1105d ago
0.0(0)
flashcards
9
106
Updated 1138d ago
0.0(0)
flashcards
Structures with Hammy
92
Updated 1072d ago
0.0(0)
flashcards
Unit 2 Health ILSW 7
149
Updated 277d ago
0.0(0)
flashcards
Religion 2 - Kristendom
53
Updated 1146d ago
0.0(0)
flashcards
La Siesta del Martes
55
Updated 928d ago
0.0(0)
flashcards
Piliavin
59
Updated 1105d ago
0.0(0)
flashcards
9
106
Updated 1138d ago
0.0(0)
flashcards
Structures with Hammy
92
Updated 1072d ago
0.0(0)