Which HTTP method is typically used to create a new resource?
Anonymous Quiz
6%
GET
88%
POST
6%
PUT
0%
DELETE
What is the recommended format for resource names in RESTful APIs?
Anonymous Quiz
8%
PascalCase (e.g., /UserAccounts)
11%
camelCase (e.g., /userAccounts)
64%
snake_case (e.g., /user_accounts)
17%
kebab-case and plural (e.g., /user-accounts)
Which of the following URLs is the most RESTful for fetching a specific order with ID 42?
Anonymous Quiz
3%
/getOrder?id=42
67%
/orders/42
5%
/order?id=42
26%
/api/v1/orders?id=42
What is a common use of the HTTP PATCH method in REST APIs?
Anonymous Quiz
10%
Completely replace a resource
0%
Delete a resource
88%
Partially update a resource
2%
Create a new resource
What does require 'json' do?
Anonymous Quiz
4%
Loads a JSON file
86%
Includes the library for working with JSON
4%
Creates a JSON object
5%
Parses a JSON string
👍2
Which of the following is the correct syntax for a ternary operator in Ruby?
Anonymous Quiz
97%
condition ? value1 : value2
3%
if condition then value1 else value2
0%
if condition { value1 else value2 }
0%
condition ? value1 : value2 else value3
Forwarded from Ruby Interview | Ruby on Rails
Which of the following code snippets correctly checks if a number is even in Ruby?
Anonymous Quiz
27%
if number % 2 == 0
2%
if number == even?
70%
if number.even?
1%
if number.even
👍5
Forwarded from Ruby Interview | Ruby on Rails
Which values are considered falsy in Ruby?
Anonymous Quiz
7%
0
3%
" (empty string)
3%
[] (empty array)
88%
nil and false
🔥 Battle City 3 — a game that’s growing more popular every day
🎮 Online seasons, tank selection, and awesome rewards: grenades, enemy freeze, extra lives, and more
🌐 New online levels are added regularly — there's always something fresh to play!
📴 Prefer offline? Enjoy 12 levels with selectable difficulty
📲 Download now and jump into the battle!
👇👇👇
https://battlecity.udfsoft.com?from=tg_rubyI
https://battlecity.udfsoft.com?from=tg_rubyI
🎮 Online seasons, tank selection, and awesome rewards: grenades, enemy freeze, extra lives, and more
🌐 New online levels are added regularly — there's always something fresh to play!
📴 Prefer offline? Enjoy 12 levels with selectable difficulty
📲 Download now and jump into the battle!
👇👇👇
https://battlecity.udfsoft.com?from=tg_rubyI
https://battlecity.udfsoft.com?from=tg_rubyI
1💩6🔥2
What will this code output?
puts "apple" < "banana"
puts "apple" < "banana"
Anonymous Quiz
59%
true
17%
false
4%
nil
19%
Error
Which HTTP method is used to partially update a resource?
Anonymous Quiz
14%
PUT
78%
PATCH
8%
UPDATE
0%
POST
Which status code means unauthorized access?
Anonymous Quiz
82%
401 Unauthorized
17%
403 Forbidden
1%
404 Not Found
0%
400 Bad Request
What does the HTTP status code 304 Not Modified mean?
Anonymous Quiz
5%
The resource was not found
85%
The resource has not changed since the last request
6%
The request was invalid
3%
The server is overloaded