1.
Which of the following can be treated as a Boolean expression?
A. an int expression
B. any of these
C. the result of a comparison(such as <or>)
D. a float expression
2. Assuming the variable x contains an integer value what will
the result of the following statement be: if x<0 or
x>=0.
A. True
B. False
C. Sometimes true and sometimes false
D. A "math domain" error will occur
Following is an infix expression.
((A ^ B) ^ C ^ M * W / X ) ^ Y ^ Z
Convert it into postfix and prefix using stack and verify
through binary tree.
Evaluate infix, postfix and prefix with the following
values.
A = 2, B = 2, C = 3,
M = 1, W = 4, X = 8, Y = 1, Z = 3
Unix / Linux
16.
Regular Expression:
Given the following regular expression, provide a description of
the intended match.
^[^A-Z]
17.
Regular Expression:
Given the following regular expression, provide a description of
the intended match.
[^^!]
18.
Regular Expression:
Given the following regular expression, provide a description of
the intended match.
^.\{72\}$
19.
Regular Expression:
Given the following regular expression, provide a description of
the intended match.
[A-Za-z0-9]
20.
Regular Expression:
Given the following regular expression, provide a description of
the...
Evaluate the following logical expression. Choose True if the
expression evaluates to true; choose False if the expression
evaluates to false.
(3 * 5 > 10) || (20 < 15)
True
False
Evaluate the following logical expression. Choose True if the
expression evaluates to true; choose False if the expression
evaluates to false.
"Medium" < "High"
True
False
Evaluate the following logical expression. Choose True if the
expression evaluates to true; choose False if the expression
evaluates to false.
(4...
Consider the following regular expression meta operators:
( ) [ ] { } . * + ? ^ $ | \
For each of the following, give one example of strings which the
regular expression would match.
Describe (colloquially, in a manner that a non-technical person
would understand) the set of strings that the pattern is designed
to match.
Each regular expression is enclosed in the pair of '/'
characters below.
[2 marks each]
(a) /^[a-z][0-9]*\.$/
(b) /([0-9]+)\s\w+\s\1/
Define a regular expression in JAVA for the following
An "Ent" is an at sign '@', followed by one or more
decimal
digits '0' through '9' or uppercase letters 'R' through 'W',
followed by an octothorpe sign '#'
1.Write a new expression similar to the following :
E1=
a+b*c+(d*e+f)*g
a)Convert your expression to postfix
form.
b) Trace the algorithm Postfix on
slide 38 using your expression.
2.Write a new expression similar to the following :
E2= 6*((5+(2+3)*8)+3)
Convert your expression to postfix form.
Trace EvalPostfix algorithm on slide 53 using your expression.
3.Write a program that receives some input values and
a ) Displays these values by pointers,
c)Displays their memory addresses.
Question 1 Which of the following is NOT true about genetic information & gene expression? Genetic information must be copied to RNA RNA is translated at the ribosomes DNA is translated at the ribosomes DNA stores information Question 2 Which statement is INCORRECT about gene expression? Info must be copied to RNA DNA stores informationRNA is translated at the ribosomes DNA is translated at the ribosomes Question 3 Codons are 3 nucleotide sequences that mostly specify an amino acid 5 nucleotide sequences that mostly specify an amino acid amino acids in a protein single nucleotides that...