Quiz
chapter 5
Este quiz tem tempo limite, por isso abre no player de sempre.
Perguntas do quiz (10)
1what functions does methods serves?
- Abreak problems into smaller parts
- Bmake problems harder
- Cmake the program eaiser to read
2Choose all of the method calls that are correct
- Adisplay messege();
- Bdisplaymessege();
- Canswersolver(10);
- Danswer solver(10);
3which line shows how to write the method header that goes with this call answerSolver(10); with the variable name being starternumber
- Apublic static answerSolver(starternumber)
- Bpublic static int answerSolver(starternumber)
- Cpublic static int answerSolver(10)
- Dpublic static answerSolver(10)
4which will return the varible answer
- Areturn answer
- Breturn answer;
5which of the answer below is a method commet starter?
- A//
- B*/
- C/**
- D/*
6using more than one method in a program can make your problem [blank_start]easier[blank_end] to figure out. Method headers have [blank_start]four[blank_end] parts. the first part is the [blank_start]availability[blank_end] for other classes. The second part is the [blank_start]method type[blank_end]. the third part is the [blank_start]name[blank_end]. the last part is the [blank_start]parenthesis[blank_end]. To go to a [blank_start]non-main[blank_end] method in the program type the method name, then the parenthesis, and last the semicolon. if you want to have a return value in the method call type the [blank_start]value[blank_end] in the parenthesis. then in the method header type [blank_start]static[blank_end] for the method type. then type the [blank_start]return type[blank_end], and last type in the parenthesis the [blank_start]varible name[blank_end].
- Aeasier
- Bharder
- Cfour
- Dthree
- Etwo
- Favailability
- Gsolve
- Hproblem
- Ireturn value
- Jmethod type
- Kbreaker
- Lname
- Mparenthesis
- Nnon-main
- Omain
- Pvalue
- Qholder
- Rstatic
- Svoid
- Treturn type
- Uint
- Vvarible name
- Wvalue name
7true or fase void aurgements ternamets right away
- AVerdadeiro
- BFalso
8how do you make a method that returns a bolean expression
- Apublic static boolean isValid(datatype number)
- Bpublic static Boolean isValid(datatype number)
- Cpublic static boolean isvalid(datatype number)
- Dpublic static Boolean isvalid(datatype number
9how do you write a string returning method with the name is findLastName, and the string name is first, and last.
- Apublic static String findLastName(String first, String last)
- Bpublic static string findLastName(String first, String last)
- Cpublic static String findLastName(string first, string last)
- Dpublic static string findLastName(string first, string last)
10you can change string value.
- AVerdadeiro
- BFalso
Informações
- Descrição
- computer science Quiz sobre chapter 5, criado por jason wheeler em 06-12-2016.
- Autor
- jason wheeler
- Idioma
- English
- Visualizações
- 0
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz