Are you taking CLEP classes? Try clep.ai
| 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

Mark
< Prev
Next >

What is printed when the following program is executed?

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

67

B

Compilation Error

C

Undefined

D

C

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

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1solsaloe12 0m 00s 90
#2ntgamja111 0m 36s 64
#3jaimonjosh11 0m 43s 57
#4richa.tuli12 1m 12s 18
#5srivastavarishit63501 0m 33s -43
#6busemagngr03 0m 32s -62
#7lsj0803092213 5m 56s -276
Items per page:
10
1 – 7 of 7

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|