
Technical Training Test for III BTech - VCE - CSE
Authored by machinelearning gr
Computers, Mathematics
University
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of Java code snippet below?
short p = 1;
short k = p + 2;
System.out.println(k);
1
2
3
Compiler error
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the Java code snippet?
int a=5, b=10, c=15;
a -= 3;
b *= 2;
c /= 5;
System.out.println(a +" " + b + " " + c);
2 20 3
2 20 5
2 10 5
-2 20 3
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Between Postfix and Prefix arithmetic operators in Java, which operators have more priority?
Postfix operators have more priority than Prefix operators
Prefix operators have more priority than Postfix operators
Both Prefix and Postfix operators have equal priority
None of the above
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Output of the following code snippet (JAVA)?
class Main {
public static void main(String args[]) {
int t;
System.out.println(t);
}
}
0
Garbage value
Compiler error
Runtime error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Output of the code snippet
Hello
Empty Output
Compile time error
Runtime error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output (JAVA)?
0
1
True
False
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the error in this code(JAVA)?
byte b = 50;
b = b * 50;
b can not contain value 100, limited by its range.
* operator has converted b * 50 into int, which can not be converted to byte without casting.
b can not contain value 50.
No error in this code
Access all questions and much more by creating a free account
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?