Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7,8,10,11,12 7. Which of the following C++ expressions is a translation of A. pow((pow(b, 2)-4 . a c), 0.5) (B) pow((pow(b, 2)-4 * a *

image text in transcribed

7,8,10,11,12

7. Which of the following C++ expressions is a translation of A. pow((pow(b, 2)-4 . a "c), 0.5) (B) pow((pow(b, 2)-4 * a * c), l/2) C. pow((pow(b, 2)-4 * a "c), 2/4) D. All: A, B, and C 8. Which of the following statements is NOT correct? A. The remainder (%) operator can be used with double variables. B. These logical operators (&&.ID have the same precedence. C. 5/4yields,and 5 % 4 yields 1. D. (a b ll a !. c) is the same as ((a-b) II (a 13c). 9. Which of the following statements is NOT correcet? A. It is allowed to declare a variable and initialize it in one statement. B. Once a variable is declared and initialized, you can change its value later on. C. The variable declaration tells the compiler to allocate appropriate memory ace for the variable based on its data type. It is allowed to declare two variables with the same name but with different data type. 10. Given int a, b, ci, which of the following assignment statements is NOT valid? A) a b 1 D. c., 2 % 5; 11. Which of the following statements can generate a random integer x, such that 50 Sx s99 2 rand() % 50 +50 rand() % 49 +50 C, rand() % 50 D. rand() % 99 A. 12. Given a string str, the index range of str is: A. between 0 and str.size0 B between 1 and str.size0 C. between 0 and (str.size)-1) D. between 1 and (str.size0-1)

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

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions