Computer Quiz(Java)(16-10-2020)

Quiz
•
Computers
•
9th Grade
•
Hard
Sherlin Anup
Used 31+ times
FREE Resource
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
Similar Resources on Wayground
12 questions
Java Strings

Quiz
•
9th - 12th Grade
10 questions
AP CS A Unit 7 Quiz PRACTICE

Quiz
•
9th - 12th Grade
15 questions
Python Basics Quiz

Quiz
•
9th Grade
10 questions
AP CS A Unit 6 Quiz PRACTICE

Quiz
•
9th - 12th Grade
14 questions
C ++ For Loop

Quiz
•
9th - 12th Grade
9 questions
C# Variables and Data Types

Quiz
•
8th Grade - University
13 questions
Delphi Term 2 Revision

Quiz
•
9th - 11th Grade
13 questions
APCSA Quiz 1

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade