Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : java - JAVA VALUE AND TYPES
JAVA VALUE AND TYPES
00:00:00
English
Hindi
Question No# :
01
out of 32
Which among the following Scanner methods allows us to input a number with a decimal point?
Which among the following Scanner methods allows us to input a number with a decimal point?
A.
nextInt()
nextInt()
B.
nextFloat()
nextFloat()
C.
nextDecimal()
nextDecimal()
D.
nextPoint()
nextPoint()
Question No# :
02
out of 32
Which among the following is not a Token?
Which among the following is not a Token?
A.
Keywords
Keywords
B.
Literals
Literals
C.
Identifiers
Identifiers
D.
Data Type
Data Type
Question No# :
03
out of 32
Which of the following is the name given to a variable in java?
जावा में एक वेरिएबल को निम्नलिखित में से कौन सा नाम दिया गया है?
A.
Identifier
Identifier
B.
Operator
Operator
C.
Value
Value
D.
None of These
None of These
Question No# :
04
out of 32
To store character values, a corresponding numeric value generated in
To store character values, a corresponding numeric value generated in
A.
Decimal Form
Decimal Form
B.
Binary Form
Binary Form
C.
ASCII
ASCII
D.
UNICODE
UNICODE
Question No# :
05
out of 32
Which among the following is not a punctuator?
Which among the following is not a punctuator?
A.
; semicolon
; semicolon
B.
, comma
, comma
C.
: colon
: colon
D.
. dot
. dot
Question No# :
06
out of 32
Which among the following encoding system can represent 65536 characters?
Which among the following encoding system can represent 65536 characters?
A.
ASCII
ASCII
B.
Unicode
Unicode
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No# :
07
out of 32
Which among the following is a keyword but not a literal?
Which among the following is a keyword but not a literal?
A.
for
for
B.
null
null
C.
true
true
D.
false
false
Question No# :
08
out of 32
What is the name given to a memory location called in Java?
What is the name given to a memory location called in Java?
A.
Variable
Variable
B.
Constant
Constant
C.
Data Type
Data Type
D.
None of these
None of these
Question No# :
09
out of 32
Which among the following is used to represent single-line comment?
Which among the following is used to represent single-line comment?
A.
//
//
B.
/*
/*
C.
\
\\
D.
\\
Question No# :
10
out of 32
Which of the following is the default value of long data type?
Which of the following is the default value of long data type?
A.
0
0
B.
0.0
0.0
C.
0L
0L
D.
0.0f
0.0f
Question No# :
11
out of 32
Which among the following is a valid class name?
निम्नलिखित में से कौन सा वैध क्लास नाम है?
A.
Simple Interest
Simple Interest
B.
SimpleInterest
SimpleInterest
C.
1SimpleInterest
1SimpleInterest
D.
Simple@Interest
Simple@Interest
Question No# :
12
out of 32
Which among the following is not a primitive data type?
Which among the following is not a primitive data type?
A.
int
int
B.
float
float
C.
String
String
D.
char
char
Question No# :
13
out of 32
What are the default values of the primitive data type 'FLOAT' ?
What are the default values of the primitive data type 'FLOAT' ?
A.
0
0
B.
0.0
0.0
C.
0.0f
0.0f
D.
0.0d
0.0d
Question No# :
14
out of 32
Which of the following are the reserved word in java?
निम्नलिखित में से कौन सा जावा में आरक्षित शब्द है?
A.
Variables
Variables
B.
Literals
Literals
C.
Keywords
Keywords
D.
Punctuators
Punctuators
Question No# :
15
out of 32
In which of the following conversions, we can assign a value of larger data type of to a smaller data type?
निम्नलिखित में से किस रूपांतरण में, हम बड़े डेटा प्रकार का मान छोटे डेटा प्रकार को निर्दिष्ट कर सकते हैं?
A.
Explicit Type Conversion
Explicit Type Conversion
B.
Implicit Type Conversion
Implicit Type Conversion
C.
Both A and B
Both A and B
D.
None of These
None of These
Question No# :
16
out of 32
Which datatype store true/false type value
कौन सा डेटाटाइप हाँ/नहीं प्रकार का डेटा संग्रहीत करता है
A.
Varient
Varient
B.
Integer
Integer
C.
Boolean
Boolean
D.
String
String
Question No# :
17
out of 32
Which are the data types used in Java?
Which are the data types used in Java?
A.
Primitive data type
Primitive data type
B.
Composite data type
Composite data type
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No# :
18
out of 32
Which among the following is a valid octal integer literal?
Which among the following is a valid octal integer literal?
A.
0178
0178
B.
675
675
C.
0675
0675
D.
0X675
0X675
Question No# :
19
out of 32
Which of the following is a symbol used to perform a calculation?
निम्नलिखित में से कौन सा प्रतीक गणना करने के लिए उपयोग किया जाता है?
A.
Punctuator
Punctuator
B.
Variable
Variable
C.
Separator
Separator
D.
Operator
Operator
Question No# :
20
out of 32
What is the largest possible value that can be stored in short data type?
What is the largest possible value that can be stored in short data type?
A.
215-1
215-1
B.
231-1
231-1
C.
27-1
27-1
D.
263-1
263-1
Question No# :
21
out of 32
Which of the following is a token in java
निम्नलिखित में से कौन सा जावा में एक टोकन है
A.
Operators
Operators
B.
Identifiers
Identifiers
C.
Literals
Literals
D.
All of These
All of These
Question No# :
22
out of 32
Which among the following is a valid float literal?
Which among the following is a valid float literal?
A.
12.36f
12.36f
B.
12.36F
12.36F
C.
12.36
12.36
D.
Both a and b
Both a and b
Question No# :
23
out of 32
Which of the following is the range of values that can be stored in a int variable?
Which of the following is the range of values that can be stored in a int variable?
A.
-128 to 127
-128 to 127
B.
-32768 to 32767
-32768 to 32767
C.
-2^31 to (2^31)-1
-2^31 to (2^31)-1
D.
None of these
None of these
Question No# :
24
out of 32
Which of the following is an example of static initialization?
निम्नलिखित में से कौन सा स्थैतिक आरंभीकरण का एक उदाहरण है?
A.
A=B+C;
A=B+C;
B.
A=8;
A=8;
C.
Both A and B
Both A and B
D.
None of these
None of these
Question No# :
25
out of 32
Which of the following is encoding techniques made of 128 characters consisting of letters, digits and special characters?
निम्नलिखित में से कौन सी एन्कोडिंग तकनीक है जो अक्षरों, अंकों और विशेष वर्णों से युक्त 128 वर्णों से बनी है?
A.
UNICODE
UNICODE
B.
ASCII
ASCII
C.
Both A and B
Both A and B
D.
None of these
None of these
Question No# :
26
out of 32
Which among the following is a valid method of initialising?
Which among the following is a valid method of initialising?
A.
boolean f=true;
boolean f=true;
B.
boolean f=True;
boolean f=True;
C.
boolean f=’true’;
boolean f=’true’;
D.
None of these
None of these
Question No# :
27
out of 32
Which of the following symbol is used to create string literals?
निम्नलिखित में से किस प्रतीक का उपयोग स्ट्रिंग अक्षर बनाने के लिए किया जाता है
A.
Single quotes
Single quotes
B.
Double quotes
Double quotes
C.
Question Mark
Question Mark
D.
Greater than
Greater than
Question No# :
28
out of 32
If the data that is to take part in a calculation in a method is fixed, which form of input is necessary?
If the data that is to take part in a calculation in a method is fixed, which form of input is necessary?
A.
Initialisation
Initialisation
B.
Parameterised input
Parameterised input
C.
Scanner input
Scanner input
D.
None of these
None of these
Question No# :
29
out of 32
which of the following is not a part of java character set?
निम्नलिखित में से कौन सा जावा कैरेक्टर सेट का हिस्सा नहीं है?
A.
0-9
0-9
B.
a-z
a-z
C.
A-Z
A-Z
D.
None of These
None of These
Question No# :
30
out of 32
If a is of type int and b is of type float what would be the resultant data type of a+b?
If a is of type int and b is of type float what would be the resultant data type of a+b?
A.
int
int
B.
float
float
C.
double
double
D.
short
short
Question No# :
31
out of 32
Assigning value to a variable during declaration is called.
Assigning value to a variable during declaration is called.
A.
Declaration
Declaration
B.
Assignment
Assignment
C.
Initialisation
Initialisation
D.
None of these
None of these
Question No# :
32
out of 32
Which among the following is a valid object name?
निम्नलिखित में से कौन सा वैध ऑब्जेक्ट नाम है?
A.
obj1
obj1
B.
1obj
1obj
C.
Obj 1
Obj 1
D.
Obj#1
Obj#1
Latest Current Affairs 2024
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2024
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz