0% found this document useful (0 votes)
33 views8 pages

SL Bits

The document provides a fill-in-the-blank and multiple choice examination on scripting languages with a focus on Ruby. It tests knowledge of Ruby frameworks like Ruby on Rails, RubyGems, and RubyTk. It also covers related concepts like dynamic typing, memory management, web development, and using scripting languages for automation and rapid prototyping.

Uploaded by

rupauppala36
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views8 pages

SL Bits

The document provides a fill-in-the-blank and multiple choice examination on scripting languages with a focus on Ruby. It tests knowledge of Ruby frameworks like Ruby on Rails, RubyGems, and RubyTk. It also covers related concepts like dynamic typing, memory management, web development, and using scripting languages for automation and rapid prototyping.

Uploaded by

rupauppala36
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Subject: Scripting Languages Branch: AI&ML

Examination: MID-I Year & Sem: III-II

Duration:1 Hour Max Marks:10

FILL IN THE BLANKS:

1)Ruby on Rails is a popular ____________ framework for building web


applications.

Answer: web development

2)Understanding the structure and execution of Ruby programs is essential for


mastering ____________.

Answer: Ruby

3)____________ is the primary package management system used in the Ruby


community.

Answer: RubyGems

4)Writing CGI scripts in ____________ allows for dynamic web content generation.

Answer: Ruby

5)Cookies are commonly used in web development to store ____________


information on the client side.

Answer: session

6)When choosing a web server for hosting Ruby applications, considerations include
____________ and scalability.

Answer: performance

7)SOAP and ____________ are two popular protocols used for implementing web
services.

Answer: REST

8)RubyTk provides a simple way to create Tk applications with ____________ and


event handling.
Answer: widgets

9)Binding events in RubyTk allows for ____________ to user actions.

Answer: response

10)The Canvas widget in RubyTk facilitates ____________ drawing and


manipulation.

Answer: graphical

11)Understanding how Ruby objects are represented in C is crucial for developing


efficient ____________.

Answer: C extensions

12)The Jukebox extension for Ruby allows for seamless integration of


____________ functionality.

Answer: audio

13)Memory allocation in Ruby is managed by the ____________.

Answer: garbage collector

14)The Ruby type system is ____________, allowing for dynamic typing.

Answer: flexible

15)Embedding Ruby into other languages enables ____________ scripting


capabilities.

Answer: cross-language

16)Scripts and programs are both sets of ____________ instructions that perform
tasks on a computer.

Answer: executable

17)The origin of scripting languages can be traced back to the need for
____________ automation in the early days of computing.

Answer: task

18)Scripting today encompasses a wide range of languages used for tasks such as
____________, system administration, and web development.

Answer: automation

19)Characteristics of scripting languages often include ____________ syntax,


dynamic typing, and high-level abstractions.
Answer: concise

20)Uses for scripting languages extend to tasks like web ____________, data
processing, and rapid prototyping.

Answer: scripting

CHOOSE THE CORRECT ANSWERS:

1)Which framework is commonly used for building web applications in Ruby?

a) Ruby

b) Ruby Tk

c) Rails

d) SOAP

Answer: c) Rails

2)What is the primary package management system used in the Ruby


community?

a) RubyTk

b) RubyGems

c) Rails

d) SOAP

Answer: b) RubyGems

3)Which aspect of Ruby programming involves understanding how programs


are structured and executed?

a) Ruby

b) Rails

c) The structure and Execution of Ruby Programs

d) SOAP

Answer: c) The structure and Execution of Ruby Programs

4)Which technology is commonly used for creating graphical user interfaces


(GUI) in Ruby?

a) Web servers
b) Rails

c) RubyTk

d) Cookies

Answer: c) RubyTk

5)What is a common method for handling user interactions in a RubyTk


application?

a) Choice of Webservers

b) Scrolling

c) Binding events

d)SOAP

Answer: c) Binding events

6)Which technology is commonly used for communication between web


services?

a) Cookies

b) Choice of Webservers

c) SOAP

d) RubyGems

Answer: c) SOAP

7)What is often used in web development for storing user session information?

a) Rails

b) Writing CGI scripts

c) Cookies

d) Canvas

Answer: c) Cookies

8)What is an important consideration when selecting a web server for hosting


Ruby applications?

a) Scrolling
b) SOAP

c) Choice of Webservers

d) Ruby

Answer: c) Choice of Webservers

9)Which technology is commonly used for creating dynamic web content in


Ruby?

a) SOAP

b) Writing CGI scripts

c) Widgets

d) Ruby

Answer: b) Writing CGI scripts

10)Which aspect of web development involves creating scripts to automate


tasks on a website?

a) Ruby

b) Web Scripting

c) Canvas

d) RubyGems

Answer: b) Web Scripting

11)What aspect of Ruby development involves understanding how Ruby objects


are represented in C?

a) Memory allocation

b) Ruby Type System

c) Embedding Ruby to Other Languages

d) Ruby Objects in C

Answer: d) Ruby Objects in C

12)Which extension facilitates audio integration with Ruby applications?

a) Memory allocation
b) Ruby Type System

c) Embedding Ruby to Other Languages

d) The Jukebox extension

Answer: d) The Jukebox extension

13)Which aspect of Ruby development deals with managing system resources


efficiently?

a) Ruby Type System

b) Embedding a Ruby Interpreter

c) Memory allocation

d) Embedding Ruby to Other Languages

Answer: c) Memory allocation

14)What aspect of Ruby determines how data is classified and manipulated?

a) Ruby Objects in C

b) Embedding a Ruby Interpreter

c) Ruby Type System

d) Embedding Ruby to Other Languages

Answer: c) Ruby Type System

15)What aspect of Ruby development involves bridging communication


between different language runtimes?

a) Memory allocation

b) Inter-language communication

c) Ruby Objects in C

d) Ruby Type System

Answer: b) Inter-language communication

16)What term refers to sets of instructions that automate tasks on a computer?

a) Programs

b) Scripts
c) Applications

d) Functions

Answer: b) Scripts

17)The origin of scripting languages can be traced back to the need for:

a) Web development

b) Task automation

c) Scientific computing

d) System administration

Answer: b) Task automation

18)Which of the following is a characteristic often associated with scripting


languages?

a) Compilation

b) Strong typing

c) Lengthy syntax

d) Dynamic typing

Answer: d) Dynamic typing

19)What are common uses for scripting languages?

a) Low-level system programming

b) Video game development

c) Task automation

d) Mobile app development

Answer: c) Task automation

20)What type of scripting focuses on automating tasks related to websites and


web applications?

a) Desktop scripting

b) Network scripting

c) System scripting
d) Web scripting

Answer: d) Web scripting

You might also like