PROGRAM Please help me with this one. Just choose the letter of the correct answer. Thanks in advance.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

C PROGRAM

Please help me with this one. Just choose the letter of the correct answer. Thanks in advance.

Question 32
Fill in the blank of the following code fragment so that it prints out the integers -5 through
and including 5.
for (j = -5;
{
printf("%d ", j);
Select one:
a. j>5
b. j<=5
c. j<5
d. j==5
; j++)
Transcribed Image Text:Question 32 Fill in the blank of the following code fragment so that it prints out the integers -5 through and including 5. for (j = -5; { printf("%d ", j); Select one: a. j>5 b. j<=5 c. j<5 d. j==5 ; j++)
Question 41
Question 22
Question 31
A function named max() that requires two integer arguments as input and returns a whole
number data type value is declared as
Select one:
a. int max(a,b)
b. int max(int a, b)
c. float max(int a, int b)
d. int max(int a, int b)
Assuming an array declaration, int num[5], how will num be passed to a function?
Select one:
a. display(&num);
b. display(num);
c. display(num[5]);
d. display(&num[i]);
Consider the function definition below:
float funct(int a, float b)
{ return (a + b); }
Which of the following is an invalid function call?
Select one:
a. z=2;w=10.4; sum=funct(z,w);
b. funct(3,21);
c. funct(12.8, 4.5);
d. funct(2, 4.5);
Transcribed Image Text:Question 41 Question 22 Question 31 A function named max() that requires two integer arguments as input and returns a whole number data type value is declared as Select one: a. int max(a,b) b. int max(int a, b) c. float max(int a, int b) d. int max(int a, int b) Assuming an array declaration, int num[5], how will num be passed to a function? Select one: a. display(&num); b. display(num); c. display(num[5]); d. display(&num[i]); Consider the function definition below: float funct(int a, float b) { return (a + b); } Which of the following is an invalid function call? Select one: a. z=2;w=10.4; sum=funct(z,w); b. funct(3,21); c. funct(12.8, 4.5); d. funct(2, 4.5);
Expert Solution
steps

Step by step

Solved in 5 steps

Blurred answer
Knowledge Booster
Software products
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education