LogIn
I don't have account.

Practice character Quizzes

Explore character in depth with quizzes covering fundamentals to advanced concepts. DevBrainiac's structured quiz format helps you understand theory, apply logic and master problem-solving techniques. With continuous practice, you can track progress, fix mistakes and build strong command of character.

Explore All character Quizzes

Learn character step by step with interactive quizzes designed for beginners and learners revising key concepts. Build a strong foundation with clear, structured practice in character.
Question 1
What is a character in programming?
1
A single letter, digit or symbol represented in a programming language
2
A function that manipulates text
3
A method to format strings
4
A type of variable that stores numeric values
Question 2
In C and Java, how are character literals represented?
1
Enclosed in curly braces (e.g. {A})
2
No special representation is required
3
Enclosed in single quotes (e.g. 'A')
4
Enclosed in double quotes (e.g. "A")
Question 3
What is the ASCII value of the character 'A'?
1
64
2
32
3
97
4
65
Question 4
Which of the following statements about Unicode is true?
1
Unicode only supports English characters
2
Unicode can represent characters from all languages
3
Unicode is limited to 8 bits
4
ASCII is more comprehensive than Unicode
Question 5
What is the Unicode representation of the character 'A'?
1
\u0043
2
\u0040
3
\u0042
4
\u0041
Question 6
Which encoding format supports emoji characters?
1
UTF-8
2
EBCDIC
3
ANSI
4
ASCII
Question 7
What will be the output of the following C++ code?
#include <iostream> 
#include <string>
#include <cstring>
using namespace std; 
int main(int argc, char const *argv[])
{
	const char *a = "Hello\0World";
	cout<<a;
	return 0;
}
1
World
2
Hello World
3
Hello
4
Error
Question 8
What is the minimum value that can be stored in a char variable in Java?
1
-32768
2
-128
3
'a'
4
0
Question 9
What is the default value of a boolean array element in Java if it's not explicitly initialized?
1
null
2
false
3
0
4
true
Question 10
Which of the following is not a valid way to declare a char variable in Java?
1
char w = 0x0041
2
char x = 'M'
3
char x = 'a'
4
char x = 64
Question 11
Which data type is used to store a single character in Java?
1
String
2
char
3
Character
4
character
Question 12
In Python, which function is used to get the ASCII value of a character?
1
chr()
2
asc()
3
ord()
4
ascii()
Question 13
What will be the output of the following Python code?
print(chr(66))
1
B
2
A
3
66
4
b
Question 14
In Java, what is the default value of a char variable?
1
null
2
' '
3
'\u0000'
4
0
Question 15
What will be the output of the following Python code?
print(ord('z') - ord('a'))
1
26
2
25
3
-25
4
24
Question 16
In JavaScript, which method is used to get the Unicode of a character?
1
charCodeAt()
2
codeAt()
3
getCode()
4
asciiCodeAt()
Question 17
In Python, which function converts an integer ASCII value to its corresponding character?
1
convert()
2
ord()
3
chr()
4
asc()
Question 18
What is the value of '1' + 1 in JavaScript?
1
11
2
TypeError
3
2
4
NaN
Question 19
What will be the output of 'A' + 1 in Python?
1
66
2
B
3
TypeError
4
A1
Question 20
In C++, which of the following correctly initializes a char array?
1
char arr[5] = "Hello";
2
char arr[] = "Hello";
3
char arr[] = {'H', 'e', 'l', 'l', 'o'};
4
Both 2 and 3
Question 21
What is the output of the following Java program?
System.out.println('A' + 1);
1
A1
2
66
3
Compilation Error
4
B