Integer n1=2000,n2=2000;
Integer n3=20,n4=20;
System.out.println(n3==n4);
System.out.println(n1==n2);
What will be the output for the given code snippet in java?
Coding Competation(Round 1)
Quiz
•
Computers
•
University
•
Hard
GOPE KUMAR
Used 9+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Integer n1=2000,n2=2000;
Integer n3=20,n4=20;
System.out.println(n3==n4);
System.out.println(n1==n2);
What will be the output for the given code snippet in java?
True,True
False,True
False,False
True,False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for the given C code ?
var=1000,a=01000
var=8,a=8
var=1000,a=512
var=1000,a=8
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
System.out.println(0.3 == 0.1*3);
System.out.println(0.2 == 0.1*2);
What will be the output for the given code snippet in java ?
True,True
False,True
False,False
True,False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for the given C code?
Welcome
Compile time error!
No output
Welcome to SitarWelcome
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for the given Java code ?
Compile error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output for the given Java code snippet ?
4
3
Compile time error
Depend on compiler
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the given C code ?
Based on 32 bit computer
sizeof(str1) = 7, sizeof(str2) = 7
sizeof(str1) = 8, sizeof(str2) = 9
sizeof(str1) = 4, sizeof(str2) = 9
sizeof(str1) = 4, sizeof(str2) = 7
30 questions
Python Function
Quiz
•
University
30 questions
Code debugging - Round 1
Quiz
•
University
30 questions
quiz
Quiz
•
University
30 questions
Computer Programming-2
Quiz
•
University
35 questions
CodeChef (Secret Snippet)
Quiz
•
University
30 questions
C-Language Q1
Quiz
•
University
30 questions
blitz
Quiz
•
University
30 questions
Code Twisters Round One Batch -1
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade