Algorithms / Methods

Quiz
•
Computers
•
9th Grade
•
Easy
Shang Lebron
Used 1+ times
FREE Resource
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.
8.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following are true?
A method can be declared inside of another method
A class variable can only be changed by the main method
If a method changes a class variable the old value will still be there after the method is returned
A class variable can only be defined outside of any method when it is declared
Similar Resources on Wayground
8 questions
Unit 4 Day 8 Opener - C++ Function Concepts

Quiz
•
9th - 12th Grade
10 questions
Quiz 4 Edhesive Review

Quiz
•
9th - 12th Grade
11 questions
APCSA Exam Review

Quiz
•
9th - 12th Grade
10 questions
Programming

Quiz
•
1st - 10th Grade
10 questions
AP Computer Science-Quiz 2(G10)

Quiz
•
9th - 12th Grade
12 questions
Python Unit 2 Quiz 2

Quiz
•
9th - 12th Grade
10 questions
Python в Minecraft

Quiz
•
9th Grade
10 questions
Unity Semester 3 - Quiz 3

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade