Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Simulados

Definir como pagina inicial

Adicionar esta pagina aos favoritos

Assinar endereco de e-mail
WithoutBook LIVE Mock Interviews
The Best LIVE Mock Interview - You should go through before interview

Freshers / Beginner level questions & answers

Ques 1. What is Ruby On Rails?

  1. Ruby on Rails is an open source full-stack web application framework written in the Ruby Programming Language. Rails is capable of gathering information using pages and applications from the web server and can interact with a database and can retrieve information from the database.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 2. Why Ruby on Rails?

1.CRUD (convention over configuration) 
2. DRY Principal (Do not repeat Your self )
3. Gems and Plugins
4. Pure OOP Concept
5. Scaffolding
6.. Rest Support
7.Action Mailer
8. Rake support
9. open source
10.Rpsec Suppot for testing

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 3. Explain how (almost) everything is an object in Ruby.

  • This is a simple question based on complex concept. Heres your chance to show off your theoretical knowledge and demonstrate that you can have an in depth conversation on class hierarchies, inheritance, methods, encapsulation, polymorphism, and more.

  • Explaining this could take an hour or a few minutes theres no single correct answer here, save from being able to demonstrate your familiarity with OOP concepts.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 4. Whats your favorite testing tool?

The specific answer here is probably not important in and of itself Whats important is that you can demonstrate familiarity with at least several testing tools, and be able to discuss their individual advantages and weaknesses. Never ventured outside of Rails default testing tools? Take some time to familiarize yourself with tools such as Rspec, FactoryGirl, Capybara, and Cucumber.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 5. What are Gems and which are some of your favorites?

Gems are packaged bits of Ruby code that you can install to extend or add functionality to your app.
Be sure to be able to discuss a list of your favorite gems, why you like them, and any customizations you like to add. This is also a good opportunity to highlight any gems you may have published.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 6. What is a class?

You should easily be able to explain not only what a class is, but how and when you would create a new one as well as what functionality it would provide in the larger context of your program.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 7. What is the difference between a class and a module?

The straightforward answer: A module cannot be subclassed or instantiated, and modules can implement mixins.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 8. What is an object?

Textbook answer here is that an object is an instance of a class and has state, behavior, and identity. In a plain text example, you can say that a truck and a car are both objects of the class Vehicle, or that apple and pear are both objects of the class Fruit.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 9. How would you declare and use a constructor in Ruby?

Constructors are declared via the initialize method and get called when you call on a new object to be created.

Using the code snippet below, calling Order.new acts as a constructor for an object of the class Order.

class Order
  def initialize(customer, meal, beverage)
    @customer = customer
    @meal = meal
    @beverage = beverage
  end
end

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 10. How does a symbol differ from a string?

Symbols are immutable and reusable, retaining the same object_id.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 11. How and when would you declare a Global Variable?

Global variables are declared with the $ symbol and can be declared and used anywhere within your program. You should use them sparingly to never.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 12. How would you create getter and setter methods in Ruby?

Setter and getter methods in Ruby are generated with the attr_accessor method. attr_accessor is used to generate instance variables for data thats not stored in your database column.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 13. Describe the difference between class and instance variables?

  • Class variables are created with the prefix @@ and are shared by all objects in a class.

  • Instance variables are created with the prefix @ and belong to a single object within a class.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 14. Example some of the looping structures available in Ruby?

For loop, While loop, Until Loop.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 15. What is a lambda?

Lambdas are very similar to procs in terms of functionality. However, they have a few key differences. Lambdas check the number of arguments passed and will return an error if you try to pass the wrong number (while procs set extra variables to nil). The other difference is that lambdas can handle a return function, whereas procs will return an error.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 16. What are Class Variables? How to define them?

Class variables are created using the @@ prefix to denote the variable as class level. 

It works just like any other variable, however in the case of inheritance it works more like a static variable that is accessed across all variable instances.

Another example can be found here:

class DemoClass 
 @@my_var = nil
  def initialize
    @@my_var = "hello world"
  end
  def my_var
    puts @@my_var
  end
end
class Demo2Class < DemoClass
  def initialize
    @@my_var = "goodbye world"
  end
end
demo1 = DemoClass.new
demo1.my_var
demo2 = Demo2Class.new
demo2.my_var
demo1.my_var
The output would be as shown below:
hello world
goodbye world
goodbye world

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 17. How to define Instance variables?

Instance variables are defined using single @ symbol.

@foo = "Hello"

Within a class they can be declared as below:

class Animal
 attr_accessor :name, :age
end

Next you can query an object instance to find which instance variables it has.

anim = Animal.new
anim.instance_variables 
=> [ ]
anim.name="John"
anim.age = 3
 => [:@age, :@name] 

In the above case we did not put the @ symbol before the instance variables but it is implied. 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 18. What is the difference between &&, AND and & operators?

The && and and are both logical and statements. They && operator has higher precedence though. Heres an example of illustrate this in more detail:

foo = 3
bar = nil
a = foo and bar
# => nil
a
# => 3
a = foo && bar
# => nil
a
# => nil
Notice how the statement a = foo and bar actually behaves like (a = foo) and bar

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 19. Does Ruby support Multiple Inheritence?

Ruby does not support multiple inheritance.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 20. How can you define a Constant in Ruby on Rails?

Create a new file as shown below under: config/initializers/my_constants.rb

COLORS = ['white', 'red', 'green']

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 21. What is the default access modifier for a method?

By default all methods are public, except the initialize(constructor) method.

You can make methods private using this declaration within your class:

class MyClass
    def method_public_here
    end
    PRIVATE# all methods that follow will be made private: not accessible for outside objects
    def method_private_here
    end
  end

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 22. Define the Rails MVC implementation with an example.

The MVC framework is an age-old architecture pattern that works very well for most applications. Rails has adopted the MVC pattern in its inherent design.

Stated Simply:

a) Model is where the data is the database

b) Controller is where the logic is for the application

c) View is where the data is used to display to the user

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Intermediate / 1 to 5 years experienced level questions & answers

Ques 23. Explain the difference between a has_one and belongs_to association in Ruby on Rails.

has_one: Indicates a direct 1:1 relationship between objects where each instance of a model contains one instance of another model.
A product has_one provider, a customer has_one order.


Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 24. What is a Proc?

Procs, short for procedures, act similar to blocks, but can be saved as variables and reused. Think of them as blocks you can call over and over again on multiple arrays.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 25. What are the three levels of method access control for classes and what do they signify? What do they imply about the method?

  • Public, protected, and private.

  • Public methods can be called by all objects and subclasses of the class in which they are defined in.

  • Protected methods are only accessible to objects within the same class.

  • Private methods are only accessible within the same instance.

  • Be able to explain why this does (or doesnt matter), and when you would want to set a method as private.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 26. What is the convention using ! at the end of method name?

The ! indicates that the method is about to change the object itself.

Heres an example:

foo = "A TEST STRING"  # a string called foo

foo.downcase!     # modifies foo permanently
a test string

puts foo          # prints modified foo
a test string

Similarly if you did not want the object to be changed you could have something simple like:

foo2 = "A 2nd Test String"  # a string called foo 

foo2.downcase     # modifies foo temporarily
a 2nd test string 

puts foo2 nbsp;    # prints original foo 
A 2nd Test String

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Experienced / Expert level questions & answers

Ques 27. Explain a polymorphic association in Ruby on Rails.

Polymorphic associations allow a model to belong to more than one other model through a single association.


class Picture < ActiveRecord::Base
  belongs_to : imageable, polymorphic: true
end

class Employee < ActiveRecord::Base
  has_many : pictures, as: : imageable
end

class Product < ActiveRecord::Base
  has_many : pictures, as: : imageable
end
  • Here, the class Picture belongs_to both Employee and Product, but does so through a single association rather than through multiple.
  • Be sure to know an appropriate situation to create a polymorphic association, such as creating a comment model associated with multiple other models (articles, photos, etc.). The advantage of using polymorphism here is that it allows you to create a single comment model, rather than separate models for each one (PhotoComment model, ArticleComment model, etc.)

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 28. Explain what functional testing is in Ruby on Rails.

Functional testing in Rails allows you to test the response of  various actions contained in a controller. Using the Rails default test library, mini test, functional tests use a collection of assert statements that will tell your testing library to expect a certain response based on a control request passed in (either a get, post, patch, put, head, delete request).

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 29. What is the purpose of YIELD in Ruby on Rails?

The interpreter essentially invokes a separate piece of code and places it in the location. You might say it is similar to a method calling another method. Lets understand a little bit of background about where YIELD might be useful first. 

The Rails framework encourages you to write code that is DRY (Dont Repeat Yourself).

Developers often write common code in a central file and then they write the custom code in the specific files. Lets say you are building a web application and you want all pages to have a common header, a common footer, the same Welcome user-name! message.

You can put all this common code in your application.html.erb file.

<html> .... common page title
.. standard header... 
<body> 
..common page title,
 <%= YIELD %>
..footer code can go here... </body> 
</html>

The rest of the custom code can go in your specific file. Say the page you are creating is the list of articles. Then in your implementation file you would just write the code for pulling in the articles and the final page displayed to the user would be your custom code which will be placed instead of the <%= YIELD %>code in the application.html.erb file.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 30. How can you dynamically define a method body in Ruby on Rails?

An instance method can be defined dynamically with

Module#define_method(name, body),

where name is the methods name given as a Symbol, and body is its body given as a Proc, Method, UnboundMethod, or block literal. This allows methods to be defined at runtime, in contrast to def which requires the method name and body to appear literally in the source code.

class Conjure
  def self.conjure(name, lamb)
    define_method(name, lamb)
  end
end

# Define a new instance method with a lambda as its body

Conjure.conjure(:glark, ->{ (3..5).to_a * 2 })
Conjure.new.glark #=> [3, 4, 5, 3, 4, 5]  

Module#define_method is a private method so must be called from within the class the method is being defined on. Alternatively, it can be invoked inside class_eval like so:

Array.class_eval do
  define_method(:second, ->{ self.[](1) })
end
[3, 4, 5].second #=> 4

Kernel#define_singleton_method is called with the same arguments as Module#define_method to define a singleton method on the receiver.

File.define_singleton_method(:match) do |file, pattern|
  File.read(file).match(pattern)
end
File.match('/etc/passwd',/root/) #=> #<MatchData "root">

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 31. What is Range?

Range is a great way to declare continuous variables. You should use it to declare arrays and other types of collections. 

range1 = (1..4).to_a
 => [1, 2, 3, 4] 
puts range1
1
2
3
4

You can also create strings in this format and it fills in the interim values automatically.

range2 = ('bar'..'bat').to_a
puts range2
bar
bas
bat
Since the end result of using range is an array you can also iterate over it just like any other array.
range2.each do |str|
   puts "In Loop #{str}"
end

This produces the result as shown below:

In Loop bar
In Loop bas
In Loop bat

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 32. How can you implement method overloading in Ruby on Rails?

This ones a tricky question. If you have a background in Java then you must know that method overloading is simply multiple methods with same name but different signatures/parameters.

In the case of Ruby method overloading is not supported. 

However, it does support the overall goal of passing variable number of parameters to the same method. You would implement it like this:

class MyClass  
  def initialize(*args)  
    if args.size < 2  || args.size > 3  
      puts 'This method takes either 2 or 3 arguments'  
    else  
      if args.size == 2  
        puts 'Found two arguments'  
      else  
        puts 'Found three arguments'  
      end  
    end  
  end  
end  

The output can be seen here:

MyClass.new([10, 23], 4, 10)  
Found three arguments
MyClass.new([10, 23], [14, 13]) 
Found two arguments

SO: You can get the same effect as method overloading but you just have to manage the number of variables inside your method itself.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 33. How can you achieve the same as Multiple Inheritance using Ruby? What is Mixin?

Ruby offers a very neat alternative concept called mixin. Modules can be imported inside other class using mixin. They are then mixed-in with the class in which they are imported.

Heres an example:

module Debug
  def whoAmI?
    "I am #{self.to_s}"
  end
end

class Photo
 include Debug
end

ph = Photo.new

"I am : #<Photo:0x007f8ea218b270>"

As you can see above the class Debug and its method whoamI? were mixed-in (added) with the class Photo.

Thats why you can now create an instance of the Photo class and call the whoAmI? method.

ph.whoAmI?
 => "I am : #<Phonograph:0x007f8ea218b270>" 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 34. How will you implement Single Pattern in Ruby on Rails?

Singleton means single instance. 

So, the goal of a singleton pattern is to write a class definition but only allow the creation of the single instance of that object. 

This can be achieved nicely with the singleton gem as shown below:

require 'singleton'
 class Logger
  include Singleton
  def initialize
    @log = File.open("logfile.txt", "a")
  end
  def log(msg)
    @log.puts(msg)
  end
end

Adding the singleton as a mixin to the 

Logger.instance.log('This is just a test message')

The code above will create a single instance of Logger and simply put the message in the logger file.

Singleton patterns are mostly used for DB instance, Logger instance, etc. - cases where there should be ONE and only ONE instance of the object that is used. 

Sometimes you might like to actually hold on to the logger object and use it everywhere you can do so by the following command:

logObj = Logger.instance

Notice you cannot use the Logger.new to create an object instance because this is a singleton object and therefore calling new would fail.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 35. How will you implement Observer Pattern in Ruby on Rails?

Lets review first what an observer pattern is all about.  

The observer pattern (sometimes known as publish/subscribe) is a software design pattern in which an object, called the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods. It is mainly used to implement distributed event handling systems.

You might have used them in other programming languages as listener objects. You use them whenever a button is clicked on the screen and a method gets called automatically. 

As in the case of the singleton pattern, the observer pattern is also implemented by mixing in a module. 

In the Ruby implementation, the notifying class mixes in the Observable module, which provides the methods for managing the associated observer objects.

And, the observers must implement the update method to receive notifications.

Heres an example. Say you want to send an SMS alert to users if a company stock drops then you can do something like this:

require "observer" 
require "observer" 
  class Ticker # Periodically fetch a stock price 
    include Observable 
 	attr_accessor :price 
    def initialize symbol, price 
      @symbol = symbol 
  	@price = price 
	end
    
	def run 
      lastPrice = nil 
      loop do 
        @price = @price+Random.rand(11) 
        print "Current price: #{price}n" 
        if @price != lastPrice 
          changed                 # notify observers 
          lastPrice = @price 
           notify_observers(Time.now, @price) 
         end
       end 
    end 
  end
 
  class Warner
     def initialize ticker  
     ticker.add_observer(self)   # all warners are observers     
  end   
end 
  
class SMSAlert < Warner     
   def update time, price       # callback for observer         
      print "--- #{time.to_s}: SMS Alert for price: #{price}n"     
   end   
end  

class EmailAlert < Warner     
   def update time, price       # callback for observer         
      print "+++ #{time.to_s}: Email Alert Price changed to #{price}n"    
   end
 end

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 36. What is the purpose of Environment.RB and Application.RB in Ruby on Rails?

There are two files where variables and configuration settings are stored. 

- config/environment.rb : Environment settings go here

- config/application.rb : Application level global settings go here

config.time_zone = 'Central Time (US & Canada)'
config.i18n.default_locale = :de
config.filter_parameters += [:password] # ensures that passwords are not logged

The same file is also used for configuring various environment settings such as:

config.action_mailer.smtp_settings # various email settings go here 

What is the purpose of config/environments/development.rb file?

You would specify various config settings the development environment in this file.

 config.action_controller.perform_caching = false # to enable caching

This is because you typically do not want to enable caching in the development environment. 

The same config setting in the production environment would be equal to true. 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 37. How can you fire a method when a module is inside a class?

Fire a method inside a class is very simple.

Say you have a module file trig.rb:

module Trig
  PI = 3.141592654
  def Trig.sin(x)
   # ..
  end
  def Trig.cos(x)
   # ..
  end
end

Now you simply import this module inside your class and invoke the method using the module.method_name syntax as shown below

require "trig"

class myclass
y = Trig.sin(Trig::PI/4)

This type of invocation ensures that the right module method gets called.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 38. How can you call the base class method from inside of its overridden method?

If you are inside the overridden method in the derived class then a simple call to super will call the right method in the base class

class Parent
   def try_this()
      puts "parent"
   end
end

class Child < Parent
   def try_this()
      super()
      puts "child"
   end
end

ch = Child.new
ch.try_this()

This generates the output

parent
child

Now if you just want to call the base class without calling the derived class then the best way to do that is to simply assign an alias to the parent method like this:

class Parent
  def knox
    puts 'parent'
  end
end
 
class Child < Parent
   alias_method :parent_knox, :knox
   def knox
     puts 'child'
   end
end
 
ch = Child.new
ch.parent_knox
ch.knox

This allows you to call the base class method with the alias parent_knox and the derived class method knox can be called directly.

parent
child

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 39. What is Scope in Ruby on Rails?

Scopes are nothing more than SQL scope fragments. By using these fragments one can cut down on having to write long queries each time you access content.

Say you typically access content as shown below:

@posts = Post.where("published_at IS NOT NULL AND posts.published_at <= "+ Time.now)

Ruby offers you a nice way to put the where condition inside a scope statement as shown below.

class Post < ActiveRecord::Base
  scope :published, lambda { 
    { :conditions =>
      ["posts.published_at IS NOT NULL AND posts.published_at <= ?", Time.now]
    }
  }  
  scope :recent, :order => "posts.published_at DESC"
end

Now you can simply access the published posts as: Post.published

@posts = Post.published

Also, you can access recent posts as 

@recent_posts = Post.recent

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 40. CAN YOU GIVE AN EXAMPLE OF A CLASS THAT SHOULD BE INSIDE THE LIB FOLDER?

Modules are often placed in the lib folder. 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 41. WHERE SHOULD YOU PUT CODE THAT IS SUPPOSED TO RUN WHEN YOUR APPLICATION LAUNCHES in Ruby on Rails?

In the rare event that your application needs to run some code before Rails itself is loaded, put it above the call to require rails/all in config/application.rb.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 42. What deployment tools do you use for Ruby on Rails?

Capistrano is a popular deployment tool.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 43. What deployment tools do you use for Ruby on Rails?

Capistrano is a popular deployment tool.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 44. How can you migrate your database schema one level down?

The rake tool does most of the migrations. 

It has this nifty syntax to go back one step:

rake db:rollback

If you want to rollback all the way to the beginning you would use:

rake db:reset

This would drop the database, recreate the Database and load the current schema into it

If you want to rollback multiple steps at the same time you would use:

rake db:rollback STEP=3

To rollback all the way and if you are not worried about losing the data then you can drop the database completely with purge like this:

rake db:purge

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 45. What is Sweeper in Ruby on Rails?

Sometimes you want to have control over how often and when the cache expires. 

Sometimes it is a good idea to have the system determine that on a logical basis. Say you have a list of product on your site and you want to reload the cache each time a new product is added/updated/deleted, then you can achieve this by using the sweeper. 

class ProductSweeper < ActionController::Caching::Sweeper
  OBSERVE PRODUCT# This sweeper is going to keep an eye on the Product model 
  # If our sweeper detects that a Product was created call this
  def after_create(product)
    expire_cache_for(product)
  end
  # If our sweeper detects that a Product was updated call this
  def after_update(product)
    expire_cache_for(product)
  end
  # If our sweeper detects that a Product was deleted call this
  def after_destroy(product)
    expire_cache_for(product)
  end
  private
  def expire_cache_for(product)
    # Expire the index page now that we added a new product
    expire_page(:controller => 'products', :action => 'index')
    # Expire a fragment
    expire_fragment('all_available_products')
  end
end

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 46. How can you implement Caching in Ruby on Rails?

Rails offers multiple ways to cache content.

Fragment caching is my favorite because it gives you the choice to fragment to pull a portion from the cache and the remaining from a real-time DB call. 

Say you wanted to show all the orders placed on your website in real time and didnt want to cache that part of the page, but did want to cache the part of the page which lists all products available, you could use this piece of code:

<% Order.find_recent.each do |o| %>
  <%= o.buyer.name %> bought <%= o.product.name %>
<% end %>
<% CACHE DO %>  All available products:
  <% Product.all.each do |p| %>
    <%= link_to p.name, product_url(p) %>
  <% end %>
<% end %>

Another technique that works well for static pages is page caching. This technique is often used for home pages and is super fast.

class ProductsController < ActionController
   CACHES_PAGE:index
  def index
    @products = Products.all
  end
end

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 47. What is Filter and when is it called in Ruby on Rails?

Filters are methods that are called either before/after a controller action is called. 

Say a user requests a controller action such as userdashboard/index

In such a case a filter can be setup so that the UserDashboard/index page is only accessible to loggedin users by adding the following lines towards the beginning of the page:

class UserDashboardController < ApplicationController

  before_filter :confirm_logged_in,  :except => [:login, :attempt_login, :logout]  
def index
....
end

def login
....
end

def attempt_login
....
end

def logout
....
end

end  

In the code above the condition confirm_logged_in is checked before all actions, except login, logout & attempt_login. 

After filters (after_filter) are not used too much but they have the effect of executing some code after a particular action has completed. 

Think of them like triggers that get executed automatically just like a database trigger. 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 48. What do Controllers task in Ruby on Rails?

Once a request comes into the Rails stack, it goes to the routes table to determine which controller and action should be called. 

Once a controller action is determined the request is routed to the controller and it does the needed processing by connecting with the DB if needed and then it sends control to the View to render the output. 

So, really the flow for Rails goes somewhat like this:

Customer-> Routes-> Controller -> Model(DB) -> Controller -> View -> Customer

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 49. What is RESTFUL routing in Ruby on Rails?

Routing is fun. If you have ever dealt with IIS you will fall in love with RESTful routing. Heres how it works. 

Say you want your users to have access to certain pages such as:

/photos/new

/photos/1/edit

/photos/1

And, you want the right controller to get called.

And, you want the right view to get rendered.

All this is made possible with a single entry in the routes.rb file.

In Rails, a resourceful route provides a mapping between HTTP verbs and URLs to controller actions. By convention, each action also maps to particular CRUD operations in a database. The single entry in the routing file creates seven different routes in your application, all mapping to the Photos controller:

GET-/photos

GET-/photos/new

POST - /photos

GET -  /photos/:id

GET -  /photos/:id/edit

PUT - /photos/:id

DELETE - /photos/:id

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 50. How can you routes all routs of an application?

rake routes -- will display all routes for an application.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 51. How can you send a MULTI-PART Email?

Nowadays most email clients support HTML email, however there are still some old Blackberry phones that prefer emails the ol text way. 

Therefore it is important to send emails both as HTML and text. This technique is called multi-part emails. 

The ActionMailer class (included in Rails 3.0) does a great job of sending both text and HTML emails out to the end user at the same time. 

By default Rails sending an email with plain/text content_type, for example:

# app/models/notifier.rb
def send_email(email)
  subject       email.subject
  from          email.from
  recipients    email.recipients
  sent_on       Time.now
  body          :email => email
end

Next lets update the view in : app/views/notifier/send_email.html.erb

Welcome to here: 

The sent email is a plain text email

Date: Thu, 5 Aug 2010 16:38:07 +0800
From: RailsBP 
To: flyerhzm@gmail.com
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8

Welcome: http://rails-bestpractices.com

The link url is just displayed as a plain text because of the email content_type.

TEXT/HTML

If we want the email clients to display link url as html format, we should change the content_type to text/html in the app/models/notifier.rb file

def send_email(email)
  subject          email.subject
  from             email.from
  recipients       email.recipients
  sent_on          Time.now
  content_type     "text/html"
  body             :email => email
end

Now the sent email is a html formatted email

Date: Thu, 5 Aug 2010 17:32:27 +0800
From: RailsBP 
To: flyerhzm@gmail.com
Mime-Version: 1.0
Content-Type: text/html; charset=utf-8

Welcome: http://rails-bestpractices.com

Now the email client can display the link url correctly with html format.

The email header looks somewhat like this:

Content-Type: multipart/alternative;
boundary="----=_NextPart_000_002C_01BFABBF.4A7D6BA0"
Content-Type: multipart/alternative tells the e-mail program to expect different parts to follow, separated by a boundary which specified in quotation marks. Actually the boundary could be anything, though hyphens, equal signs, and underscores insure that the e-mail program won't try to display this boundary to the recipient.
------=_NextPart_000_002C_01BFABBF.4A7D6BA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 52. What is the purpose of Layouts in Ruby on Rails?

Layouts are partial ruby/html files that are used to render the content pages. 

There are placed in the folder: app/views/layouts

Items that you would typically put in this folder are things like headers/footers, navigation elements, etc.

Heres a sample layout file: /app/views/layout/application.html.erb

<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Learning System | <%= @page_title || 'Admin Area' %></title>
    <meta name="author" content="Anil Punjabi">
    <%= stylesheet_link_tag('public', 'admin', :media => 'all') %>
    <%= javascript_include_tag('application') %>
  </head>
  <body>
    <div id="header">
      <h1>Learning System</h1>
    </div>
    <div id="main">
      <% if !flash[:notice].blank? %>
      <div class="notice">
        <%= flash[:notice] %>
      </div>
      <% end %>
      <div id="content">
        <%= yield %>
      </div>
    </div>
    <div id="footer">
      <p id="copyright">© / Anil Punjabi</p>
    </div>
  </body>
</html>
Say you are trying to access the page as shown below:
http://mysite.com/page/index
Then the contents of the index.html.erb would be placed above in the section shown under <% yield %> above and sent back to the user.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 53. IS IT POSSIBLE TO EMBED PARTIAL VIEWS INSIDE LAYOUTS? HOW?

That is the purpose of layouts. You embed partial views inside the file /app/views/layout/application.html.erb and then whenever you render any page this layout is merged with it.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 54. What is Rake in Ruby on Rails?

Rake is a popular ruby gem that makes the job of running tasks simpler. 

Rake is most often used for DB tasks, but it can be used for m

The common DB commands are:

rake db:migrate
rake db:reset

You can use cron to schedule rake tasks. 

Sometimes you would create a dataloader.rake file and put it in the lib/tasks folder so that it can be used to populate the database on startup.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 55. What is Capistrano?

Capistrano is a popular deployment tool it allows developers to push code from their desktop to the servers. 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 56. What is Eager Loading in Ruby on Rails?

Eager loading is a great optimization strategy to reduce the number of queries that are made against the DB.

Say you are finding 10 employees and then you are looking for their post codes. Then your query would appear something like this:

clients = Client.limit(10)
clients.each do |client|
  puts client.address.postcode
end

This may seem fine at first look but really this implementation leaves much to be desired. It makes 11 DB calls just to get the results.

Now you can optimize this query by making a slight change in the request like this:

clients = Client.includes(:address).limit(10)
clients.each do |client|
  puts client.address.postcode
end 

This new request makes two SQL calls like this:

SELECT * FROM clients LIMIT 10
SELECT addresses.* FROM addresses
    WHERE (addresses.client_id IN (1,2,3,4,5,6,7,8,9,10))
So, as you can see it really loads a lot more upfront and therefore it is called eager loading.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 57. How does Validation works in Ruby on Rails?

Validation means checking to see if data  is good before it is stored in the database.

During signups and other such user input cases you want to check and be sure that the data is validated. In the past developers would often put this type of validation logic as triggers in the database.  

In an MVC architecture one can do validations at each level. 

You can do validations in the controllers but it is usually a good idea to keep your controllers skinny.

Views suffer from the javascript limitation because javascript can be disabled on the client side so they are not completely reliable.

The best way to manage validation is to put it in the model code. This model code is really the closest as you can be to the database and works very well for Rails applications.

Here are a few validation examples:

class Person < ActiveRecord::Base
  validates :name, :length => { :minimum => 2 }
  validates :points, :numericality => { :only_integer => true }  # only integer
  validates :age,  :numericality => { :greater_than => 18 } # greater than 18
  validates :email, :uniqueness => true
  validates :email, :confirmation => true  # this is to validate that the two email fields are identical
  validates :email_confirmation, :presence => true # this is to validate that the email confirmation field is not nil

In your view template you may use something like this:

 <%= text_field :person, :email %> <%= text_field :person, :email_confirmation %>

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 58. How can you add custom validation on your model in Ruby on Rails?

Now custom validations takes it to the next step.

Say you want to confirm that the data meets certain criteria 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 59. What is Flash in Ruby on Rails?

Flash  is simply a way to pass some value to the next action. 

Anything you place in the flash will be exposed to the very next action and then cleared out.

Heres an example:

def destroy

section = Section.find(params[:id])      
section.destroy      
FLASH[:NOTICE] = "SECTION DESTROYED."     
redirect_to(:action => 'list', :page_id => @page.id)    

end

Then wherever you want to use the flash you can write this code. I often put this snippet in the application.html.erb file, somewhere towards the top:

   <% if !flash[:notice].blank? %>         
<div class="notice">  
 <%= flash[:notice] %>

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 60. HOW CAN YOU INSTALL THE MISSING GEMS THAT ARE REQUIRED BY YOUR APPLICATION IN THE SIMPLEST WAY in Ruby on Rails?

bundle install

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 61. How can you implement internationalization in Ruby on Rails?

Ruby ships with i18n which is an internationalization gem. 

You need to create locale files and save them under the config/locales directory as:

en.yml

es.yml

fr.yml

The keys should match for each of these files. 

en:   main_page:     hello: “Hello”     welcome: “Welcome to   My Company” es:   main_page:     hello: “Hola”     welcome: “Bienvenido a Mi Empresa” fr:   main_page:     hello: “Salut”     welcome: “Bienvenue   Mon Entreprise

In your code you would need to specify that the text would be locale specific. So change it to something like this:

.content   %h1     = t("main_page.hello")  
%p     = t("main_page.welcome")

Then you have to select the actual locale.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 62. WHAT PLUGIN WOULD YOU RECOMMEND FOR USER AUTHENTICATION AND AUTHORIZATION?

Devise works great with Rails. 

It supports OAuth authentication and therefore integrates nicely with Facebook. 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 63. WHAT PLUGIN DO YOU USE FOR FULL-TEXT SEARCH in Ruby on Rails?

Sunspot supports full-text search capability and uses Solr as the back-end search engine to do so. 

You would include these two plugins in your gem file as shown below:

gem 'sunspot_rails' 
gem 'sunspot_solr' 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 64. WHAT IS THE DIFFERENCE BETWEEN A PLUGIN AND A GEM in Ruby on Rails?

A gem is just ruby code. It is installed on a machine and its available for all ruby applications running on that machine.

Rails, rake, json, rspec are all examples of gems. 

Plugin is also ruby code but it is installed in the application folder and only available for that specific application. 

Sitemap-generator, etc.

In general, since Rails works well with gems you will find that you would be mostly integrating with gem files and not plugins in general. Most developers release their libraries as gems. 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 65. HOW CAN YOU IMPLEMENT A SEARCH FEATURE THAT SEARCHES FOR MULTIPLE MODELS in Ruby on Rails?

If you are using acts_as_solr for your search you will be able to use multi_solr_search to enable search across multiple models. 

Also, you can configure Sunspot/Solr to support search across multiple models.

Sphinx, another powerful search server can be used to search across multiple models and it works great. 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 66. HOW CAN YOU UPLOAD A FILE TO A SERVER in Ruby on Rails?

Paperclip is the best solution to manage file uploads to a server.

It can also help you with multiple file uploads and associate it with ActiveRecord.

There are also good examples online that show how you can make rotating sliders with the paperclip images.

Another nice solution is using carrier_wave gem. 

The nice thing about carrier_wave is that it has good documentation on how to integrate with S3, Google & Rackspace for file storage.

You can achieve the same file storage capability with Paperclip as well though. 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 67. HOW CAN YOU GENERATE SITEMAPS FOR YOUR RAILS SITE?

You can use dynamic_sitemaps gem to generate sitemaps.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 68. HOW CAN YOU SHOW SEARCH USER FRIENDLY URLS INSTEAD OF USING ONLY NUMERIC IDS in Ruby on Rails?

The simplest way to do this is to use the gem FriendlyID.

It gives you the ability to specify a friendly URL for pages so that instead of the standard page URLs like:

http://mysite.com/page/1

You can build pages such as:

http://mysite.com/page/my-awesome-page-about-articles-and-content

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 69. HOW CAN YOU CREATE PAGE TITLES AND METADATA FOR YOUR PAGES in Ruby on Rails?

You can use the Headliner plugin for adding page titles.

You can use the MetaMagic plugin to add meta tags.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 70. HOW CAN YOU CREATE BREADCRUMBS ON YOUR PAGES in Ruby on Rails?

Gretel is a great plugin to introduce breadcrumbs in your Rails application.

Another very simple implementation is breadcrumb_on_rails.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 71. Is Rails Scalable?

Yes Rails gives you complete freedom to use all traditional means of scaling an application. Things like memcached, caching full pages, caching fragments are all supported. 

You can use any standard CDN to serve your media and static content as well. 

Database scaling using sharding is supported. 

Finally heroku makes your life easier by giving you the flexibility to scale up/down based on your need. Mostly websites have a peak time during which you need more servers and then there is a sleep time. Heroku makes that on-demand scaling process simpler. Companies such as HireFireApp.com makes the autoscale process easier.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 72. What are the key deployment challenges in Ruby on Rails?

heroku makes deployment easy.

Things that I sometimes run into are:

> Mismatched gem versions between local and production environment

> Some lessons learned:

Use image_tag helper each time

Specify root path in ENV variable

Configure assets pipeline by setting: config.assets.enabled = true in the config/application.rb file

Configure Capistrano script to precompile assets 

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 73. HOW CAN YOU SAFEGUARD A RAILS APPLICATION FROM SQL INJECTION ATTACK?

Rails already has the logic built into it to prevent SQL injection attacks if you follow the right syntax. 

Say you are trying to authenticate a user based on their login and password you might be tempted to use a syntax as below:

User.first("login = '#{params[:name]}' AND password = '#{params[:password]}'")

If an attacker enters OR 1=1 as the name, and OR 2>1 as the password, the resulting SQL query will be:

 SELECT * FROM users WHERE login = '' OR '1'='1' AND password = '' OR '2'>'1' LIMIT 1 

This will simply find the first record in the database, and grants access to this user.

To prevent this type of SQL injection simply use the following format.

  User.where("login = ? AND password = ?", entered_user_name, entered_password).first

OR

User.where(:login => entered_user_name, :password => entered_password).first

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 74. How can you secure a Rails Application?

Rails has a lot of in-built capabilities to deal with common web-security issues. 

> SQL Injection

> Cross-Site 

> Session fixation and Session hijacking

> Captcha

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

Related interview subjects

PHP perguntas e respostas de entrevista - Total 27 questions
Oracle JET(OJET) perguntas e respostas de entrevista - Total 54 questions
Frontend Developer perguntas e respostas de entrevista - Total 30 questions
Zend Framework perguntas e respostas de entrevista - Total 24 questions
RichFaces perguntas e respostas de entrevista - Total 26 questions
HTML perguntas e respostas de entrevista - Total 27 questions
Flutter perguntas e respostas de entrevista - Total 25 questions
CakePHP perguntas e respostas de entrevista - Total 30 questions
React perguntas e respostas de entrevista - Total 40 questions
React Native perguntas e respostas de entrevista - Total 26 questions
Angular JS perguntas e respostas de entrevista - Total 21 questions
Web Developer perguntas e respostas de entrevista - Total 50 questions
Angular 8 perguntas e respostas de entrevista - Total 32 questions
Dojo perguntas e respostas de entrevista - Total 23 questions
GWT perguntas e respostas de entrevista - Total 27 questions
Symfony perguntas e respostas de entrevista - Total 30 questions
Ruby On Rails perguntas e respostas de entrevista - Total 74 questions
CSS perguntas e respostas de entrevista - Total 74 questions
Yii perguntas e respostas de entrevista - Total 30 questions
Angular perguntas e respostas de entrevista - Total 50 questions

All interview subjects

C# perguntas e respostas de entrevista - Total 41 questions
LINQ perguntas e respostas de entrevista - Total 20 questions
ASP .NET perguntas e respostas de entrevista - Total 31 questions
Microsoft .NET perguntas e respostas de entrevista - Total 60 questions
ASP perguntas e respostas de entrevista - Total 82 questions
IBM Watson perguntas e respostas de entrevista - Total 30 questions
Perplexity AI perguntas e respostas de entrevista - Total 40 questions
ChatGPT perguntas e respostas de entrevista - Total 20 questions
NLP perguntas e respostas de entrevista - Total 30 questions
AI Agents (Agentic AI) perguntas e respostas de entrevista - Total 50 questions
OpenCV perguntas e respostas de entrevista - Total 36 questions
Amazon SageMaker perguntas e respostas de entrevista - Total 30 questions
TensorFlow perguntas e respostas de entrevista - Total 30 questions
Hugging Face perguntas e respostas de entrevista - Total 30 questions
Gemini AI perguntas e respostas de entrevista - Total 50 questions
Artificial Intelligence (AI) perguntas e respostas de entrevista - Total 47 questions
Oracle AI Agents perguntas e respostas de entrevista - Total 50 questions
Machine Learning perguntas e respostas de entrevista - Total 30 questions
Google Cloud AI perguntas e respostas de entrevista - Total 30 questions
Scala perguntas e respostas de entrevista - Total 48 questions
Swift perguntas e respostas de entrevista - Total 49 questions
Golang perguntas e respostas de entrevista - Total 30 questions
Embedded C perguntas e respostas de entrevista - Total 30 questions
VBA perguntas e respostas de entrevista - Total 30 questions
C++ perguntas e respostas de entrevista - Total 142 questions
COBOL perguntas e respostas de entrevista - Total 50 questions
R Language perguntas e respostas de entrevista - Total 30 questions
Python Coding perguntas e respostas de entrevista - Total 20 questions
CCNA perguntas e respostas de entrevista - Total 40 questions
Oracle Cloud Infrastructure (OCI) perguntas e respostas de entrevista - Total 100 questions
AWS perguntas e respostas de entrevista - Total 87 questions
Azure Data Factory perguntas e respostas de entrevista - Total 30 questions
Microsoft Azure perguntas e respostas de entrevista - Total 35 questions
OpenStack perguntas e respostas de entrevista - Total 30 questions
ServiceNow perguntas e respostas de entrevista - Total 30 questions
Snowflake perguntas e respostas de entrevista - Total 30 questions
Oracle APEX perguntas e respostas de entrevista - Total 23 questions
PDPA perguntas e respostas de entrevista - Total 20 questions
OSHA perguntas e respostas de entrevista - Total 20 questions
HIPPA perguntas e respostas de entrevista - Total 20 questions
PHIPA perguntas e respostas de entrevista - Total 20 questions
FERPA perguntas e respostas de entrevista - Total 20 questions
DPDP perguntas e respostas de entrevista - Total 30 questions
PIPEDA perguntas e respostas de entrevista - Total 20 questions
CCPA perguntas e respostas de entrevista - Total 20 questions
GDPR perguntas e respostas de entrevista - Total 30 questions
HITRUST perguntas e respostas de entrevista - Total 20 questions
LGPD perguntas e respostas de entrevista - Total 20 questions
Data Structures perguntas e respostas de entrevista - Total 49 questions
Computer Networking perguntas e respostas de entrevista - Total 65 questions
Microsoft Excel perguntas e respostas de entrevista - Total 37 questions
Computer Basics perguntas e respostas de entrevista - Total 62 questions
Computer Science perguntas e respostas de entrevista - Total 50 questions
MS Word perguntas e respostas de entrevista - Total 50 questions
Operating System perguntas e respostas de entrevista - Total 22 questions
Tips and Tricks perguntas e respostas de entrevista - Total 30 questions
PoowerPoint perguntas e respostas de entrevista - Total 50 questions
Pandas perguntas e respostas de entrevista - Total 30 questions
Deep Learning perguntas e respostas de entrevista - Total 29 questions
PySpark perguntas e respostas de entrevista - Total 30 questions
Flask perguntas e respostas de entrevista - Total 40 questions
PyTorch perguntas e respostas de entrevista - Total 25 questions
Data Science perguntas e respostas de entrevista - Total 23 questions
SciPy perguntas e respostas de entrevista - Total 30 questions
Generative AI perguntas e respostas de entrevista - Total 30 questions
NumPy perguntas e respostas de entrevista - Total 30 questions
Python perguntas e respostas de entrevista - Total 106 questions
Python Pandas perguntas e respostas de entrevista - Total 48 questions
Python Matplotlib perguntas e respostas de entrevista - Total 30 questions
Django perguntas e respostas de entrevista - Total 50 questions
MariaDB perguntas e respostas de entrevista - Total 40 questions
DBMS perguntas e respostas de entrevista - Total 73 questions
Apache Hive perguntas e respostas de entrevista - Total 30 questions
SSIS perguntas e respostas de entrevista - Total 30 questions
PostgreSQL perguntas e respostas de entrevista - Total 30 questions
Teradata perguntas e respostas de entrevista - Total 20 questions
SQL Query perguntas e respostas de entrevista - Total 70 questions
SQLite perguntas e respostas de entrevista - Total 53 questions
Cassandra perguntas e respostas de entrevista - Total 25 questions
Neo4j perguntas e respostas de entrevista - Total 44 questions
MSSQL perguntas e respostas de entrevista - Total 50 questions
OrientDB perguntas e respostas de entrevista - Total 46 questions
SQL perguntas e respostas de entrevista - Total 152 questions
Data Warehouse perguntas e respostas de entrevista - Total 20 questions
IBM DB2 perguntas e respostas de entrevista - Total 40 questions
Data Mining perguntas e respostas de entrevista - Total 30 questions
Elasticsearch perguntas e respostas de entrevista - Total 61 questions
Oracle perguntas e respostas de entrevista - Total 34 questions
MongoDB perguntas e respostas de entrevista - Total 27 questions
AWS DynamoDB perguntas e respostas de entrevista - Total 46 questions
Entity Framework perguntas e respostas de entrevista - Total 46 questions
MySQL perguntas e respostas de entrevista - Total 108 questions
Data Modeling perguntas e respostas de entrevista - Total 30 questions
Redis Cache perguntas e respostas de entrevista - Total 20 questions
Data Engineer perguntas e respostas de entrevista - Total 30 questions
Robotics perguntas e respostas de entrevista - Total 28 questions
AutoCAD perguntas e respostas de entrevista - Total 30 questions
Power System perguntas e respostas de entrevista - Total 28 questions
Electrical Engineering perguntas e respostas de entrevista - Total 30 questions
Verilog perguntas e respostas de entrevista - Total 30 questions
Digital Electronics perguntas e respostas de entrevista - Total 38 questions
VLSI perguntas e respostas de entrevista - Total 30 questions
Software Engineering perguntas e respostas de entrevista - Total 27 questions
MATLAB perguntas e respostas de entrevista - Total 25 questions
Civil Engineering perguntas e respostas de entrevista - Total 30 questions
Electrical Machines perguntas e respostas de entrevista - Total 29 questions
Oracle CXUnity perguntas e respostas de entrevista - Total 29 questions
Web Services perguntas e respostas de entrevista - Total 10 questions
Salesforce Lightning perguntas e respostas de entrevista - Total 30 questions
IBM Integration Bus perguntas e respostas de entrevista - Total 30 questions
Power BI perguntas e respostas de entrevista - Total 24 questions
OIC perguntas e respostas de entrevista - Total 30 questions
Web API perguntas e respostas de entrevista - Total 31 questions
Dell Boomi perguntas e respostas de entrevista - Total 30 questions
Salesforce perguntas e respostas de entrevista - Total 57 questions
IBM DataStage perguntas e respostas de entrevista - Total 20 questions
Talend perguntas e respostas de entrevista - Total 34 questions
TIBCO perguntas e respostas de entrevista - Total 30 questions
Informatica perguntas e respostas de entrevista - Total 48 questions
Java Applet perguntas e respostas de entrevista - Total 29 questions
Java Mail perguntas e respostas de entrevista - Total 27 questions
Google Gson perguntas e respostas de entrevista - Total 8 questions
Java 21 perguntas e respostas de entrevista - Total 21 questions
RMI perguntas e respostas de entrevista - Total 31 questions
Java Support perguntas e respostas de entrevista - Total 30 questions
Apache Camel perguntas e respostas de entrevista - Total 20 questions
Struts perguntas e respostas de entrevista - Total 84 questions
JAXB perguntas e respostas de entrevista - Total 18 questions
J2EE perguntas e respostas de entrevista - Total 25 questions
JUnit perguntas e respostas de entrevista - Total 24 questions
Java OOPs perguntas e respostas de entrevista - Total 30 questions
Apache Tapestry perguntas e respostas de entrevista - Total 9 questions
JSP perguntas e respostas de entrevista - Total 49 questions
Java Concurrency perguntas e respostas de entrevista - Total 30 questions
JDBC perguntas e respostas de entrevista - Total 27 questions
Java 11 perguntas e respostas de entrevista - Total 24 questions
Java Garbage Collection perguntas e respostas de entrevista - Total 30 questions
Java Swing perguntas e respostas de entrevista - Total 27 questions
Java Design Patterns perguntas e respostas de entrevista - Total 15 questions
Spring Framework perguntas e respostas de entrevista - Total 53 questions
JPA perguntas e respostas de entrevista - Total 41 questions
JSF perguntas e respostas de entrevista - Total 24 questions
Java 8 perguntas e respostas de entrevista - Total 30 questions
Hibernate perguntas e respostas de entrevista - Total 52 questions
JMS perguntas e respostas de entrevista - Total 64 questions
Java 17 perguntas e respostas de entrevista - Total 20 questions
Java Beans perguntas e respostas de entrevista - Total 57 questions
Java Exception Handling perguntas e respostas de entrevista - Total 30 questions
Spring Boot perguntas e respostas de entrevista - Total 50 questions
Servlets perguntas e respostas de entrevista - Total 34 questions
Kotlin perguntas e respostas de entrevista - Total 30 questions
EJB perguntas e respostas de entrevista - Total 80 questions
Java 15 perguntas e respostas de entrevista - Total 16 questions
Java Multithreading perguntas e respostas de entrevista - Total 30 questions
Apache Wicket perguntas e respostas de entrevista - Total 26 questions
Core Java perguntas e respostas de entrevista - Total 306 questions
JBoss perguntas e respostas de entrevista - Total 14 questions
Log4j perguntas e respostas de entrevista - Total 35 questions
ITIL perguntas e respostas de entrevista - Total 25 questions
Finance perguntas e respostas de entrevista - Total 30 questions
JIRA perguntas e respostas de entrevista - Total 30 questions
SAP MM perguntas e respostas de entrevista - Total 30 questions
SAP ABAP perguntas e respostas de entrevista - Total 24 questions
SCCM perguntas e respostas de entrevista - Total 30 questions
Tally perguntas e respostas de entrevista - Total 30 questions
Pega perguntas e respostas de entrevista - Total 30 questions
Android perguntas e respostas de entrevista - Total 14 questions
Mobile Computing perguntas e respostas de entrevista - Total 20 questions
Xamarin perguntas e respostas de entrevista - Total 31 questions
iOS perguntas e respostas de entrevista - Total 52 questions
Ionic perguntas e respostas de entrevista - Total 32 questions
Kubernetes perguntas e respostas de entrevista - Total 30 questions
Microservices perguntas e respostas de entrevista - Total 30 questions
Apache Kafka perguntas e respostas de entrevista - Total 38 questions
Tableau perguntas e respostas de entrevista - Total 20 questions
Adobe AEM perguntas e respostas de entrevista - Total 50 questions
IAS perguntas e respostas de entrevista - Total 56 questions
PHP OOPs perguntas e respostas de entrevista - Total 30 questions
OOPs perguntas e respostas de entrevista - Total 30 questions
Fashion Designer perguntas e respostas de entrevista - Total 20 questions
Desktop Support perguntas e respostas de entrevista - Total 30 questions
CICS perguntas e respostas de entrevista - Total 30 questions
Yoga Teachers Training perguntas e respostas de entrevista - Total 30 questions
Nursing perguntas e respostas de entrevista - Total 40 questions
Linked List perguntas e respostas de entrevista - Total 15 questions
Dynamic Programming perguntas e respostas de entrevista - Total 30 questions
SharePoint perguntas e respostas de entrevista - Total 28 questions
Behavioral perguntas e respostas de entrevista - Total 29 questions
School Teachers perguntas e respostas de entrevista - Total 25 questions
Language in C perguntas e respostas de entrevista - Total 80 questions
Statistics perguntas e respostas de entrevista - Total 30 questions
Digital Marketing perguntas e respostas de entrevista - Total 40 questions
Apache Spark perguntas e respostas de entrevista - Total 24 questions
Full-Stack Developer perguntas e respostas de entrevista - Total 60 questions
IIS perguntas e respostas de entrevista - Total 30 questions
System Design perguntas e respostas de entrevista - Total 30 questions
VISA perguntas e respostas de entrevista - Total 30 questions
Google Analytics perguntas e respostas de entrevista - Total 30 questions
Cloud Computing perguntas e respostas de entrevista - Total 42 questions
BPO perguntas e respostas de entrevista - Total 48 questions
ANT perguntas e respostas de entrevista - Total 10 questions
SEO perguntas e respostas de entrevista - Total 51 questions
SAS perguntas e respostas de entrevista - Total 24 questions
Control System perguntas e respostas de entrevista - Total 28 questions
Agile Methodology perguntas e respostas de entrevista - Total 30 questions
HR Questions perguntas e respostas de entrevista - Total 49 questions
REST API perguntas e respostas de entrevista - Total 52 questions
Content Writer perguntas e respostas de entrevista - Total 30 questions
Banking perguntas e respostas de entrevista - Total 20 questions
Checkpoint perguntas e respostas de entrevista - Total 20 questions
Blockchain perguntas e respostas de entrevista - Total 29 questions
Technical Support perguntas e respostas de entrevista - Total 30 questions
Mainframe perguntas e respostas de entrevista - Total 20 questions
Hadoop perguntas e respostas de entrevista - Total 40 questions
Chemistry perguntas e respostas de entrevista - Total 50 questions
Docker perguntas e respostas de entrevista - Total 30 questions
Sales perguntas e respostas de entrevista - Total 30 questions
Nature perguntas e respostas de entrevista - Total 20 questions
Interview Tips perguntas e respostas de entrevista - Total 30 questions
College Teachers perguntas e respostas de entrevista - Total 30 questions
SDLC perguntas e respostas de entrevista - Total 75 questions
Cryptography perguntas e respostas de entrevista - Total 40 questions
RPA perguntas e respostas de entrevista - Total 26 questions
Blue Prism perguntas e respostas de entrevista - Total 20 questions
Memcached perguntas e respostas de entrevista - Total 28 questions
GIT perguntas e respostas de entrevista - Total 30 questions
DevOps perguntas e respostas de entrevista - Total 45 questions
Accounting perguntas e respostas de entrevista - Total 30 questions
SSB perguntas e respostas de entrevista - Total 30 questions
Algorithm perguntas e respostas de entrevista - Total 50 questions
Business Analyst perguntas e respostas de entrevista - Total 40 questions
Splunk perguntas e respostas de entrevista - Total 30 questions
Sqoop perguntas e respostas de entrevista - Total 30 questions
JSON perguntas e respostas de entrevista - Total 16 questions
OSPF perguntas e respostas de entrevista - Total 30 questions
Insurance perguntas e respostas de entrevista - Total 30 questions
Scrum Master perguntas e respostas de entrevista - Total 30 questions
Accounts Payable perguntas e respostas de entrevista - Total 30 questions
Computer Graphics perguntas e respostas de entrevista - Total 25 questions
IoT perguntas e respostas de entrevista - Total 30 questions
Bitcoin perguntas e respostas de entrevista - Total 30 questions
Active Directory perguntas e respostas de entrevista - Total 30 questions
Laravel perguntas e respostas de entrevista - Total 30 questions
XML perguntas e respostas de entrevista - Total 25 questions
GraphQL perguntas e respostas de entrevista - Total 32 questions
Ansible perguntas e respostas de entrevista - Total 30 questions
Electron.js perguntas e respostas de entrevista - Total 24 questions
ES6 perguntas e respostas de entrevista - Total 30 questions
RxJS perguntas e respostas de entrevista - Total 29 questions
NodeJS perguntas e respostas de entrevista - Total 30 questions
Vue.js perguntas e respostas de entrevista - Total 30 questions
ExtJS perguntas e respostas de entrevista - Total 50 questions
jQuery perguntas e respostas de entrevista - Total 22 questions
Svelte.js perguntas e respostas de entrevista - Total 30 questions
Shell Scripting perguntas e respostas de entrevista - Total 50 questions
Next.js perguntas e respostas de entrevista - Total 30 questions
Knockout JS perguntas e respostas de entrevista - Total 25 questions
TypeScript perguntas e respostas de entrevista - Total 38 questions
PowerShell perguntas e respostas de entrevista - Total 27 questions
Terraform perguntas e respostas de entrevista - Total 30 questions
JCL perguntas e respostas de entrevista - Total 20 questions
JavaScript perguntas e respostas de entrevista - Total 59 questions
Ajax perguntas e respostas de entrevista - Total 58 questions
Express.js perguntas e respostas de entrevista - Total 30 questions
Ethical Hacking perguntas e respostas de entrevista - Total 40 questions
Cyber Security perguntas e respostas de entrevista - Total 50 questions
PII perguntas e respostas de entrevista - Total 30 questions
Data Protection Act perguntas e respostas de entrevista - Total 20 questions
BGP perguntas e respostas de entrevista - Total 30 questions
Ubuntu perguntas e respostas de entrevista - Total 30 questions
Linux perguntas e respostas de entrevista - Total 43 questions
Unix perguntas e respostas de entrevista - Total 105 questions
Weblogic perguntas e respostas de entrevista - Total 30 questions
Tomcat perguntas e respostas de entrevista - Total 16 questions
Glassfish perguntas e respostas de entrevista - Total 8 questions
TestNG perguntas e respostas de entrevista - Total 38 questions
Postman perguntas e respostas de entrevista - Total 30 questions
SDET perguntas e respostas de entrevista - Total 30 questions
UiPath perguntas e respostas de entrevista - Total 38 questions
Quality Assurance perguntas e respostas de entrevista - Total 56 questions
Selenium perguntas e respostas de entrevista - Total 40 questions
Kali Linux perguntas e respostas de entrevista - Total 29 questions
Mobile Testing perguntas e respostas de entrevista - Total 30 questions
API Testing perguntas e respostas de entrevista - Total 30 questions
Appium perguntas e respostas de entrevista - Total 30 questions
ETL Testing perguntas e respostas de entrevista - Total 20 questions
QTP perguntas e respostas de entrevista - Total 44 questions
Cucumber perguntas e respostas de entrevista - Total 30 questions
PHP perguntas e respostas de entrevista - Total 27 questions
Oracle JET(OJET) perguntas e respostas de entrevista - Total 54 questions
Frontend Developer perguntas e respostas de entrevista - Total 30 questions
Zend Framework perguntas e respostas de entrevista - Total 24 questions
RichFaces perguntas e respostas de entrevista - Total 26 questions
HTML perguntas e respostas de entrevista - Total 27 questions
Flutter perguntas e respostas de entrevista - Total 25 questions
CakePHP perguntas e respostas de entrevista - Total 30 questions
React perguntas e respostas de entrevista - Total 40 questions
React Native perguntas e respostas de entrevista - Total 26 questions
Angular JS perguntas e respostas de entrevista - Total 21 questions
Web Developer perguntas e respostas de entrevista - Total 50 questions
Angular 8 perguntas e respostas de entrevista - Total 32 questions
Dojo perguntas e respostas de entrevista - Total 23 questions
GWT perguntas e respostas de entrevista - Total 27 questions
Symfony perguntas e respostas de entrevista - Total 30 questions
Ruby On Rails perguntas e respostas de entrevista - Total 74 questions
CSS perguntas e respostas de entrevista - Total 74 questions
Yii perguntas e respostas de entrevista - Total 30 questions
Angular perguntas e respostas de entrevista - Total 50 questions
Copyright © 2026, WithoutBook.