| preferred AP College board partner for AP classes
AP Computer Science A/Unit 1: Primitive Types
Start Practice TestPractice Test
About Exam
easy Solved by 5 students
Character to Integer Type Casting
< Prev
Next >

What does the program output?

public class Main {
    public static void main(String[] args) {
        char letter = 'C';
        int result = letter;
        System.out.println(result);
    }
}
A

Undefined

B

Compilation Error

C

C

D

67

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Time
Score
#1solsaloe12 0m 00s 90
#2ntgamja111 0m 36s 64
#3jaimonjosh11 0m 43s 57
#4richa.tuli12 1m 12s 18
#5busemagngr02 0m 04s -24
#6lsj0803092213 5m 56s -276
Items per page:
10
1 – 6 of 6
No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy