Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 7 (5 points) The expression i +j+-ki is equivalent to which of the following? O ( + j - k) * i (i+j) -

image text in transcribedimage text in transcribedimage text in transcribed

Question 7 (5 points) The expression i +j+-ki is equivalent to which of the following? O ( + j - k) * i (i+j) - (k* i) Oi + ((-k) * i) None of the above (i+j) + (-k * i) Question 8 (5 points) Given: int a = 1; int b; b = a* a++; The result stored in b is: Undefined - the code may not compile or execute or may behave differently when compiled with different compilers Implementation defined - the result will vary depending on what system is used 2 1 Question 9 (5 points) The expression a += b + c is equivalent to: a += (b += c) (a += b) += C a = a + b + c O a = (a + b) + (b + c) Question 10 (5 points) Given: char myString[] = "Hello World"; int idx; int count = %; Which of the following will correctly count the number of non-null characters in the array myString? while(myString[idx]++ != '\0') count++; O while(myString(idx) == '\0') count++; while(myString[idx++] != '\0') count++; O while(myString[idx] == '\0') idx++; Question 11 (5 points) Given: #include #include #include int myFunction(int a, float b) { return a++ + b } int main() { int a = 5; int b = 4; int c = my Function(a,b); printf("dd d ", a,b,c); return ; } What is the value of b displayed by the printf? 4 3 9 5 Question 12 (5 points) According to the standards, the literal: 032767 is: an octal constant a hexadecimal constant a decimal constant

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions