Home
Sign in
Close menu
Home
Sign in
Lesson list
Introduction to Ruby and Object Oriented Programming
Close
Chapter 1: Getting Started with Web Development
1. Goals of the Intro Course
2. Guidelines for Learning
Chapter 2: Ruby Fundamentals
1. Introduction to Ruby
2. Setting up your environment
3. Super basic command line crash course
4. Your First Ruby Program
5. Math is easy
6. Strings
7. Variables
8. Arrays
9. Hashes
10. Looping and Iterating
11. Defining our own methods
12. Conditionals and Logical Operators
Chapter 3: Object oriented programming
1. Introduction to Object Oriented Programming
2. Classes
3. Instance Variables
4. attr_reader and attr_writer
5. Instance Methods, Class Methods, and Encapsulation
6. Inheritance
Chapter 4: Ruby challenges
1. FooBar Challenge
2. Test-First Ruby: Hello
3. Challenge: Temperature Conversion
4. Challenge: Ordinal
5. Challenge: Building a Deck of Cards
Introduction to Ruby and Object Oriented Programming > Ruby Fundamentals
Quiz - 3. Super basic command line crash course
Q1.
What is the correct syntax for creating folder named 'ruby_tutorials'?
mkdir('ruby_tutorials')
mkdir ruby_tutorials
mkdir -n ruby_tutorials
mkdir new ruby_tutorials
Q2.
Which is the use of 'cd' command?
Create directory.
Change directory.
Create file.
Change working directory.
Q3.
Which command is used for listing files and folders?
ls
cd
pwd
cd ..
Q4.
When do we use 'pwd' command?
To print the list of files and folders of present working directory.
To print the present working directory itself.
To print the writable files in the current directory.
To print the previous working directory.
Q5.
Do linux commands take flags/arguments?
No, they don't.
Yes, they do.
Submit