aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Unix and Shell Programming
  • What is the output of the syntax - echo $(PS1 + PS2)?
Multiple choice

What is the output of the syntax - echo $(PS1 + PS2)?

  1. PS1

  2. PS2

  3. Both (1) and (2)

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The $ echo (PS1 + PS2) displays PS2.

Keep practicing — related questions

  • output=1;echo "2+3"|bc|read output | echo $output What is the output ?
  • What is the output? #!/bin/sh msg1="one" Msg2="$msg1 two" Msg3="$msg2 three" echo $msg3
  • What is the output? #!/bin/sh msg1="one" Msg2="$msg1 two" Msg3="$msg2 three" echo $msg3
  • Output of "echo $$"
  • What is the output of the following echo My && echo little || echo world
  • What will be the output of "echo this || echo that && echo other"?
  • What will be the output of "echo this || echo that && echo other"?
  • What is the output of the following code snippet @echo off set var = 1 %var%+=1 echo var
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy