What line in this code snippet will give compilation error?
double d1 = 5f; // c1
double d2 = 5.0; // c2
float f1 = 5f; // c3
float f2 = 5.0; // c4
Marupadi Evaluvations Till Collections
Quiz
•
Computers
•
Professional Development
•
Medium
S E
Used 3+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What line in this code snippet will give compilation error?
double d1 = 5f; // c1
double d2 = 5.0; // c2
float f1 = 5f; // c3
float f2 = 5.0; // c4
c1
c2
c3
c4
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Predict the Output
0
1
10
10010
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the Output: What will be the output of the program?
String x = "xyz";
x.toUpperCase();
String y = x.replace('Y', 'y');
y = y + "abc";
System.out.println(y);
abcXyZ
abcxyz
xyzabc
XyZabc
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Predict the Output What will be the output of the program?
String str = "abc";
int number= Integer.parseInt(str);
System.out.println(number);
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Predict the Output
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Predict the Output:
10 questions
C Programming
Quiz
•
Professional Development
10 questions
java 15-10-2023
Quiz
•
Professional Development
10 questions
Python-Quiz-Basic-Datatypes
Quiz
•
12th Grade - Professi...
10 questions
Day 3
Quiz
•
Professional Development
10 questions
Simple Easy Basic Lua Quiz
Quiz
•
4th Grade - Professio...
10 questions
Java SE: Programming I
Quiz
•
Professional Development
10 questions
Flutter_Q5
Quiz
•
Professional Development
10 questions
Java Strings
Quiz
•
1st Grade - Professio...
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade