aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Compiler Design - 1
  • A language, with string manipulation facilities, uses the...
Multiple choice

A language, with string manipulation facilities, uses the following operations: head (s): First character of a string tail (s): All, but the first character of a string concat (s1, s2) : s1 s2 For the string acbc, what will be the output of concat (head (s), head (tail (tail(s))))?

  1. mo

  2. no

  3. mn

  4. mnoo

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • Consider the following code snippet String s1="Hello"; String s2=s1; s1.concat("World"); System.out.println...
  • What is the output of following. public static void main(String[] args) { String s1="prasad"; String s2="Ra...
  • Which of the following keyword is useful for string manipulation?
  • Which of the following string functions is used to copy first n characters of one string to another string?
  • What is the output (Assuming written inside main) String s1 = new String("amit"); String s2 = s1.replace('m...
  • What is the output (Assuming written inside main) String s1 = new String("amit"); String s2 = s1.replace('m...
  • What is the output (Assuming written inside main) String s1 = new String("amit"); String s2 = s1.replace('m...
  • Which of the following string manipulation methods returns index position of first occurrence of characters...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy