Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

RGSS Quiz

Aran

Member

TUTORIAL":3ldbeal2 said:
FOR QUIZ TAKERS

@Quiz takers: You must state your name, date you applied (MM,DD,YY)and the rank you think you are at. NOTE: even if you are a beginner you can apply for higher level quizzes.
Name: Aran
Date: 07.04.06
Level: Beginner-Intermediate

True or False:
1.) My answer

2.) My answer

3.) My answer

4.) My answer

5.) My answer


Multiple Choice:
1.) My answer

2.) My answer

3.) My answer

Questions: I want some correct answers! NOW, please? How old are you?

TUTORIAL said:
EXAMPLE QUIZ
-I'm not quoting anyone for those who may have been confused
This is an example quiz that I'd like for the Intermediate - Advanced scripters. I felt that since the quiz thing was moving fast enough perhaps I could jump-start it.

Yes, this is a real quiz for Intermediate through Advaned and higher level scripters. But since I might not be able to answer some of the questions I ask, this (JUST THIS ONE) quiz will be for you all to answer a couple of my questions :D. The objective is for you all to get a basic idea of a template if you have not or cannot come up with one of your own.

The answers should be in a spoiler box.
-But what to do about cheaters? This quiz is for the quiz-takers and if they decide to cheat, oh well, they don't receive the full effect of the assessment.

Thread Title [template]: [Name of tester, date (MM,DD,YY)] RGSS Quiz - quiz name

Brief Description [template]: Give a brief description of what your quiz covers (i.e. syntax, rules, etc.), what type of questions it has, etc.

# Questions [template]: Number of questions goes here

Difficulty level [template]: Beginner, Intermediate, Advanced, Mastery (refrence)

Due Date [template]: This is optional. Here you can place the due date of all submissions, if you have one.

Roster [template]: Here, the quiz-maker must record everyone taking his/her quiz. Example:
Code:
[b]Roster:[/b]
[list=1][*]Name
[*]Name
[*]Name
[*]And so on[/list]

Description: A small example of an RGSS Quiz for Intermediate - Advance level scripters.

# Questions: 8

Difficulty: Intermediate - Advanced

Code:
[b]Roster:[/b]
[list=1][*]LegACy
[*]eternal_magus
[*]Paradox
[*]Shark_Tooth
[*]sandgolem
[/list]

--------------------------------Quiz Start---------------------------------
True or False:
  1. A constant's value may change if a method assigns it a new value.
    T F
  2. This syntax '::' represents the relationship between a module and a method or class.
    T F
  3. To pass a value into an empty array you must use the following syntax in a method: return arrayname.
    T F
  4. You may dispose of a window at the end of an update method.
    T F
  5. The syntax '@' before a variable name makes it a class variable.
    T F

Multiple Choice:
  1. Which keywords must always be closed out with an 'end'?
    A) def
    B) case
    C) when
    D) All of the above
  2. Which MUST be capitalized?
    A) definitions (def)
    B) class (class)
    C) module (module)
    D) A & B
    E) B & C
    F) A & C
  3. The keyword 'unless means:
    A) until the specified value is met
    B) the opposite of 'if'
    C) monkeys are blow
    D) All of the above

True or False:
  1. F
  2. T
  3. You tell me
  4. T
  5. F (as far as I know)

Multiple of Choice:
  1. D
  2. E
  3. B (I was gonna go with 'C')

Description: Ruby/RGSS Quiz for Intermediate - Advance level scripters.

# Questions: 8 and a short essay.

Difficulty: Intermediate - Advanced

Code:
[b]Posters:[/b]
[list=1][*]Daniel3579
[*]Destined
[/list]

--------------------------------Quiz Start--------------------------------
True or False:
  1. You can only "comment" in your script using '#'.
    T F
  2. The 'alias' command replaces the whole block its used on.
    T F
  3. You can't do the following Array = {}, Array.push(object).
    T F
  4. You can't store a class in instance variable only in a global one.
    T F
  5. Variables can be in "".
    T F

Multiple Choice:

  1. Ruby is..
    A)Compiled
    B)Object Oriented
    C)Interpreted
    D)C&B
  2. In ruby 0 is
    A) True
    B) False
  3. "return" is used to;
    A) return a object to the caller
    B) exit a block
    C) used to define variables
    D) C&B
    E) A&B

    Short Essay
    Explain the differences between attr_accessor, attr_writer, attr_reader.
True or False
1- False, you can also use "=begin" "=end"
2- False, the alias command only edits, it doesn't replace.
3- True, Considering thats not an array, its a hash XP
4- False, you can store a class in a intance variable or a global one.
5- True, yes you actually can, like so "#{@variable}". You can do it with other type of variables too.

Multiple Choice
1- D
2- B
3- E

Description: Ruby/RGSS Quiz for Intermediate-Advanced level scripters.

# Questions: 5, a short essay and a debugger.

Difficulty: Intermediate-Advanced

--------------------------------Quiz Start--------------------------------
True or False:

  1. "Proc" is used to store "objects" that can change. In, short it refers to a object its given.
    T F
  2. Array class is better at handling more information then the Table class.
    T F
Multiple Choice:

  1. Event Commands are read by..
    A)The Interpreter
    B)Game_Event
    C)Scene_Map
    D)A&B
  2. The first block that is called when a script starts is;
    A)Any things thats on the top
    B) Initialize
    C) Main
  3. To make a new line on a print(a function that prints text on screen) like function you use;
    A) /b
    B) /v
    C) /n
    D) /s

    Short Essay
    Tell me what is the WinAPI class. Give me 4 example of what it can be used for.

    Debugger
    Code:
    [COLOR=Blue]class[/COLOR] new_file
    
    [COLOR=Blue]def [/COLOR]initialize
    grocery_list[1] = "Milk"
    add_new("Bread")
    [COLOR=Blue]end[/COLOR]
    
    [COLOR=Blue]def [/COLOR]add_new(item)
    grocery_list.push(item)
    [COLOR=Blue]end[/COLOR]
    
    [COLOR=Blue]end[/COLOR]
True or False
1- True
2- False, "Ruby's Array class does not run efficiently when handling large amounts of data"

Multiple Choice
1- A
2- B
3- C

Short Essay
The WinAPI class is used to access Windows API functions. It can be used for;

- Referring to the keyboard
- Refferring to the mouse
- Refferring to the game window
- Making a new window

Debugger
The first letter after "class" should be capitilized.
class new_file > class New_file or class New_File(is better)

An array must be first defined before used.
grocery_list = []

The variable/array "grocery_list" is a local variable and can't be accessed from
a different block.

Description: Ruby/RGSS Quiz for Intermediate - Advance level scripters.

# of Questions: 10 points.

Difficulty: Intermediate - Advanced


--------------------------------Quiz Start---------------------------------
True of False (5 points)

1) 'for i in 0...5', 'print i', the last i value will be 5
T F
2) 'break' syntax will only exit from a 'loop do' syntax
T F
3) '?' symbol is almost the same as 'if' syntax
T F
4) you can only insert a value to the last, empty position in an array by using .push method
T F
5) 'script hanging' is caused by a never ending looping
T F

Multiple Choice (2 points)
  1. 'super' syntax is generally used for:
    A)refering to the parent class
    B)defining windows x, y, width, etc.
    C)initializing
  2. 'legacy = 1.6', legacy variable is a...
    A)String
    B)Integer
    C)Boolean
    D)Float
    E)None of the above

Essay (3 points)
What's the differences between a hash and an array?

have a nice quiz!!
 
Well, if I'd allow it people to make a topic for every quiz, then this forum will be flooded with quizzes. I could only merge the two quizzes, so it will be shown in the first post.
 
Raziel said:
Well, if I'd allow it people to make a topic for every quiz, then this forum will be flooded with quizzes. I could only merge the two quizzes, so it will be shown in the first post.

Hmm, ther are only handfull of scripters here and only less then that would make quizzes, but i won't argue. I suppose we will have to PM Aran for each time we have quiz.
 
Shark_Tooth said:
No, i understand what you mean, this test pretty much, sorry to say, sucks. The questions are fine but the way they were written is wrong.
I chose it because I know what he meant. He meant the first letter of the word that comes after it.

Edit: I'll make a quiz in a minute. Let me get "inspired" first.

huh? what words? I can always make class A, class B, class C, etc...

Name : LegACy
Date : 6th June
Level : Intermediate
True or False:
1. False, there's =begin and =end
2. False, nah, they're just adding new code to the 'already-exist' script
3. True, array use [] if I'm not mistaken... (I forget things like array in array...)
4. False, altho I don't really understand what do you mean by 'store a class', do you mean things like Game_Actor?....
5. True if you mean string-variable, but you can't do "var" = 1 ...

Multiple Choice:


1.D, or it could be C, if you mean Ruby in general, instead of RGSS
2.B, if I'm not mistaken
3.E

Short Essay
Explain the differences between attr_accessor, attr_writer, attr_reader.

Well, both are a function to a class so the instance variable inside the class can be read or written outside of the class, almost like the return function. attr_reader can only be read, without the ability to change the value inside, while attr_writer can only be written. But attr_accessor can both be written or read...
 
Shark_Tooth said:
Just some spelling errors? I'll fix them now.

Edit: I decided to post the answers now, since both of u made silly mistakes.. and destined has it out for me XD.
I don't see your answers anywhere... am I just not looking very well?

EDIT: Nevermind, I found them.
 
LegACy said:
huh? what words? I can always make class A, class B, class C, etc...

Name : LegACy
Date : 6th June
Level : Intermediate
True or False:
1. False, there's =begin and =end
2. False, nah, they're just adding new code to the 'already-exist' script
3. True, array use [] if I'm not mistaken... (I forget things like array in array...)
4. False, altho I don't really understand what do you mean by 'store a class', do you mean things like Game_Actor?....
5. True if you mean string-variable, but you can't do "var" = 1 ...

Multiple Choice:


1.D, or it could be C, if you mean Ruby in general, instead of RGSS
2.B, if I'm not mistaken
3.E

Short Essay
Explain the differences between attr_accessor, attr_writer, attr_reader.

Well, both are a function to a class so the instance variable inside the class can be read or written outside of the class, almost like the return function. attr_reader can only be read, without the ability to change the value inside, while attr_writer can only be written. But attr_accessor can both be written or read...

Legacy.. You know what i mean. class Whatever.

And yes thats what I mean in number 4.

Btw, you passed with flying colors.
 

Aran

Member

Meâ„¢ said:
Btw.. it is buggin me that there are errors in the answers from the topic creator -_-
If you read th first post I kinda hinted that everything in the example would not be perfect.
 

Aran

Member

Name: Aran
Level: Beginner-Intermediate
Date: 07.06.06
True or False:
You can only "comment" in your script using '#'.
T F, I've seen a comment in my script editor that didn't have the '#'

The 'alias' command replaces the whole block its used on.
T F; true I think, but I don't really understand the question

You can't do the following Array = {}, Array.push(object).
T F

You can't store a class in instance variable only in a global one.
T F

Variables can be in "".
T F

Multiple Choice:

Ruby is..
A)Compiled
B)Object Oriented
C)Interpreted
D)C&B

In ruby 0 is
A) True; I'm guessing ^^
B) False

"return" is used to;
A) return a object to the caller
B) exit a block
C) used to define variables
D) C&B
E) A&B

Short Essay
attr_accessor allows you to read, write and modify the variables from other classes. attr_reader only allows you to read the values of variables outside of the class and attr_writer allows you to write values to variables outside of the class.
 

Aran

Member

Oh, yeah!! This is embarassing -_- (the fact that I forgot all the answers were there) but I will rewrite before I look at the answers.
EDIT: Changed.
EDIT Again: Crap, I highlighted the wrong one for Multiple Choice #2 (XD)
and #3 was a trick question, but I guess Array.push(object) was kind of a clue, hunh?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top