IT SOLUTIONS
 Prism
 Prism Group Home eMag: Prism Edition WEEKLYLESSON MYGROUPSETTINGS
 Message Board
 Prism KB
 Prism To/From To/FromCODEGuides
 Prism Study Test PRESTWOODCERTIFIED Prism Study Test◄╣
 Prism Store PRESTWOODSTORE Store Home Buy Prism Items
 Members Only

Prestwood eMagazine

December Edition
Subscribe now! It's Free!

 ► Prestwood Certified All Groups

Prism Study Test

Practice tests to further your career.

Intro

The following study test contains practice certification questions along with a study link for each question.  These questions were prepared by Mike Prestwood and are intended to stress an important aspect. All our practice questions are intended to prepare you specifically to earn your Prestwood certification and generally for passing any certification test as well as prepare you for professional work.

Features:

• Each question has a popup [Review] link.

17 Questions

Beginner

10 Beginner Level Questions

 Question #1: True or False? In Prism, the base class is TObject. Answer: TrueFalse
 Question #2: True or False?  Given the following code, which MessageBox.Show will display? The True or the False one?`var a, b, c, d: Boolean;`` ``a := False;b := False; c := True; d := False; if Not (a and b) and (c or d) then MessageBox.Show('True') else MessageBox.Show('False');` Answer: TrueFalse
 Question #3: True or False? The default for parameters for methods is by reference. Answer: TrueFalse
 Question #4: True or False? Each class can have one and only one finalizer. Answer: TrueFalse
Question #5: Multiple Choice

The correct syntax for a declaritive variable assignment is?

1.
 `Married : String = 'N';`
2.
 `Dim Married As String = "N"`
3.
 `Married String := "N";`
4.
 `String Married = "N";`
5.
 `Married : String := "N";`
 Question #6: True or False? In Prism, you can use either apostrphes or quotes for string literals and you can embed an apostrophe and quote in either as follows:`MessageBox.Show('He said, "Who''s computer?"');``MessageBox.Show("She said, ""Mike's"".");` Answer: TrueFalse
 Question #7: True or False? In Prism, you can nest multiple line comments as in the following:`{``(*``comment here``*)``}`` ``MessageBox.Show("Or, like this...");``(*``{comment here}*)` Answer: TrueFalse
 Question #8: True or False? In Prism you can declare and make use of same named-different case variables (two distinct variables) as in the following:`MyName : String;MYNAME : String;` Answer: TrueFalse
Question #9: Multiple Choice

Which of the following lines of code will compile?

1.
 `MessageBox.Show("a");MessageBox.Show('b');`
2.
 `MessageBox``  .Show("c");`
3.
 `MessageBox``    .show``     (``    "d"``    );`
4.
 All of the above.
5.
 None of the above.
Question #10: Multiple Choice

Which code fragment uses the correct syntax to declare a constant?

1.
 `const  kPI Double = 3.1459;`
2.
 `const  kPI : Double := 3.1459;`
3.
 `const  kPI : Double = 3.1459;`
4.
 `const  kPI As Double = 3.1459;`
5.
 `const  kPI As Double := 3.1459;`

Intermediate

5 Intermediate Level Questions

 Question #11: True or False? The method name for a class constructor can be anything including Create and CreateFromTable. Answer: TrueFalse
 Question #12: True or False? The traditional name for a finalizer is Finalize but you can call it anything you want. Answer: TrueFalse
Question #13: Multiple Choice

The class visibility specifiers are:

1.
 private, protected, assembly and protected, assembly or protected, and public.
2.
 private, strict private, protected, stict protected, public, and published.
3.
 private, protected, public, and published.
4.
 private, protected, internal, protected internal, and public.
5.
 Private, Protected, Friend, Protected Friend, and Public.
 Question #14: True or False? With regard to member modifiers, member fields support only readonly and implements. They do not support other member modifiers such as virtual, abstract, empty, etc. Answer: TrueFalse
 Question #15: True or False? A single class can inherit from a parent class and implement one "or more" interfaces. Answer: TrueFalse

Question #16: Multiple Choice

You prevent class and method inheritance with what keyword(s)?

1.
 `Robot = public final class(System.Object)``public`` method x(); virtual; sealed;``end;`
2.
 `Robot = public sealed class(System.Object)``public`` method x(); virtual; sealed;``end;`
3.
 `Robot = public final class(System.Object)``public`` method x(); virtual; final;``end;`
4.
 `Robot = public sealed class(System.Object)``public`` method x(); virtual; final;``end;`
5.
 `Robot = public NotOverridable class(Object)``public`` method x(); virtual; NotInheritable;``end;`
 Question #17: True or False? In Prism, inlining is automatically done for you by the JIT compiler for all languages and in general leads to faster code for all programmers whether they are aware of inlining or not. Answer: TrueFalse