Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
flowchart
Polymorphism
Home
Questions
Questions
Study lists
hamza shaheen Questions
5601 Questions
Write a Ruby program to check whether a given array of integers contains two 6's next to each other,
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
132
Write a Ruby program to check whether there is a 2 in the array with a 3 somewhere later in a given array of integers
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
148
Write a Ruby program to check whether the value 2 appears in a given array of integers exactly 2 times, and no 2's are next to each other
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
168
Write a Ruby program to find most occurred item in a given array
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
135
Write a Ruby program to check whether all items are identical in a given array
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
239
Write a Ruby program to check whether a given array of integers contains 3 twice, or 5 twice. The array will be length 0, 1, or 2
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
117
Write a Ruby program to set 5 to 1 whether there is a 3 immediately followed by a 4 in a given array of integers (length 3)
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
159
Write a Ruby program to compute the sum of two arrays (length 3) and return the array which has the largest sum
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
117
Write a Ruby program to create a new array of length 2 containing the middle two elements
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
120
Write a Ruby program to create a new array of length 4 containing all their elements from two array of integers, length 2
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
99
Write a Ruby program to swap the first and last elements of a given array of integers, length will be at least 1
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
120
Write a Ruby program to create a new array of length 3 containing the elements from the middle of a given array of integers of odd length (at least 3)
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
126
Write a Ruby program to find the largest value from a given array of integers of odd length. The array length will be a least 1
Programming
Ruby on rails programming
2022-05-18
Answers
30
Question
40
Followers
30
0
1
139
Total:
5601
Previous
249
250
251
252
253
Next
Go