Deck 2: Beginning Problem-Solving Concepts for the Computer
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/22
Play
Full screen (f)
Deck 2: Beginning Problem-Solving Concepts for the Computer
1
7.The NOT operator reverses the operand.
True
2
20.In the function LEFT(S,3),the parameter(s):
A)Is LEFT.
B)Are S and 3.
C)Is S.
D)Is 3.
A)Is LEFT.
B)Are S and 3.
C)Is S.
D)Is 3.
B
3
2.Character data includes all numerical data.
False
4
4.An equation and an expression are the same thing.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
5
23.If the operands are both numerical,and the operator is relational,the data type of the resultant is:
A)Numerical.
B)Relational.
C)Logical.
D)None of the above.
A)Numerical.
B)Relational.
C)Logical.
D)None of the above.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
6
15.In the equation: R = A + B * 2 - (C + 4)/ A,the operands are:
A)+,*,-,/
B)A,B,C
C)R
D)=
A)+,*,-,/
B)A,B,C
C)R
D)=
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
7
19.In the expression 4 + 10,the operand(s)
A)are the 4 and the 10.
B)is the +.
C)is 14.
D)none of the above.
A)are the 4 and the 10.
B)is the +.
C)is 14.
D)none of the above.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
8
6.The hierarchy of operations identifies the order in which the operators are executed.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
9
18.The data type of a parameter may be:
A)a constant.
B)a variable.
C)an expression.
D)all of the above.
A)a constant.
B)a variable.
C)an expression.
D)all of the above.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
10
5.A function is a set of instructions to input data into the computer.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
11
21.Mathematical operators include among others:
A)+,-,=
B)>,*,/
C)NOT,MOD,\
D)MOD,*,^
A)+,-,=
B)>,*,/
C)NOT,MOD,\
D)MOD,*,^
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
12
1.Numerical data includes all integer numbers and all real numbers.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
13
22.The resultant of A OR B
A)Is always true.
B)Is always false.
C)Is always true except when A and B are both false.
D)Is always false except when A and B are both false.
A)Is always true.
B)Is always false.
C)Is always true except when A and B are both false.
D)Is always false except when A and B are both false.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
14
In the following expression,what is the order of execution of the operators and the result,given A = 4,B = 5,E = 3,G = True,F = True?
A * B + 7 > E ^ 3 OR NOT G AND F
A)*,+,>,^,NOT,AND : Result is True
B)AND,NOT,>,^,*,+,: Result is False
C)^,*,+,>,NOT,AND,OR : Result is True
D)^,*,+,>,NOT,AND,OR : Result is False
A * B + 7 > E ^ 3 OR NOT G AND F
A)*,+,>,^,NOT,AND : Result is True
B)AND,NOT,>,^,*,+,: Result is False
C)^,*,+,>,NOT,AND,OR : Result is True
D)^,*,+,>,NOT,AND,OR : Result is False
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
15
12.String data:
A)Is group of characters.
B)Can be used to calculate expressions.
C)Contains all other data types.
D)Does not use quotes around the characters.
A)Is group of characters.
B)Can be used to calculate expressions.
C)Contains all other data types.
D)Does not use quotes around the characters.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
16
3.True (T,y,or yes)and False (F,n,or no)are the only values in the logical data set.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
17
8.The = operator is mathematical operator.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
18
14.Evaluate the following equation for R,given A = 4,B = 5,C = 8 is: R = A + B * 2 - (C + 4)/ A
A)11
B)10
C)12
D)15
A)11
B)10
C)12
D)15
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
19
17.The concatenation of "4" and "10" is:
A)410.
B)"410"
C)40.
D)"40".
A)410.
B)"410"
C)40.
D)"40".
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
20
16.An ideal variable name for a client name is:
A)C
B)Cli
C)Client_name
D)CN
A)C
B)Cli
C)Client_name
D)CN
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
21
24.In the following equation under what conditions would PriorityUse be True? PriorityUse = (ValidCard AND TimeNoted)OR (Computer AND GuestCard)
A)ValidCard is True,TimeNoted is True,Computer is True,GuestCard is False.
B)ValidCard is False,TimeNoted is True,Computer is False,GuestCard is True.
C)ValidCard is True,TimeNoted is False,Computer is True,GuestCard is False.
D)All of the above.
A)ValidCard is True,TimeNoted is True,Computer is True,GuestCard is False.
B)ValidCard is False,TimeNoted is True,Computer is False,GuestCard is True.
C)ValidCard is True,TimeNoted is False,Computer is True,GuestCard is False.
D)All of the above.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
22
25.The data type of ZipCodes:
A)Must always be numeric data.
B)Must always be string data.
C)Can be either numeric or string data.
D)None of the above.
A)Must always be numeric data.
B)Must always be string data.
C)Can be either numeric or string data.
D)None of the above.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck