Railroad diagrams, also known as syntax diagrams, are a visual way to represent the grammar of a programming language. To use it, you...
Search Results
Searching for: Java
Individual Exercises
Railroad diagrams, also known as syntax diagrams, are a visual way to represent the grammar of a programming language. To use it, you...
Railroad diagrams, also known as syntax diagrams, are a visual way to represent the grammar of a programming language. To use it, you...
Railroad diagrams, also known as syntax diagrams, are a visual way to represent the grammar of a programming language. To use it, you...
How many times does the loop execute? That is, how many times is hello()
called?
for(;;) hello(); }
How many times does the loop execute? That is, how many times is hello()
called?
for (int i = 0; i < 5; i++) hello(); }
How many times does the loop execute? That is, how many times is hello()
called?
for (int i = 0; i <= 5; i++) hello(); }
How many times does the code below calls greetings()
?
for (int i = 0; i < 10; i++) hello(); greetings(); }
Given an array of int
s, return the POSITION (i.e., the index) of smallest value in the array. Assume the array has only posivitive...
Given an array of int
s, return the first value in the array. You may assume the array has at least one value.
Given an array of int
s, return the last value in the array. You may assume the array has at least one value.
Given an array of int
s, return true
if all values in the array are even values. This routine should return false
if at least one value is...
Complete the following linear search method. Find the string search
in the array words
. If the string is found, return the string found....
Complete the following binary search method on characters. Find the character search
in the array letters
. Return the index of the...
What is the root node of the tree shown here?
How many internal nodes there are in the tree shown here?
What is the depth of the tree shown here?
Select all of the nodes that are children of node 10 in the binary tree shown here.
What type of binary tree is this?
What is the depth of the tree shown here?
How many nodes are at level 3 in this tree?
Parenthesized notation
A binary tree can be represented in parenthesized notation. The image below shows an example of how to represent...
Parenthesized notation
A binary tree can be represented in parenthesized notation. The image below shows an example of how to represent...
Parenthesized notation
A binary tree can be represented in parenthesized notation. The image below shows an example of how to represent...
Parenthesized notation
A binary tree can be represented in parenthesized notation. The image below shows an example of how to represent...