MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Bluej
Quiz 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
What is the file extension for Java Source Code?
.java
.class
.exe
.obj
Q.2
Which of the following is not a feature of Java
Robust
Platform Specific
Multithreaded
Object-Oriented
Q.3
Which of the following is not the OOPS concept in Java?
Inheritance
Encapsulation
Polymorphism
Compilation
Q.4
Which of the following best describes what a variable is in computer programming terms?
the value of x
A named location of the computer's memory that will store data
the value of y
Any data that a computer will need to store
Q.5
Which of these are tokens
Keywords
Identifiers
String
All of the above
Q.6
What is the escape sequence for horizontal tab
\t
\v
\0
\b
Q.7
What is the file extension for Java Executable Code?
.java
.class
.exe
.obj
Q.8
Which of the below is an invalid identifier with the main method?
private
public
static
void
Q.9
What is the file extension for saving a Java file?
.java
java
.jar
.jpg
Q.10
What is the old name for Java Programming?
Java
Oak
Java2
C++
Q.11
Which of the following is a correct header line for main in a Java program?
public static void main(args)
public static void main(args [ ])
public static void main(String args)
public static void main(String args[ ])
Q.12
What this prints
1010
10 10
10
9 9
Q.13
Select the correct output of following java code
4 6
2 4
8
10
Q.14
Which of the following is the correct way to storevalues in an array?
int a[ 40]=new int[ ];
int a[ ]=new int[40];
int a[0 - 40]
int a [40];
Q.15
Which of the following is a valid print statement?
System.out.println("Hello");
System.out.printLn("Hello");
system.out.println("Hello");
println("Hello");
Q.16
Which of the following is a valid declaration of a field?
public int age;
private int age;
private int Age;
public int Age
Q.17
What is the output of the expression?
An error
catfish
fish
cat
Q.18
What would this output?
5bike134
12bike134
5bike17
12bike17
Q.19
Which is not a possible result of n%6
0
1
5
6
Q.20
Which math function is used to calculate the power of a number
Math.pow()
Math.log()
Math.cos()
Math.abs()
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page