Which of the following is not a valid identifier name
My_File123
My File_12_3
12$3_Mylife
MYFILE123
A complete unit of execution of a program is called
Scope
Block
Statement
Expression
Combination of operators,constants and variables are called
programs
expression
function
array
Which is the correct way to represent a string literal?
sting s= 'smartindia';
string s= "smartindia";
string s="//smartindia/";
string s= smartindia;
What is the default type of the value we taken from a GUI component?
Integer
Char
Double
Text
What is the size(in bytes) of short integer datatype.
1 byte
2 byte
4 byte
8 byte
System.out.println(“SMART”);
System.out.println(“INDIA”);What will be the output of the above code?
SMARTINDIA
SMART
INDIA
SMART INDIA
INDIASMA INDIA
Which operator joins two or more expressions or statements?
Arithmetic
Logical
Relational
Assignment
Which method isused to show messagebox on the GUI window?
JOptionPane. MessageBox(true,”Message to print”);
JOptionPane.showMessageDialog(null,”Message to print”);
JOptionPane.showMessageBox(true,”Message to print”);
Java uses which type of character set?
binary
unary
unicode
bytecode