Desolate Carnage
 
@ Randomtask
Archived | Views: 894 | Replies: 14 | Started 15 years, 4 months ago
 
#563100 | Wed - Jun 24 2009 - 20:37:01
Group: Guest
Posts: 5,799
Joined: May 26 2008
Contact: Offline PM
Points: 109.60
quick question




What will the value of the variable Result be after the following code executes?

int base = 3;
int Result = 0;
Result = pow(base, 3);

1. 3
2. 6
3. 9
4. 27




If A1 is true and A2 is true, which of the following expressions is false?

1. A1 || A2
2. !(A1 || A2)
3. A1 && A2
4. A1 || (!(A2))




Which of the following statements about switch statements in C++ is false?

1. Use of the default keyword is optional.
2. A switch statement cannot end with a break keyword.
3. The allowable data types for the controlling expression are integer or character.
4. A set of curly braces must be placed around the case labels used in the switch statement.

 
#563101 | Wed - Jun 24 2009 - 20:37:18
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
brb freya
 
#563103 | Wed - Jun 24 2009 - 20:44:11
Group: Members
Posts: 74,19840k
Joined: Oct 25 2006
Contact: Offline PM
Points: 6,883.75 $ $
Quote (randomtask @ Wed - Jun 24 2009 - 18:37:18)
brb freya


lol
 
#563104 | Wed - Jun 24 2009 - 20:44:26
Group: Members
Posts: 74,19840k
Joined: Oct 25 2006
Contact: Offline PM
Points: 6,883.75 $ $
absolute value of :nct:
 
#563106 | Wed - Jun 24 2009 - 20:46:31
Group: Members
Posts: 27,88820k
Joined: Aug 31 2006
Contact: Offline PM
Points: 381.50 $
og;dc here
 
#563108 | Wed - Jun 24 2009 - 20:48:30
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
1. pow(base,3)

is 3 to the base power, base is declared as 3, 3^3 = 27

brb mimiron trash
 
#563110 | Wed - Jun 24 2009 - 20:50:23
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
i dont remember what logical operator || is
 
#563111 | Wed - Jun 24 2009 - 20:51:02
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
i want to say its OR
 
#563112 | Wed - Jun 24 2009 - 20:53:30
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
1. A1 || A2
2. !(A1 || A2)
3. A1 && A2
4. A1 || (!(A2))

donno order of the operators or distribution or something for number 2, but it seems one of them must be true and the other must be false
editing poop

This post has been edited by randomtask on Wed - Jun 24 2009 - 20:54:18
 
#563113 | Wed - Jun 24 2009 - 20:54:06
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
actually OR can be true if both are true, was thinking XOR
 
#563114 | Wed - Jun 24 2009 - 20:54:57
Group: Loser
Posts: 8,335
Joined: Mar 1 2008
Contact: Offline PM
Points: 179.40
i am impress

you azn?
 
#563115 | Wed - Jun 24 2009 - 20:55:14
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
1. true or true = true
2. not (true or true) = false
3. true (exclusive and?) true = donno
4. true or not true = true

so proalbey number 2
 
#563116 | Wed - Jun 24 2009 - 20:56:53
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
dont remember shit about switch statements, try google/wikipedia switch statements for that one
 
#563117 | Wed - Jun 24 2009 - 20:58:09
Group: Guest
Posts: 5,799
Joined: May 26 2008
Contact: Offline PM
Points: 109.60
t4t ofc
 
#563118 | Wed - Jun 24 2009 - 20:58:10
Group: Members
Posts: 74,76940k
Joined: Aug 5 2007
Contact: Offline PM
Points: 7,730.25 $
afk mimiron
Archived | Views: 894 | Replies: 14 | General Archive - 2009 Topic List
 
Quit the Internet