No student devices needed. Know more
10 questions
What kind of programming language does Java follow?
Machine Language
Assembly Code
High-level Language
ASCII Code
What command is used to output the variable 'p'
Java.output(p);
System.out.print(p)
System.output.print(p);
System.out.print(p);
What is an interpreter?
a program that reads each line of the code to check for errors
a program that translates high-level language to lower level languages (such as Assembly level or Machine Code)
a program that directly executes instructions written without requiring them to have previously been copied into a machine language program
None of the above
int Mystery( int num, int x, int y)
if (num<10)
return num;
else
{ int z = num % 10;
if ( z % 2 == 0 )
return z*x + Mystery( num/10,x,y);
else
return z*y + Mystery( num/10,x,y); }
Find the value that the function Mystery( ) will return if num=2, x=12 and y=4.
Which of the following is NOT a programming language?
Java
Python
Netbeans
C++
What does the acronym IDE stand for in NetBeans IDE?
int Mystery( int num, int x, int y)
if (num<10)
return num;
else
{ int z = num % 10;
if ( z % 2 == 0 )
return z*x + Mystery( num/10,x,y);
else
return z*y + Mystery( num/10,x,y); }
Find the value that the function Mystery( ) will return if num=23, x=2 and y=3.
How many times does this loop get executed?
2 times
3 times
5 times
Doesn't get executed, there is an error
Where does a java program start executing instructions from?
main method
main class
object
source file
What is the length of the array: byte[] data = { 12, 34, 9, 0, -62, 88 };
2
5
6
12
Explore all questions with a free account