Review Game Zone
Flash Cards
(current)
Games
Teachers
Search
CP1 - 5.03 - Applying Operators
Test Description: CP1 - 5.03 - Applying Operators
Instructions: Answer all questions to get your test result.
1) North Carolina allows a teenager to have a learner’s permit if he/she is 15 and has had driver’s education training. Consider the intAge and blnHasHadDrivEd variables. Which of the following If conditions would allow a learner’s permit?
A
intAge = 15 And blnHasHadDrivEd = True
B
intAge = 15 Or blnHasHadDrivEd = True
C
intAge greater than 14 Or blnHasHadDrivEd = True
D
intAge less than 16 And blnHasHadDrivEd = True
2) Grades are based on the scale below. Using this scale, which condition(s) would be used to identify students who made an “A” or a “B”? A 93–100 B 85–92 C 78–84 D 70–77 F 0–69
A
dblScore less than 85 And dblScore greater than = 93
B
dblScore = 85 Or dblScore greater than 93
C
dblScore greater than 85 And dblScore greater than = 90
D
dblScore = 85
3) If 5 and 2 are entered in txtNumber1 and txtNumber2, respectively, what will the following code display? intResult = IntNumber1 Mod intNumber2
A
3
B
1
C
5
D
2
4) Grades are based on the scale below. Using this scale, which condition(s) would be used to identify students who made a “B”? A 93–100 B 85–92 C 78–84 D 70–77 F 0–69
A
dblScore greater than 85 And dblScore less than = 93
B
dblScore greater than = 85 And dblScore less than 93
C
dblScore less than 85 And dblScore greater than = 93
D
dblScore = 85 Or dblScore less than 93
5) Which logical condition will determine if the AccountBalance is not less than CreditLimit?
A
AccountBalance greater than = CreditLimit
B
AccountBalance less than greater than CreditLimit
C
AccountBalance less than = CreditLimit
D
AccountBalance = CreditLimit
6) Which logical condition will determine if the AccountBalance is not less than CreditLimit?
A
AccountBalance less than = CreditLimit
B
AccountBalance = CreditLimit
C
AccountBalance greater than = CreditLimit
D
AccountBalance less than greater than CreditLimit
7) Grades are based on the scale below. Using this scale, which condition(s) would be used to identify students who made a “B”? A 93–100 B 85–92 C 78–84 D 70–77 F 0–69
A
dblScore less than 85 And dblScore greater than = 93
B
dblScore = 85 Or dblScore less than 93
C
dblScore greater than 85 And dblScore less than = 93
D
dblScore greater than = 85 And dblScore less than 93
8) If 5 and 2 are entered in txtNumber1 and txtNumber2, respectively, what will the following code display? intResult= intNumber1 Mod intNumber2
A
2
B
1
C
5
D
3
9) Grades are based on the scale below. Using this scale, which condition(s) would be used to identify students who made an “A” or a “B”? A 93–100 B 85–92 C 78–84 D 70–77 F 0–69
A
dblScore = 85 Or dblScore greater than 93
B
dblScore less than 85 And dblScore greater than = 93
C
dblScore greater than = 85
D
dblScore greater than 85 And dblScore greater than = 90
10) North Carolina allows a teenager to have a learner’s permit if he/she is 15 and has had driver’s education training. Consider the intAge and blnHasHadDrivEd variables. Which of the following If conditions would allow a learner’s permit?
A
intAge = 15 And blnHasHadDrivEd = True
B
intAge greater than 14 Or blnHasHadDrivEd = True
C
intAge = 15 Or blnHasHadDrivEd = True
D
intAge less than 16 And blnHasHadDrivEd = True
*select an answer for all questions
Check Results & Get Answers
Play Games with the Questions Above
Teachers: Create FREE classroom games with your questions
Click for more info!
©2007-2024
ReviewGameZone.com
|
About
|
Privacy
|
Contact
|
Terms
|
Site Map
WAIT! Find what you needed?
×
Still Looking for the Answers?
Have Another Question?
Play a Review Game with These Questions?
Want to Make Your Own Test Like This One?