Algorithms / Methods
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Easy
Shang Lebron
Used 1+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
An algorithm
is fake code.
answers the question "How do I do it?"
is usually well written on your first attempt.
is a set of step by step instructions used to solve a problem.
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Pseudocode
should look like a numbered outline.
is used to help you understand the problem.
is a well structured programming language.
usually looks like a generalized version programming languages.
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A method
can be declared as void and still return an int
will return an int if its parameters are ints
must have a return type
must have at least one parameter
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A method variable
can be seen by all methods
must be declared outside of all methods
only exists in the method it was created
is a variable with no parameters
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
GIven
public static int myMethod(int num, String word)
which of the following can not be in the same class
public static int myMethod(String word, int num)
public static String myMethod(int num, String word)
public static int myMethod(int num)
public static int anotherMethod(int num, String word)
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Method overloading is
when two or more methods have the same name
when two or more methods have the same parameters
when two or more methods have the same signature
a method has more than 10 lines of code in it
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following are false?
The methods return type, is the data type of the data the method returns when it is complete.
If you do not want to return any data then the return type must be declared void.
The last line of code in a method must be its final return statement.
A method can return as many pieces of data as it needs to.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
C# lesson10
Quiz
•
1st - 10th Grade
8 questions
Digital Presentation (session 10 - 12)
Quiz
•
9th Grade
10 questions
SNAP-Quiz 1
Quiz
•
9th Grade
8 questions
Windows Updates
Quiz
•
9th Grade - Professio...
10 questions
Grade 6 Forms in HTML
Quiz
•
6th - 9th Grade
10 questions
Ulhar Genap X
Quiz
•
9th - 12th Grade
10 questions
Latihan Class Library
Quiz
•
9th - 12th Grade
7 questions
Excel Formulas
Quiz
•
9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
