Deck 1: Ruby Basics
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/45
العب
ملء الشاشة (f)
Deck 1: Ruby Basics
1
Ruby scripts run slower than their compiled counterparts because each time they run they must be reinterpreted.
True
2
Ruby was created as a joint project between Microsoft and Apple.
False
3
A class is a definition or template used to define the properties and methods that represents objects.
True
4
Ruby is generally regarded as a natural, English-like scripting language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
5
Ruby on Rails (Rails) is a Web-based application development framework that allows programmers to build website applications using Ruby.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
6
The things that describe or characterize an object, such as size or type are referred to as object methods.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
7
A variable is a reference or a pointer to a location in memory where a piece of data is stored.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
8
Unlike other scripting languages, Ruby only runs on operating systems. It does not support execution within virtual systems.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
9
Ruby requires that all variables be formally declared prior to its use.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
10
A feature of Ruby that sets it apart from many other programming languages is its light syntax.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
11
Many programmers use Ruby to develop scripts that tie together other applications, providing the programmatic glue needed to take disparate applications and get them to work together.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
12
Ruby's problem in the early days was the lack of a killer application that demonstrated is capabilities.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
13
Ruby is the name of the scripting language and not just a clever acronym.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
14
Ruby was created from the ground up with ease of use in mind on it was only a few years later that it was adapted as an object-oriented programming language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
15
Ruby is an object-oriented scripting language originally developed in 1981 to run on Microsoft Windows.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
16
The origins of Ruby go back to 1995 where it quickly gained notice and popularity in Japan.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
17
Like most object-oriented programming languages, Ruby distinguishes between objects and numbers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
18
As an interpreted scripting language, Ruby scripts are compiled into executable programs upon created, ensure that they execute quickly and with great efficiency.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
19
Actions that can be taken against an object or which an object can be directed to perform are stored as part of the object are properties.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
20
Ruby is distributed under a restricted licensing arrangement that permits limited use allowing anyone to freely install and use it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
21
The IRB can be accessed on Microsoft Windows through the fxri.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
22
To find out if Ruby is installed, you can type ruby -v at the operating system command prompt.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
23
Ruby's development was heavily influenced by all of the following except ____.
A) Perl
B) Smalltalk
C) Visual Basic
D) Python
A) Perl
B) Smalltalk
C) Visual Basic
D) Python
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which of the following URLs does not provide you with access to Ruby installation files?
A) Locomotive - http://locomotive.raaum.org/
B) MacPorts - http://www.macports.org/
C) RubyMac - http://www.rubmac.net/
D) Fink - http://finkproject.org/
A) Locomotive - http://locomotive.raaum.org/
B) MacPorts - http://www.macports.org/
C) RubyMac - http://www.rubmac.net/
D) Fink - http://finkproject.org/
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
25
Part of the reason Ruby was slow to gain popular acceptance outside of Japan was ____.
A) An initial lack of non-Japanese documentation
B) An overly complex syntax
C) Poor marketing and advertising
D) An incompatibility with UNIX operating systems
A) An initial lack of non-Japanese documentation
B) An overly complex syntax
C) Poor marketing and advertising
D) An incompatibility with UNIX operating systems
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
26
The application that first demonstrated Ruby's capabilities was ____.
A) Ruby on Rails
B) Ajax
C) Web 2.0
D) None of the above
A) Ruby on Rails
B) Ajax
C) Web 2.0
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
27
The IRB is ____.
A) A Ruby shell that acts an interface between you and Ruby
B) A batch utility that allows you to schedule the execution of script files
C) An interactive remote Ruby test environment that support remote script execution
D) None of the above
A) A Ruby shell that acts an interface between you and Ruby
B) A batch utility that allows you to schedule the execution of script files
C) An interactive remote Ruby test environment that support remote script execution
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
28
Ruby scripts can run directly on all of the following operating systems except ____.
A) Microsoft Windows
B) MVS
C) Linux and UNIX
D) Mac OS X
A) Microsoft Windows
B) MVS
C) Linux and UNIX
D) Mac OS X
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
29
Which of the following is not found on a Microsoft Windows installation of Ruby?
A) fxri - Interactive Ruby Help & Console
B) SciTe
C) Ruby Documentation
D) Ruby Debug Console
A) fxri - Interactive Ruby Help & Console
B) SciTe
C) Ruby Documentation
D) Ruby Debug Console
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
30
Ruby is a simple yet powerful scripting language that ____.
A) Is interpreted
B) Supports a natural English-like programming style
C) Has light syntax requirements
D) All of the above
A) Is interpreted
B) Supports a natural English-like programming style
C) Has light syntax requirements
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
31
IRB stands for Interactive Ruby and is used to interactively submit Ruby statements for immediate processing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
32
By default, Microsoft Windows automatically installs Ruby.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
33
Ruby was created to address the shortcomings found in other programming languages. These shortcomings include ____.
A) Being overly complex
B) Difficult to learn and work with
C) Cryptic and inconsistent syntax
D) All of the above
A) Being overly complex
B) Difficult to learn and work with
C) Cryptic and inconsistent syntax
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
34
In addition to running on different operating systems. Ruby also supports execution within various virtual machine environments, including ____.
A) JRuby
B) IronRuby
C) Both of the above
D) Neither of the above
A) JRuby
B) IronRuby
C) Both of the above
D) Neither of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
35
The IRB lets you type in commands and small code snippets and to retrieve immediate results. The IRB command prompt consists of multiple parts separated by a colon as shown here: irb(main):001:0> Which of these parts is incorrectly described below?
A) (main) - Identifies the current class (in this case the main object)
B) 001 - A three digit number showing Ruby's version number
C) 0 - Represents the current queue depth when working with a class
D) > - The end of the command prompt
A) (main) - Identifies the current class (in this case the main object)
B) 001 - A three digit number showing Ruby's version number
C) 0 - Represents the current queue depth when working with a class
D) > - The end of the command prompt
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
36
To determine if Ruby is installed on your computer, you can open the command prompt and type which of the following commands?
A) ipconfig all
B) ruby -v
C) dir ruby
D) ruby -verify
A) ipconfig all
B) ruby -v
C) dir ruby
D) ruby -verify
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
37
By default, Ruby comes pre-installed on all versions of Mac OS X starting with version 10.3.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
38
Programmers around the world use Ruby to develop scripts that perform tasks that include ____.
A) Processing text files
B) Network programming
C) System administration
D) All of the above
A) Processing text files
B) Network programming
C) System administration
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
39
You can stop the current IRB session at any time and return to the operating system's command prompt by entering ____.
A) Quit
B) Terminate
C) Stop
D) Exit
A) Quit
B) Terminate
C) Stop
D) Exit
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
40
Ruby on Rails supports which of the following development environments?
A) Operating system scripting
B) System administration
C) Web development
D) Application prototyping
A) Operating system scripting
B) System administration
C) Web development
D) Application prototyping
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
41
Which of the following code/text editors work on Window, Mac OS X, Linux and UNIX?
A) FreeRIDE
B) Notepad
C) KATE
D) vi
A) FreeRIDE
B) Notepad
C) KATE
D) vi
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
42
fxri stands for____.
A) Fast Extensive Ruby Interface
B) Ruby Console and Help Facility
C) Interactive Ruby Help and Console
D) Interactive Ruby Execution Host
A) Fast Extensive Ruby Interface
B) Ruby Console and Help Facility
C) Interactive Ruby Help and Console
D) Interactive Ruby Execution Host
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
43
Ruby scripts end with a ____ file extension.
A) .rs
B) .rb
C) .rbs
D) .script
A) .rs
B) .rb
C) .rbs
D) .script
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
44
Which of the following statements is sometimes included as the first statement in a Ruby script?
A) #!/usr/local/bin/ruby -w
B) chmod +x
C) %Ruby_execute
D) #!\user\
A) #!/usr/local/bin/ruby -w
B) chmod +x
C) %Ruby_execute
D) #!\user\
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
45
Windows Ruby script developers can use the ____ code/text editor.
A) Notepad
B) TextEdit
C) SciTE
D) a. or c.
A) Notepad
B) TextEdit
C) SciTE
D) a. or c.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck