Applications for WQT Challenge. Rules Individual – everybody answers. 1 point is awarded for each...

Preview:

Citation preview

Applications for WQTApplications for WQTChallengeChallenge

RulesRules

IndividualIndividual – everybody answers. 1 point is – everybody answers. 1 point is awarded for each team member with the awarded for each team member with the correct response.correct response.

TeamTeam – Each team provides an answer. Each – Each team provides an answer. Each team with the correct response gets two points.team with the correct response gets two points.

Team RaceTeam Race – First team with the correct – First team with the correct response gets 2 points.response gets 2 points.

The Team with the most points wins. There The Team with the most points wins. There are three types of questions:are three types of questions:

The winning team will have their The winning team will have their names etched on a names etched on a virtual trophyvirtual trophy..

CategoriesCategories

Macros and UDFsMacros and UDFs..

AutoCADAutoCAD

Pop CulturePop Culture

Know your InstructorKnow your Instructor..

There are four categories of questions:There are four categories of questions:

Question 1Question 1What is the Visual Basic keyword that What is the Visual Basic keyword that starts a macro?starts a macro?

A.A. FunctionFunction

B.B. MacroMacro

C.C. MethodMethod

D.D. SubSub

AnswerAnswer

A.A. FunctionFunction

B.B. MacroMacro

C.C. MethodMethod

D.D. SubSub

Question 2Question 2

In AutoCAD, identify the In AutoCAD, identify the three techniques for three techniques for adding drawing objects adding drawing objects to a to a selection setselection set..

AnswerAnswer

1.1. Selecting objects Selecting objects individually,individually,

2.2. Enclosing objects in a Enclosing objects in a selection windowselection window, and, and

3.3. Touching objects with a Touching objects with a crossing windowcrossing window..

Question 3Question 3What is/are Alan’s middle name(s)?What is/are Alan’s middle name(s)?

A.A. BuddyBuddy

B.B. Farnsworth WellingtonFarnsworth Wellington

C.C. JackJack

D.D. Santos AlvarezSantos Alvarez

E.E. ScottScott

AnswerAnswer

A.A. BuddyBuddy

B.B. Farnsworth WellingtonFarnsworth Wellington

C.C. JackJack

D.D. Santos AlvarezSantos Alvarez

E.E. ScottScott

Question 4Question 4

Explain how you can add VB code to Explain how you can add VB code to an existing macro to perform new an existing macro to perform new actions without knowing the VB actions without knowing the VB code for the necessary statements?code for the necessary statements?

AnswerAnswer

Use the macro recorder to Use the macro recorder to record the new actions into a record the new actions into a new macro, then cut and paste new macro, then cut and paste the new code into the end of the new code into the end of the original macro.the original macro.

Question 5Question 5

What does this UDF do?What does this UDF do?

Function foo(x, y)Function foo(x, y)

If (x < y) then If (x < y) then

foo = xfoo = x

elseelse

foo = yfoo = y

End IfEnd If

End FunctionEnd Function

AnswerAnswer

It returns the manimum of the two It returns the manimum of the two values passed into it. values passed into it.

Question 6Question 6

Name two AutoCAD Name two AutoCAD commands that require you to commands that require you to create a selection set.create a selection set.

AnswerAnswer

Any two of:Any two of: TrimTrim ExtendExtend CopyCopy MoveMove Make BlockMake Block RotateRotate EraseErase OthersOthers

Question 7Question 7In AutoCAD, what plotting scale would you use if In AutoCAD, what plotting scale would you use if your drawing limits were (30,40) and the drawing your drawing limits were (30,40) and the drawing area on the paper was 10” by 6”? Drawing units area on the paper was 10” by 6”? Drawing units represent metres. Your goal is to make the represent metres. Your goal is to make the drawing appear as large as possible.drawing appear as large as possible.

A.A. 1 : 118.11 : 118.1

B.B. 1 : 157.51 : 157.5

C.C. 1 : 196.91 : 196.9

D.D. 1 : 315.01 : 315.0

AnswerAnswer

A.A. 1 : 118.11 : 118.1

B.B. 1 : 157.51 : 157.5

C.C. 1 : 196.91 : 196.9

D.D. 1 : 315.01 : 315.0

Question 8Question 8

What command(s) can you What command(s) can you issue at the keyboard to view issue at the keyboard to view all of your drawing objects.all of your drawing objects.

AnswerAnswer

Zoom, AllZoom, All

OrOr

zz <enter> <enter> aa <enter><enter>

Question 9Question 9Consider the image shown below. Write down the Consider the image shown below. Write down the exact steps you would use to draw the line, given exact steps you would use to draw the line, given that the two circles are already there.that the two circles are already there.

AnswerAnswer

1.1. Line <enter>Line <enter>

2.2. tan object snap, then select near the tan object snap, then select near the tangent point on one circletangent point on one circle

3.3. tan object snap, then select near the tan object snap, then select near the tangent point on the other circletangent point on the other circle

Question 10Question 10

Nicole Polizzi is better known as .Nicole Polizzi is better known as .

A.A. Alicia KeysAlicia Keys

B.B. Lindsay LohanLindsay Lohan

C.C. River DancerRiver Dancer

D.D. Snooki Snooki

E.E. The Petulant PimpThe Petulant Pimp

AnswerAnswer

A.A. Alicia KeysAlicia Keys

B.B. Lindsay LohanLindsay Lohan

C.C. River DancerRiver Dancer

D.D. SnookiSnooki

E.E. The Petulant PimpThe Petulant Pimp

Question 11Question 11Consider the two AutoCAD drawings below. The Consider the two AutoCAD drawings below. The second one can be created from the first one using a second one can be created from the first one using a single trim command. Which objects need to be single trim command. Which objects need to be selected as the cutting edges? Select them from the selected as the cutting edges? Select them from the list below.list below.

A.A. Left circleLeft circle

B.B. Right circleRight circle

C.C. Centre circleCentre circle

D.D. Upper-left lineUpper-left line

E.E. Upper-right Upper-right lineline

F.F. Lower-left lineLower-left line

G.G. Lower-right Lower-right lineline

AnswerAnswer

A. Left circleA. Left circle

B. Right circleB. Right circle

C. Centre circleC. Centre circleD.D. Upper-left lineUpper-left line

E.E. Upper-right lineUpper-right line

F.F. Lower-left lineLower-left line

G.G. Lower-right lineLower-right line

Question 12Question 12Consider the two AutoCAD drawings below. The Consider the two AutoCAD drawings below. The second one can be created from the first one using a second one can be created from the first one using a single trim command. Which objects need to be single trim command. Which objects need to be selected as the cutting edges? Select them from the selected as the cutting edges? Select them from the list below.list below.

A.A. Left circleLeft circle

B.B. Right circleRight circle

C.C. Centre circleCentre circle

D.D. Upper-left lineUpper-left line

E.E. Upper-right Upper-right lineline

F.F. Lower-left lineLower-left line

G.G. Lower-right Lower-right lineline

AnswerAnswer

A. Left circleA. Left circle

B. Right circleB. Right circleC.C. Centre circleCentre circle

D.D. Upper-left lineUpper-left line

E.E. Upper-right lineUpper-right line

F.F. Lower-left lineLower-left line

G.G. Lower-right lineLower-right line

Question 13Question 13In Visual Basic, the function that is used to In Visual Basic, the function that is used to display a Yes/No question to the user, has display a Yes/No question to the user, has the following syntax:the following syntax:

A.A. Input(Input(PromptPrompt))

B.B. InputBox(InputBox(PromptPrompt, , vbButtonCodevbButtonCode) )

C.C. MsgBox(MsgBox(MessageMessage, , vbButtonCodevbButtonCode) )

D.D. PromptBox(PromptBox(MessageMessage))

E.E. TextBox(TextBox(MessageMessage, , vbButtonCodevbButtonCode))

AnswerAnswer

A.A. Input(Input(PromptPrompt))

B.B. InputBox(Prompt, vbButtonCode)InputBox(Prompt, vbButtonCode)

C.C. MsgBox(MsgBox(MessageMessage, , vbButtonCodevbButtonCode

D.D. PromptBox(PromptBox(MessageMessage))

E.E. TextBox(TextBox(MessageMessage, , vbButtonCode)vbButtonCode)

Question 14Question 14Nadya Suleman is more frequently Nadya Suleman is more frequently known as,known as,

A.A. American Secretary of StateAmerican Secretary of State

B.B. Coach of the Canadian Women’s Hockey Coach of the Canadian Women’s Hockey TeamTeam

C.C. Last Commander of the space shuttle Last Commander of the space shuttle EndeavorEndeavor

D.D. Olympic Gold Medalist for Gymnastics Olympic Gold Medalist for Gymnastics (Russia)(Russia)

E.E. OctomomOctomom

AnswerAnswer

A.A. American Secretary of State Barbara American Secretary of State Barbara WaltersWalters

B.B. Coach of the Canadian Women’s Hockey Coach of the Canadian Women’s Hockey TeamTeam

C.C. Last Commander of the space shuttle Last Commander of the space shuttle EndeavorEndeavor

D. Olympic Gold Medalist for Gymnastics D. Olympic Gold Medalist for Gymnastics (Russia)(Russia)

E.E. OctomomOctomom

Question 15Question 15

A linetype scale of 5 means,A linetype scale of 5 means,

A.A. the linetype pattern the linetype pattern repeats once ever 5 units.repeats once ever 5 units.

B.B. the linetype pattern the linetype pattern repeats 5 times every 1 repeats 5 times every 1 unit.unit.

C.C. None of the aboveNone of the above

AnswerAnswer

A.A. the linetype pattern the linetype pattern repeats once ever 5 units.repeats once ever 5 units.

B. the linetype pattern B. the linetype pattern repeats 5 times every 1 repeats 5 times every 1 unit.unit.

C. None of the aboveC. None of the above

Question 16Question 16Fill in the blank. In AutoCAD, Fill in the blank. In AutoCAD, objects on objects on ______ are visible but cannot be edited.______ are visible but cannot be edited.

A.A. a frozen layera frozen layer

B.B. a locked layera locked layer

C.C. a layer that is turned offa layer that is turned off

D.D. layer 0layer 0

E.E. None of the aboveNone of the above

AnswerAnswer

A. a frozen layerA. a frozen layer

B.B. a locked layera locked layer

C. a layer that is turned C. a layer that is turned offoff

D. layer 0D. layer 0

E. None of the aboveE. None of the above

Question 17Question 17The image below shows a The image below shows a dimension. What is the name of the dimension. What is the name of the lines pointed at by the red arrows?lines pointed at by the red arrows?

A.A. A A dimensiondimension line line

B.B. An An extensionextension line line

C.C. An An offsetoffset line line

D.D. A A stylestyle line line

AnswerAnswer

A. A A. A dimensiondimension line line

B.B. An An extensionextension line line

C. An C. An offsetoffset line line

D. A D. A stylestyle line line

Question 18Question 18What former high-ranking member of What former high-ranking member of the United States Government shot the United States Government shot his friend in the face?his friend in the face?

A.A. Condoleezza RiceCondoleezza Rice

B.B. George W. BushGeorge W. Bush

C.C. Richard B. CheneyRichard B. Cheney

D.D. Scott McClellanScott McClellan

AnswerAnswer

A.A. Condoleezza Condoleezza RiceRice

B.B. George W. BushGeorge W. Bush

C.C. Richard B. Richard B. CheneyCheney

D.D. Scott McClellanScott McClellan

Question 19Question 19Consider the following chunk of VB code. Consider the following chunk of VB code. Which statement is unnecessary?Which statement is unnecessary?

Range("C3").Select ActiveCell.FormulaR1C1 = "Flow Data" Range("C3").Select Range("B3:D3").Select Selection.Merge

AnswerAnswer

Range("C3").SelectRange("C3").SelectActiveCell.FormulaR1C1 = "Flow Data“ActiveCell.FormulaR1C1 = "Flow Data“Range("C3").SelectRange("B3:D3").SelectRange("B3:D3").SelectSelection.MergeSelection.Merge

Question 20Question 20Consider the UDF below. What grade would Consider the UDF below. What grade would be returned if be returned if =FinalGrade(65,99)=FinalGrade(65,99) was was entered into an entered into an ExcelExcel worksheet cell? worksheet cell?

Function FinalGrade(TermMark, FinalExam) If (FinalExam < 50) Then FinalGrade = "F" ElseIf (TermMark < 70) Then FinalGrade = “D" ElseIf (FinalExam + TermMark >= 150) Then FinalGrade = "A" Else FinalGrade = "B" End IfEnd Function

AnswerAnswer

““D”D”

Question 21Question 21Who was voted off of Who was voted off of Dancing With The StarsDancing With The Stars this week?this week?

A.A. Chris JerichoChris Jericho

B.B. Kirstie AlleyKirstie Alley

C.C. Mike Mike SorrentinoSorrentino

D.D. Wendy Wendy WilliamsWilliams

AnswerAnswer

A. Chris JerichoA. Chris Jericho

B. Kirstie AlleyB. Kirstie Alley

C. Mike C. Mike SorrentinoSorrentino

D. D. Wendy Wendy WilliamsWilliams

Question 21Question 21Which 3 things below are true about Which 3 things below are true about Alan?Alan?

A.A. He swears regularly in front of his parents.He swears regularly in front of his parents.

B.B. He first shaved his head because of lice.He first shaved his head because of lice.

C.C. He owns a vintage crack pipe.He owns a vintage crack pipe.

D.D. He once had a handlebar moustache for 2.5 He once had a handlebar moustache for 2.5 years.years.

E.E. He enjoys the song stylings of Alanis He enjoys the song stylings of Alanis Morissette.Morissette.

F.F. He dislikes tequila.He dislikes tequila.

G.G. He is a Toronto Maple Leafs fan.He is a Toronto Maple Leafs fan.

AnswerAnswerA.A. He swears regularly in front of his parents.He swears regularly in front of his parents.

B.B. He first shaved his head because of lice. He first shaved his head because of lice.

C.C. He owns a vintage crack pipe. He owns a vintage crack pipe.

D.D. He once had a handlebar moustache for 2.5 He once had a handlebar moustache for 2.5 years.years.

E.E. He enjoys the song stylings of Alanis He enjoys the song stylings of Alanis Morissette.Morissette.

F.F. He dislikes tequila. He dislikes tequila.

G.G. He is a Toronto Maple Leafs fan.He is a Toronto Maple Leafs fan.

Tie-Breaker QuestionTie-Breaker Question

How many minutes in total were How many minutes in total were scheduled by OC for CoSc 127 scheduled by OC for CoSc 127 this semester (including labs)?this semester (including labs)?

Closest without going over, wins.Closest without going over, wins.

AnswerAnswer

20802080

Recommended