1. Which of the expression below can be used to calculate whether it is even or odd? if (num % 2 = 0) if (num / 2) O if (num % 2 == 0) if (num / 2 = 1) 2. Which operator has highest precedence among the choice below? * Multiplication (*) Increment (--) Unary (+) AND operator (&8) 3. Function declaration must appear in the code before the function can be called. * TRUE FALSE 4. The return value of the following functions is of type double EXCEPT: * ceil abs sqrt pow
1. Which of the expression below can be used to calculate whether it is even or odd? if (num % 2 = 0) if (num / 2) O if (num % 2 == 0) if (num / 2 = 1) 2. Which operator has highest precedence among the choice below? * Multiplication (*) Increment (--) Unary (+) AND operator (&8) 3. Function declaration must appear in the code before the function can be called. * TRUE FALSE 4. The return value of the following functions is of type double EXCEPT: * ceil abs sqrt pow
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.1: Function And Parameter Declarations
Problem 11E
Related questions
Question
100%
Hi
Solve the quastions plz
![1. Which of the expression below can be used to calculate whether it is even or
odd?
if (num % 2 = 0)
if (num / 2)
O if (num % 2 == 0)
O if (num / 2 = 1)
2. Which operator has highest precedence among the choice below? *
Multiplication (*)
Increment (--)
Unary (+)
AND operator (&&)
3. Function declaration must appear in the code before the function can be
called. *
TRUE
FALSE
4. The return value of the following functions is of type double EXCEPT: *
ceil
abs
sqrt
pow](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2c7f34d6-6c52-4809-80f1-d4dd44fa8cbe%2Ffde7898b-4564-4c96-97f2-7a7dcfd90a3b%2Fzvku6y5_processed.png&w=3840&q=75)
Transcribed Image Text:1. Which of the expression below can be used to calculate whether it is even or
odd?
if (num % 2 = 0)
if (num / 2)
O if (num % 2 == 0)
O if (num / 2 = 1)
2. Which operator has highest precedence among the choice below? *
Multiplication (*)
Increment (--)
Unary (+)
AND operator (&&)
3. Function declaration must appear in the code before the function can be
called. *
TRUE
FALSE
4. The return value of the following functions is of type double EXCEPT: *
ceil
abs
sqrt
pow
![5. If a function needs to change the value of the variable used as an argument,
we should use a call-by-value formal parameter. *
O TRUE
O FALSE
6. A compiler checks that arguments are in the correct logical order. *
O TRUE
FALSE
7. In an object class, the following are examples of behaviors EXCEPT: *
Operations
O Methods
Attribute
Function
8. Which of the following function call binding occurs during compile time? *
O Late binding
Runtime binding
Static binding
Dynamic binding](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2c7f34d6-6c52-4809-80f1-d4dd44fa8cbe%2Ffde7898b-4564-4c96-97f2-7a7dcfd90a3b%2Fvbi13b_processed.png&w=3840&q=75)
Transcribed Image Text:5. If a function needs to change the value of the variable used as an argument,
we should use a call-by-value formal parameter. *
O TRUE
O FALSE
6. A compiler checks that arguments are in the correct logical order. *
O TRUE
FALSE
7. In an object class, the following are examples of behaviors EXCEPT: *
Operations
O Methods
Attribute
Function
8. Which of the following function call binding occurs during compile time? *
O Late binding
Runtime binding
Static binding
Dynamic binding
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage