O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

Week 5 Practice Quiz

Adam Peterson 15 perguntas

Fazer o quiz

Perguntas do quiz (15)

  1. 1Two ways of concatenating two Strings are:
    1. AUse the concat() method or use the + between the two Strings
    2. BUse the concatenate() method or use the + between the two Strings
    3. CUse the contenate() method or the concat() method
    4. DUse the concat() method or the trim() method
  2. 2What will be the value of loc after the following code is executed?

    int loc;
    String str = "The cow jumped over the moon.";
    loc = str.indexOf("ov");
    1. A15
    2. B16
    3. C17
    4. D18
  3. 3When you are writing a program with String objects that may have unwanted spaces at the beginning or end of the strings, use this method to delete them.
    1. Areplace
    2. Btrim
    3. CvalueOf
    4. Dsubstring
  4. 4When using the StringBuilder class's insert method, you can insert:
    1. Aany primitive type
    2. Ba String object
    3. Ca char array
    4. DAll of these
  5. 5The term ________ commonly is used to refer to a string that is part of another string.
    1. Astrand
    2. Bsubstring
    3. Ccharacter fragment
    4. Dnested string
  6. 6This character is one that appears at the end, or right side, of a string, after the non-space characters:
    1. ALeading whitespace
    2. BCarriage return
    3. CTrailing whitespace
    4. DLine feed
  7. 7What is the term used for the character that separates tokens?
    1. Atokenizer
    2. Bdelimiter
    3. Cwhitespace
    4. Dseparator
  8. 8What will be the tokens for the following code?

    String str = "123-456-7890";
    String[] tokens = str.split("-");
    1. A123, 456, and 7890
    2. B-
    3. C123, 456, 7890, and -
    4. DNone of these
  9. 9A protected member of a class may be directly accessed by:
    1. Amethods of the same class
    2. Bmethods of a subclass
    3. Cmethods in the same package
    4. DAll of these
  10. 10A subclass can directly access:
    1. Aall members of the superclass
    2. Bonly public and private members of the superclass
    3. Conly protected and private members of the superclass
    4. Donly public and protected members of the superclass

Informações

Descrição
CPSI 1413 Quiz sobre Week 5 Practice Quiz, criado por Adam Peterson em 11-03-2019.
Idioma
English
Visualizações
2
Etiquetas
cpsi 1413
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?