
Grade 10 Computer Application String Handling
Authored by Namrata Boob
others
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1.Give the output of the following program fragment:String s=new String(“He went to the market”);String r; r=s.replace(“went”,“is going”); System.out.println(r);
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. What will be the output for the following program segment?String s = new String(“abc”);System.out.println(s.toUpperCase());
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. What will be the output of the following code?char x = ‘A’; int m;m=(x= =’a’) ? ‘A’ : ‘a’;System.out.println(“m=”+m);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. Write a statement each to perform the following task on a string:-Find and display the position of the last space in a string s.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. Write a statement each to perform the following task on a string:-Convert a number stored in a string variable x to double data type
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.Give the output of the following string functions:-(ii) “DEDICATE”.compareTo(“DEVOTE”)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. Consider the following String array and give the output:String arr[]={“DELHI”, “CHENNAI”, “MUMBAI”, “LUCKNOW”, “JAIPUR”};System.out.print(arr[0].length()>arr[3].length());System.out.print(arr[4].substring(0,3));
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?
Similar Resources on Wayground
15 questions
Python
Quiz
•
KG - University
13 questions
Digital Signature
Quiz
•
KG - University
10 questions
Test 1: The Industrial Revolution
Quiz
•
10th Grade
10 questions
Word processors in the classroom
Quiz
•
KG - University
10 questions
Communism & Capitalism & Socialism
Quiz
•
KG - University
10 questions
YueYing 4/4 Pro
Quiz
•
KG - University
11 questions
Electoral College
Quiz
•
KG - University
15 questions
Unit 5 Lessons 1 - 3
Quiz
•
7th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for others
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade