The document outlines important questions for a mid-exam covering Units 1 and 2 of a Scripting Language course focused on Ruby. It includes long answer questions on topics such as package management, memory management, RubyTk, and CGI scripting, as well as short answer questions about iterators and RubyGems. The questions aim to assess knowledge of Ruby's features, libraries, and integration with other languages.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views1 page
Important Questions Unit 1 and Unit 2
The document outlines important questions for a mid-exam covering Units 1 and 2 of a Scripting Language course focused on Ruby. It includes long answer questions on topics such as package management, memory management, RubyTk, and CGI scripting, as well as short answer questions about iterators and RubyGems. The questions aim to assess knowledge of Ruby's features, libraries, and integration with other languages.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
IMPORTANT QUESTIONS FOR MID EXAM UNIT 1 & 2
SCRIPTING LANGUAGE Long Answer Questions
1. Explain Package Management in Ruby with RUBYGEMS.
2. List and explain the different Class Libraries in Ruby. 3. Discuss in detail about RubyTk with an example application. 4. Write a Ruby program which shows the implementation of Canvas Widget. 5. How does Ruby Manage the memory usage? Explain. 6. Describe the use of Malloc, Calloc, Realloc and Free functions in Ruby. 7. What is eRuby? Explain how Ruby is embedded in HTML. 8. “Ruby supports multiple programming paradigms” Justify your answer. 9. Write and explain the lexical structure of ruby program. 10. How can we create an array using ruby? Explain with example program. 11. What is an event? Explain how can we bind the events. 12. Write and explain the steps in writing CGI Script. 13. How can we use the global variables in Ruby? Explain with an example program. 14. Explain the procedure for embedding a ruby interpreter. 15. What is a cookie? Write the code in Ruby to demonstrate handling of cookies. 16. What are web services and how do we use SOAP to implement web services in Ruby? 17. Describe different canvases available in Ruby-Tk. 18. How do we embed a ruby language interpreter in C program? 19. Explain about Ruby type system. 20. Write the syntax and explain the usage of different memory allocation functions available in Ruby. 21. Describe about lexical and syntactic structure of Ruby language. 22. Describe the usage of erb and eruby packages in Ruby. 23. Write the steps for building our own extensions in Ruby. 24. Explain about different Ruby objects in C. 25. Write a Ruby programming for wrapping of C structures in Jukebox extension. 26. Explain about object creation and cloning of objects in Ruby. 27. How to access Tk features from Ruby? Discuss briefly creating a simple application. 28. How Ruby CGI handles cookies and sessions? 29. Demonstrate using the sample Ruby CGI Scripts. 30. Explain various C/Ruby data type conversion functions and macros with clear syntax and illustrative examples for each. 31. Explain StringValue and StringValuePtr macros in Ruby with sample Ruby script. b) How to embed ruby in your application? What is the role of Ruby interpreter? Explain. 32. List and explain the different canvas widget options. 33. Illustrate the Embedding of Ruby to Other Languages.
Short Answer Questions
1. What do you mean by an iterator in Ruby?
2. State the importance of RubyGems. 3. Write about Fixnum immediate value in Ruby. 4. Write an extension code in C that is plug-compatible with that Ruby class.