What will be printed?
A) 10
B) 1234
C) [1, 2, 3, 4]
D) Error
👇 Drop your answers in the comments! 👇 Think you can ace all the questions? 👀💬
#TechQuiz #AI #Developer #RubyRails
What will be printed?
A) 10
B) 1234
C) [1, 2, 3, 4]
D) Error
👇 Drop your answers in the comments! 👇 Think you can ace all the questions? 👀💬
#TechQuiz #AI #Developer #RubyRails
What does this print?
A) Result: 5
B) Result: 10
C) Result: 25
D) Error
👇 Drop your answers in the comments! 👇 Think you can ace all the questions? 👀💬
#TechQuiz #AI #Developer #RubyRails
What does this print?
A) Result: 5
B) Result: 10
C) Result: 25
D) Error
👇 Drop your answers in the comments! 👇 Think you can ace all the questions? 👀💬
#TechQuiz #AI #Developer #RubyRails
What happens here?
A) ["Hello, Alice!", "Hello, Bob!", "Hello, Charlie!"]
B) Hello, Alice! | Hello, Bob! | Hello, Charlie!
C) Hello Alice Bob Charlie
D) Error
#TechQuiz #AI #Developer #RubyRails
What happens here?
A) ["Hello, Alice!", "Hello, Bob!", "Hello, Charlie!"]
B) Hello, Alice! | Hello, Bob! | Hello, Charlie!
C) Hello Alice Bob Charlie
D) Error
#TechQuiz #AI #Developer #RubyRails
What is the output?
A) Ruby
B) ybuR
C) byrU
D) Error
👇 Drop your answers in the comments! 👇 Think you can ace all the questions? 👀💬
#TechQuiz #AI #Developer #RubyRails
What is the output?
A) Ruby
B) ybuR
C) byrU
D) Error
👇 Drop your answers in the comments! 👇 Think you can ace all the questions? 👀💬
#TechQuiz #AI #Developer #RubyRails
What will be the output of this controller action?
A) 2
B) 3
C) 5
D) nil
👇 Drop your answers in the comments! 👇 Think you can ace all the questions? 👀💬
#TechQuiz #AI #Developer #RubyRails
What will be the output of this controller action?
A) 2
B) 3
C) 5
D) nil
👇 Drop your answers in the comments! 👇 Think you can ace all the questions? 👀💬
#TechQuiz #AI #Developer #RubyRails
What is the issue with this model callback?
A) No issue
B) It updates stock twice
C) Causes infinite loop
D) Modifies the attribute before save — might override user input
#TechQuiz #AI #Developer #RubyRails
What is the issue with this model callback?
A) No issue
B) It updates stock twice
C) Causes infinite loop
D) Modifies the attribute before save — might override user input
#TechQuiz #AI #Developer #RubyRails
What is true about this validation?
A) Checks for case-sensitive uniqueness
B) Automatically indexes the column
C) Ensures format is valid
D) Always allows blank emails
#TechQuiz #AI #Developer #RubyRails
What is true about this validation?
A) Checks for case-sensitive uniqueness
B) Automatically indexes the column
C) Ensures format is valid
D) Always allows blank emails
#TechQuiz #AI #Developer #RubyRails
What happens when you call user.destroy?
A) Only the user is deleted
B) User and posts are soft-deleted
C) User and their associated posts are permanently deleted
D) It raises an error if posts exist
#TechQuiz #AI #Developer #RubyRails
What happens when you call user.destroy?
A) Only the user is deleted
B) User and posts are soft-deleted
C) User and their associated posts are permanently deleted
D) It raises an error if posts exist
#TechQuiz #AI #Developer #RubyRails
What will this migration do?
A) Adds a string column
B) Adds a JSONB column with default empty array
C) Adds a JSONB column with default empty object
D) Raises a migration error
#TechQuiz #AI #Developer #RubyRails
What will this migration do?
A) Adds a string column
B) Adds a JSONB column with default empty array
C) Adds a JSONB column with default empty object
D) Raises a migration error
#TechQuiz #AI #Developer #RubyRails