Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO...

38
Copyright (c)2007 ITOCHU Techno-Solutions Corporat The Ruby Certified Exam Yoshitake SHIMO ([email protected]) Manager, OSS Service Section, Middleware Support Service Department, Software Service Division ITOCHU Techno-Solutions Corporation [email protected]

Transcript of Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO...

Page 1: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

The Ruby Certified Exam

Yoshitake SHIMO ([email protected])

Manager, OSS Service Section,

Middleware Support Service Department, Software Service Division

ITOCHU Techno-Solutions Corporation

[email protected]

Page 2: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Today’s Agenda

• Overview of Ruby Certified Exam• Overview of Ruby Associations• Sample Questions & Answers

Talk about Following Agenda

Page 3: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Overview of Ruby Certified Exam

Page 4: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Overview of Ruby Certified Exam

Background of RubyBackground of RubyKnowledge of GrammarKnowledge of Grammar

Class an ObjectClass an ObjectStandard LibraryStandard Library

Technology of Basic LevelTechnology of Basic Level

Background of RubyBackground of RubyKnowledge of GrammarKnowledge of Grammar

Class an ObjectClass an ObjectStandard LibraryStandard Library

Technology of Basic LevelTechnology of Basic Level

SilverSilver Gold (if)Gold (if)Gold (if)Gold (if) Platinum (if)Platinum (if)Platinum (if)Platinum (if)

Ruby Association Certified Ruby Programmer

Formal Nomenclature

Planning…Planning…Planning…Planning… Planning…Planning…Planning…Planning…

Level of Examination

Page 5: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Purpose of Ruby Certified Exam for Ruby Programmers

It is to show the standard of technological level that becomes a target in studying and educating Ruby.

It confirms technology by the Ruby engineer, and shows the standard that appeals to others.

It shows the standard of the judgment that the Ruby engineer such as the enterprises adopts (employment and development consignment).

1

2

3

Page 6: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

About the Ruby Certified Exam

The Ruby Certified Exam is executed for the following purposes

– Promotion to the engineers who acquire knowledge with correct programming language "Ruby" made in Japan.

– The system development by Ruby is spread.

The Ruby Certified Exam is presented with CBT of Prometric in April, 2008.

– Taking an examination by freely choosing the place and the date at examinee's convenience is possible now.

– The Japanese examination begins on February 25, 2008. – The English examination begins on April 28, 2008.– Reservation site

– http://www.prometric.com/Ruby/default.htm

Page 7: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

About the Ruby Certified Examination (Cont.)

The Ruby Certified examination is a qualifying examination intended for the following people.

Engineer Designs, Develops, and Operates system of Ruby base

Consultant proposes system with Ruby

Lecturer teaches Ruby

Successful applicant can receive a certificate as "Ruby Association Certified Ruby Programmer" from the Ruby Association.

The ability as the Ruby engineer is evaluated fairly when certified. Moreover, the certified engineer gets the development of the system at a high level using Ruby ability admitted.

There are comparatively many questions asking basic knowledge of Ruby and differences between Ruby and Other languages

Benefit Tendency of exam

Page 8: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

CBT Outline of Ruby Certified Exam

Ruby Association Certified Ruby Programmer Silver

Name

90 minutes

Time

CBT/Computer Based Testing

Method

50 Questions (Multiple-Choice)

Questions

Execution environment•Execution method•Commandline option•Environment variables•irb

Grammar•Comment•Literal•Variables, constants, and scope•Operators•Conditional branch•Loops•Exception handle•Call method•Block•Method definition•Class definition•Module definition

Built-in Libraries•Built-in functions•Built-in classes

Object orientation•Polymorphism•Inheritance•mix-in

Range of Questions

Page 9: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Country and Charge

Country Charge Currency Country Charge Currency

Australia 180 AUD Myanmar

150 USD

New Zealand 200 NZD Nepal

Singapore 220 SGD Pakistan

Hong Kong 1200 HKD Philippines

Macao 1200 MOP South Korea

Malaysia 500 MYR Sri Lanka

Bangladesh

150 USD

Taiwan

Brunei Vietnam

Cambodia Indonesia

Not AvaliableChina Thailand

India Laos

Page 10: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Results of Ruby Exam in Japan

• Oct. 27th 2007, the first written examination was executed in Matsue, Japan.

• Dec. 1th 2007, the second written examination was executed in Matsue and Tokyo, Japan.

• Dec. 19th 2007, the third written examination was executed in Matsue and Tokyo , Japan.

• Feb. 25th 2008, CBT started in Japanese.

• Apr. 28th 2008, CBT started in English. Appearance of the first written

Examination at Oct. 27th 2007 in

Matsue

Page 11: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Overview of Ruby Associations

Page 12: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Purpose

About Ruby Associations

• The Ruby Association LLC is an organization to help development of the programming language Ruby.

• The goals of the Ruby Association are to improve relationship among Ruby-related projects, communities and businesses, and to address issues connected with using Ruby in an enterprise environment.

Activities• The activities of the Association are:

– supporting development of Ruby itself– supporting Ruby-related communities– supporting Ruby-related events and conferences– supporting systems integration business– merchandising Ruby-related goodies– public relations

Page 13: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

About Ruby Associations (Cont.)

•Masataka Matsuura (the mayor of Matsue)•Zembee Mizoguchi (the governor of Shimane)

Advisors

•Yukihiro Matsumoto (chairman)•Shugo Maeda (co-chair)•Hiroshi Inoue

Board Members

The Ruby Association LLC is established under the Japanese law, and its head office is located at Matsue-shi Shimane-ken, Japan.

Board Members

Page 14: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Ruby City Matsue

• Go Ruby  City Matsue File

Page 15: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

About Ruby Associations (Cont.)

• CTCと Rubyアソシエーションの関係を記入予定

Relation between CTC and Ruby Associations

Page 16: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Page 17: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample No.1 Question

Sample Questions & Answers

Please select the answer(s) assumed to be a true value by Ruby.

(1) true(2) “”(3) 0(4) nil(5) TRUE

Page 18: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample No.1 Answer

Sample Questions & Answers

Please select the answer(s) assumed to be a true value by Ruby.

O(1) true  O(2) “”O(3) 0X(4) nilO(5) TRUE

Page 19: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample No.2 Question

Sample Questions & Answers

Please select the correct answer(s) as an execution result of the following codes.

(1..10).each{puts “Ruby”}

(1) Grammatical error(2) It is displayed 9 times as Ruby. (3) It is displayed 10 times as Ruby. (4) It is displayed 11 times as Ruby.

Page 20: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample No.2 Answer

Sample Questions & Answers

Please select the correct answer(s) as an execution result of the following codes.

(1..10).each{puts “Ruby”}

X(1) Grammatical errorX(2) It is displayed 9 times as Ruby. O(3) It is displayed 10 times as Ruby. X(4) It is displayed 11 times as Ruby.

Page 21: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample No.3 Question

Please select the operator(s) that can be redefined as a method.

(1) !(2) =(3) and(4) =~

Sample Questions & Answers

Page 22: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Question No.3

Please select the operator(s) that can be redefined as a method.

X(1) !X(2) =X(3) andO(4) =~

Sample Questions & Answers

Page 23: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample Question No.4

Please select regular expression(s) to accord in that more then one characters and strings only for number.

(1) /\A[0-9]+\z/(2) /^[0-9]*$/(3) /^\d+$/(4) /\A\d*\z/

Page 24: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.4 Answer

Please select regular expression(s) to accord in that more then one characters and strings only for number.

O(1) /\A[0-9]+\z/X(2) /^[0-9]*$/X(3) /^\d+$/X(4) /\A\d*\z/

Page 25: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.5 Question

Please select the correct answer(s) as a name of the local variable.

(1) Ruby(2) @ruby(3) $ruby(4) _ruby(5) ruby

Page 26: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.5 Answer

Please select the correct answer(s) as a name of the local variable.

X(1) RubyX(2) @rubyX(3) $rubyO(4) _rubyO(5) ruby

Page 27: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.6 Question

Please select a necessary thing(s) for the class of the stored element to sort the array element.

(1) "<=>" method is defined. (2) "succ" method is defined. (3) Include Comparable (4) Include Enumerable

Page 28: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.6 Answer

Please select a necessary thing(s) for the class of the stored element to sort the array element.

O(1) "<=>" method is defined. X(2) "succ" method is defined. X(3) Include Comparable X(4) Include Enumerable

Page 29: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.7 Question

Please choose the sentence explaining a state when you make a class definitely without appointing a super class explicitly.

(1) Grammatical error. (2) The class does not have a super class. (3) The class has Kernel class as Supper Class.(4) The class has Object class as Supper Class.

Page 30: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.7 Answer

Please choose the sentence explaining a state when you make a class definitely without appointing a super class explicitly.

X(1) Grammatical error. X(2) The class does not have a super class. X(3) The class has Kernel class as Supper Class.O(4) The class has Object class as Supper Class.

Page 31: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.8 Question

Please select the correct answer(s) as an example of executing the following codes.

ary = [1,2,3,1,2,3]ary.delete(2)P ary

(1) [1, 3, 1, 2, 3](2) [1, 3, 1, 3](3) [3, 1, 2, 3](4) [1, 2, 3, 1]

Page 32: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.8 Answer

Please select the correct answer(s) as an example of executing the following codes.

ary = [1,2,3,1,2,3]ary.delete(2)P ary

X(1) [1, 3, 1, 2, 3]O(2) [1, 3, 1, 3]X(3) [3, 1, 2, 3]X(4) [1, 2, 3, 1]

Page 33: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.9 Question

Please select the correct answer(s) as an execution result of the following code.

puts “Ruby” * 3

(1) RubyRubyRuby(2) It becomes an error. (3) Ruby3(4) 0

Page 34: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.9 Answer

Please select the correct answer(s) as an execution result of the following code.

puts “Ruby” * 3

O(1) RubyRubyRubyX(2) It becomes an error. X(3) Ruby3X(4) 0

Page 35: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.10 Question

Please select the correct answer(s) as an execution result of the following code.

puts ({ “1” => “Ruby”, “2” => “Lisp” }.size)

(1) 10(2) 2(3) 4(4) 8

Page 36: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Sample Questions & Answers

Sample No.10 Answer

Please select the correct answer(s) as an execution result of the following code.

puts ({ “1” => “Ruby”, “2” => “Lisp” }.size)

O(1) 10X(2) 2O(3) 4O(4) 8

Page 37: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Measures according to Engineer Type

1. The code of usual Ruby is not so written though it is interested in the mechanism of Ruby. • A detailed grammar and the built-in library of Ruby are reviewed a

nd it is necessary to memorize it.

2. As for the method, the reference sees, and confirms the operation in every case with irb though does the programming with Ruby every day. – It is necessary to memorize the method of the built-in library.

3. The code of Ruby is written every day, and it understands in the built-in library. • Necessity none of measures.

Page 38: Copyright (c)2007 ITOCHU Techno-Solutions Corporation The Ruby Certified Exam Yoshitake SHIMO (yshimo@ctc-g.co.jp) Manager, OSS Service Section, Middleware.

Copyright (c)2007 ITOCHU Techno-Solutions Corporation

Thank you very much.