Tag: programming languages

Questions Related to programming languages

  1. Changes all lower case letters in the string stored in the variable $_ to upper case

  2. Changes the first letter in the string stored in the variable $_ to upper case

  3. Changes all letters in the string stored in the most recently used scalar variable to upper case

  4. adds \u in front of every letter or digit in the string in $_


Correct Option: A
  1. once

  2. twice

  3. the program will go on into infinite loop

  4. None of the above


Correct Option: A
  1. In code 1, the operation occurs in one command; code 2 iterates each element in the array for matches.

  2. In code 1, the elements of @lines are the indexes in @allLines, in which matches were found.

  3. In code 1, the elements of "@lines" begin with the index in "@allLines", in which the match was found.

  4. In code 1, "@lines" may not necessarily be in the same order; the original lines appear in "@allLines".


Correct Option: C
  1. A File Handle

  2. A List

  3. A Code variable

  4. A Tyleglob


Correct Option: A
  1. AddTick()

  2. GetMonth()

  3. GetHashCode()

  4. AddMilliSeconds()

  5. All the Above


Correct Option: B