Computer Quiz(Java)(16-10-2020)
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Sherlin Anup
Used 31+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
- What will be the output of the following program code?
int a=0,b=30,c=40;
a=--b+c++ +b;
System.out.println(a);
97
90
98
100
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
int a=27;
a/=3;
System.out.println(a);
24
30
9
3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The method which returns the value of the argument a which may be of either float or double data type rounded to the nearest integer is ________________
Math.ceil(a)
Math.floor(a)
Math.round(a)
Math.rint(a)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A bug in a program that causes it to operate incorrectly, but not to terminate abnormally is ______________
Syntax Error
Semantics Error
Logical Error
Runtime Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which among the following forms of Operators works with three Operands?
Unary
Binary
Ternary
Tertiary
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Give the output of the following code.
class op
{
public static void main(String args[])
{
int m=0,n=0;
int p=--m*--n*n--*m--;
System.out.println(p);
}
}
1
0
-1
2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Give the output of the following code?
public class op7
{
public static void main(String args[])
{
int i=11;
int j=i++ +i--;
System.out.println(j);
}
}
21
22
23
20
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
Calidad y Atributos del Servicio
Quiz
•
9th - 12th Grade
10 questions
ciencia vs ingenieria
Quiz
•
1st - 10th Grade
10 questions
Sistema Binario
Quiz
•
1st Grade - University
15 questions
Mengenal Jendela dan Ikon Microsoft Excel
Quiz
•
7th Grade - University
11 questions
Excel
Quiz
•
1st - 10th Grade
12 questions
Tabele HTML
Quiz
•
9th Grade
13 questions
EXAMEN-2°AÑO-INFORMATICA P3-2021
Quiz
•
1st - 9th Grade
10 questions
Berfikir Komputesional
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
