String Handling In QBasic


Available Answers

  1. 1.

    Fill in the blanks.

    1. A ________________ is a group of characters.
    2. ________________ strings are defined, by quotation marks on each end.
    3. String ________________ means adding of two or more strings.
    4. LEN, LEFT$, RIGHT$ etc are ________________ functions.
    5. The ________________ function returns a string consisting of a number of space characters.
  2. 2.

    Write True or False.

    1. The LCASE$ function changes the uppercase letters to lowercase.
    2. The CHR$ function returns strips of alphabet.
    3. LTRIM$ function is used for adding strings on left.
    4. Strings variables is declared by putting $ sign at the end of variable.
    5. DIM NAME AS STRING is another way of declaring string variable.
  3. 3.

    Multiple Choice Questions (MCQs).

    1. The function ________________ changes the uppercase letters of a string to lowercase.
      1. LCASE()
      2. LOWER$()
      3. LOWERCASE$()
    2. The ________________ function returns ASCII code number of a certain string or text character.
      1. ASCII()
      2. ASC()
      3. ASCII Code()
    3. The ________________ function returns the character associated with a certain character code of string.
      1. CHR$()
      2. Charac$()
      3. Character$()
    4. The ________________ function returns the number of bytes used by a string variable.
      1. LEN()
      2. LENGTH()
      3. NUM()
    5. The ________________ function returns the numerical value of a string type numerical value.
      1. NUM()
      2. VAL()
      3. NUMERAL()
  4. 4.

    What is a string? Explain with example.

  5. 5.

    What do you mean by string concatenation? Give example.

  6. 6.

    How can you declare a fixed length string variable? Give example.

14 more answer(s) available.

Please login to post your comments.