aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Unix/Linux Shell Scripting and System Administration
  • #! /bin/ksh for i in 1 2 3 4 ......... 50 # loop from 1 t...
Multiple choice technology operating systems

#! /bin/ksh
for i in 1 2 3 4 ......... 50 # loop from 1 to 50
do
let i=i+1
done
echo $i

What will be the output of the above script?

  1. 2450

  2. 1275

  3. 1225

  4. 2550

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • What will be the output of the above code? i=5 while test $i != 0 do echo "$i" i= expr $i - 1 done
  • What wil be the output of this command?$ for i in 1 2 3;do echo "$i\c";done; Tell without trying on a server.
  • What is the output of the following code snippet? @echo off set /a number = 5 :loop set /a number = %number...
  • Consider the script "beach.sh" for i in $1; do if (( ${#i} > 4 )); then print -n "#$i " fi done beach.sh "O...
  • 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 the following program ? #!/user/bin/sh x=22 y=28 z=5 ((z =x+y + z)) echo $z
  • What will be the output of the following: void main() { int i; for(i=1;i<=4;i++) { printf("%d",i); continue...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy