aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • programming languages Online Quiz - 148
  • What is the output? myname = "Steve was here" print mynam...
Multiple choice technology programming languages

What is the output? myname = "Steve was here" print myname[4, 8], "\n"

  1. e was he

  2. ve was h

  3. e was

  4. ve w

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • name = "Steve Lit" name_copy = name name << "t" print "name = ", name print " name_copy = ", name_copy, "\n...
  • names =['Amir', 'Barry', 'Chales', 'Dao'] print names [-1][-1] The output is:
  • What gets printed? my @a = ([1, 2, 3, 4], [5, 6, 7, 8]); print join(' ', @{$a[1]}[1..3]);
  • What gets printed? my @a = ([1, 2, 3, 4], [5, 6, 7, 8]); print join(' ', @{$a[1]}[1..3]);
  • name = ["James", "Joe", "Jake", "Jamie"] which statement will extract Jake from the array?
  • What is the Output ?
  • What will be printed by the code below? my @a = (0, 1, 2); my ($b) = @a; print $b;
  • What will be the output ? my $str = 'a\\b\n'; print $str;
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy