SlideShare a Scribd company logo
Please answer the following questions 1 through 30
QUESTION 1
The function ____ returns the absolute value of its double-precision argument.
double ceil(double)
double fmod(double)
double fabs(double)
double abs(double)
10 points
QUESTION 2
char codes[] = "sample"; sets aside ____ elements in the codes array.
5
6
7
8
10 points
QUESTION 3
A ____ is the beginning of a final function that is used as a placeholder for the final function
until the function is completed.
function header
function declarator
prototype
stub
10 points
QUESTION 4
Global variables are only meaningful when used in expressions or statements inside the function
that declares them.
True
False
10 points
QUESTION 5
The items enclosed within the parentheses in a function call statement are called ____ of the
function.
parameters
formal parameters
arguments
formal arguments
10 points
QUESTION 6
Each item in an array is called a(n) ____ of the array.
subscript
variable
index
element
10 points
QUESTION 7
Each C function is a separate and independent entity with its own parameters and variables.
True
False
10 points
QUESTION 8
A(n) ____ is a data type with two main characteristics: (1) its values can be decomposed into
individual data elements, and (2) it provides an access scheme for locating individual data
elements.
data structure
scalar data type
array
atomic data type
10 points
QUESTION 9
A variable with a ____ scope is simply one that has had storage locations set aside for it by a
declaration statement made within a function body.
function
module
local
global
10 points
QUESTION 10
The four available storage classes are called auto, static, extern, and ____.
stack
intern
void
register
10 points
QUESTION 11
___ is an example of a function header line.
float roi(int, double);
printf("%f", roi(3, amt));
float roi( int yrs, double rate);
float roi( int yrs, double rate)
10 points
QUESTION 12
To return a value, a function must use a(n) ____ statement.
exit
throw
break
return
10 points
QUESTION 13
A(n) ____ variable, is a variable whose value cannot be further subdivided or separated into a
built-in data type.
data structure
scalar
array
class
10 points
QUESTION 14
For one-dimensional arrays, the offset to the element with index i is calculated as ____.
Offset = i * the size of the array
Offset = i * the size of the subscript
Offset = i * the size of a component + 1
Offset = i * the size of an individual element
10 points
QUESTION 15
A function that calls another function is referred to as the ____.
function prototype
called function
calling function
function declarator
10 points
QUESTION 16
As long as a function has not returned control to its calling function, all automatic variables local
to the function are “alive”; that is, storage for the variables is available.
True
False
10 points
QUESTION 17
Global variables can be used by all functions in a program that are physically placed after the
global variable declaration.
True
False
10 points
QUESTION 18
The scope of a variable can be thought of as the space within the program where the variable is
valid.
True
False
10 points
QUESTION 19
The function ____ returns the natural logarithm of its argument.
double exp(double)
double log(double)
double log10(double)
double fmod(double)
10 points
QUESTION 20
The ____ of a variable defines the location within a program where that variable can be used.
storage class
time dimension
scope
data type
10 points
QUESTION 21
A basic rule of testing states that each function should only be tested in a program in which all
other functions are known to be correct.
True
False
10 points
QUESTION 22
The purpose of the ____ storage class is to extend the scope of a global variable declared in one
source code file into another source code file.
auto
static
extern
register
10 points
QUESTION 23
___ is an example of a function prototype.
float roi(int, double);
printf("%f", roi(3, amt));
roi(3, amt);
float roi( int yrs, double rate)
10 points
QUESTION 24
The parentheses in a return statement are required.
True
False
10 points
QUESTION 25
The purpose of a ____ is to operate on the passed data and return, at most, one value directly
back to the calling function.
function declarator
prototype
function body
function header
10 points
QUESTION 26
All ____ arrays are created and destroyed each time the function they are local to is called and
completes its execution.
global
static
auto
extern
10 points
QUESTION 27
Pass by value is also referred to as pass by reference.
True
False
10 points
QUESTION 28
____ shows a correct array initialization statement.
char codes[6] = ['s', 'a', 'm', 'p', 'l', 'e'];
char codes[] = ('s', 'a', 'm', 'p', 'l', 'e');
char codes[] = "sample";
char codes[*] = {'s', 'a', 'm', 'p', 'l', 'e'};
10 points
QUESTION 29
In a one-dimensional array in C, the first element has an index of ____.
NULL
-1
0
1
10 points
QUESTION 30
If no class description is included in the declaration statement of a local variable, the variable is
automatically assigned to the ____ class.
auto
static
extern
register
double ceil(double)
double fmod(double)
double fabs(double)
double abs(double)
Solution
Question 1:
double fabs(double)
Question 2:
7
Question 3:
Stub
Question 4:
False
Question 5:
Arguments

More Related Content

Similar to Please answer the following questions 1 through 30QUESTION 1The .pdf

PSPC-UNIT-4.pdf
PSPC-UNIT-4.pdfPSPC-UNIT-4.pdf
PSPC-UNIT-4.pdf
ArshiniGubbala3
 
1183 c-interview-questions-and-answers
1183 c-interview-questions-and-answers1183 c-interview-questions-and-answers
1183 c-interview-questions-and-answers
Akash Gawali
 
functions- best.pdf
functions- best.pdffunctions- best.pdf
functions- best.pdf
MikialeTesfamariam
 
1.6 Function.pdf
1.6 Function.pdf1.6 Function.pdf
1.6 Function.pdf
NirmalaShinde3
 
Function
Function Function
C function
C functionC function
C function
thirumalaikumar3
 
chapter-8-function-overloading.pdf
chapter-8-function-overloading.pdfchapter-8-function-overloading.pdf
chapter-8-function-overloading.pdf
study material
 
Functional Objects in Ruby: new horizons – Valentine Ostakh
Functional Objects in Ruby: new horizons  – Valentine OstakhFunctional Objects in Ruby: new horizons  – Valentine Ostakh
Functional Objects in Ruby: new horizons – Valentine Ostakh
Ruby Meditation
 
User Defined Functions in C
User Defined Functions in CUser Defined Functions in C
User Defined Functions in C
RAJ KUMAR
 
FUNCTIONS, CLASSES AND OBJECTS.pptx
FUNCTIONS, CLASSES AND OBJECTS.pptxFUNCTIONS, CLASSES AND OBJECTS.pptx
FUNCTIONS, CLASSES AND OBJECTS.pptx
DeepasCSE
 
Presentation 2 (1).pdf
Presentation 2 (1).pdfPresentation 2 (1).pdf
Presentation 2 (1).pdf
ziyadaslanbey
 
Python-review1.ppt
Python-review1.pptPython-review1.ppt
Python-review1.ppt
snowflakebatch
 
Python-review1.pdf
Python-review1.pdfPython-review1.pdf
Python-review1.pdf
paijitk
 
4th unit full
4th unit full4th unit full
4th unit full
Murali Saktheeswaran
 
04. WORKING WITH FUNCTIONS-2 (1).pptx
04. WORKING WITH FUNCTIONS-2 (1).pptx04. WORKING WITH FUNCTIONS-2 (1).pptx
04. WORKING WITH FUNCTIONS-2 (1).pptx
Manas40552
 
Recursion in c
Recursion in cRecursion in c
Recursion in c
Saket Pathak
 
Python-review1.ppt
Python-review1.pptPython-review1.ppt
Python-review1.ppt
jaba kumar
 

Similar to Please answer the following questions 1 through 30QUESTION 1The .pdf (20)

PSPC-UNIT-4.pdf
PSPC-UNIT-4.pdfPSPC-UNIT-4.pdf
PSPC-UNIT-4.pdf
 
1183 c-interview-questions-and-answers
1183 c-interview-questions-and-answers1183 c-interview-questions-and-answers
1183 c-interview-questions-and-answers
 
functions- best.pdf
functions- best.pdffunctions- best.pdf
functions- best.pdf
 
1.6 Function.pdf
1.6 Function.pdf1.6 Function.pdf
1.6 Function.pdf
 
Function
Function Function
Function
 
C function
C functionC function
C function
 
functions
functionsfunctions
functions
 
chapter-8-function-overloading.pdf
chapter-8-function-overloading.pdfchapter-8-function-overloading.pdf
chapter-8-function-overloading.pdf
 
Savitch ch 05
Savitch ch 05Savitch ch 05
Savitch ch 05
 
Functional Objects in Ruby: new horizons – Valentine Ostakh
Functional Objects in Ruby: new horizons  – Valentine OstakhFunctional Objects in Ruby: new horizons  – Valentine Ostakh
Functional Objects in Ruby: new horizons – Valentine Ostakh
 
User Defined Functions in C
User Defined Functions in CUser Defined Functions in C
User Defined Functions in C
 
FUNCTIONS, CLASSES AND OBJECTS.pptx
FUNCTIONS, CLASSES AND OBJECTS.pptxFUNCTIONS, CLASSES AND OBJECTS.pptx
FUNCTIONS, CLASSES AND OBJECTS.pptx
 
Presentation 2 (1).pdf
Presentation 2 (1).pdfPresentation 2 (1).pdf
Presentation 2 (1).pdf
 
Python-review1.ppt
Python-review1.pptPython-review1.ppt
Python-review1.ppt
 
Savitch ch 04
Savitch ch 04Savitch ch 04
Savitch ch 04
 
Python-review1.pdf
Python-review1.pdfPython-review1.pdf
Python-review1.pdf
 
4th unit full
4th unit full4th unit full
4th unit full
 
04. WORKING WITH FUNCTIONS-2 (1).pptx
04. WORKING WITH FUNCTIONS-2 (1).pptx04. WORKING WITH FUNCTIONS-2 (1).pptx
04. WORKING WITH FUNCTIONS-2 (1).pptx
 
Recursion in c
Recursion in cRecursion in c
Recursion in c
 
Python-review1.ppt
Python-review1.pptPython-review1.ppt
Python-review1.ppt
 

More from barristeressaseren71

Create a test case for Euler problem 3The prime factors of 13195 .pdf
Create a test case for Euler problem 3The prime factors of 13195 .pdfCreate a test case for Euler problem 3The prime factors of 13195 .pdf
Create a test case for Euler problem 3The prime factors of 13195 .pdf
barristeressaseren71
 
Construct a program that sorts a list (numbers or strings) then sear.pdf
Construct a program that sorts a list (numbers or strings) then sear.pdfConstruct a program that sorts a list (numbers or strings) then sear.pdf
Construct a program that sorts a list (numbers or strings) then sear.pdf
barristeressaseren71
 
Circular Flow of Economic ActivityYour instructor will assign you .pdf
Circular Flow of Economic ActivityYour instructor will assign you .pdfCircular Flow of Economic ActivityYour instructor will assign you .pdf
Circular Flow of Economic ActivityYour instructor will assign you .pdf
barristeressaseren71
 
b. What construction activities would be regulated under the CWA Why.pdf
b. What construction activities would be regulated under the CWA Why.pdfb. What construction activities would be regulated under the CWA Why.pdf
b. What construction activities would be regulated under the CWA Why.pdf
barristeressaseren71
 
Why are cells growing in a colony on solid media likely to be in many.pdf
Why are cells growing in a colony on solid media likely to be in many.pdfWhy are cells growing in a colony on solid media likely to be in many.pdf
Why are cells growing in a colony on solid media likely to be in many.pdf
barristeressaseren71
 
Which of the following statements is (are) trueI Gross and net .pdf
Which of the following statements is (are) trueI  Gross and net .pdfWhich of the following statements is (are) trueI  Gross and net .pdf
Which of the following statements is (are) trueI Gross and net .pdf
barristeressaseren71
 
Where is [Cl] normally highest, inside or outside of a cell How do.pdf
Where is [Cl] normally highest, inside or outside of a cell How do.pdfWhere is [Cl] normally highest, inside or outside of a cell How do.pdf
Where is [Cl] normally highest, inside or outside of a cell How do.pdf
barristeressaseren71
 
What is the difference between the personal contact model of communi.pdf
What is the difference between the personal contact model of communi.pdfWhat is the difference between the personal contact model of communi.pdf
What is the difference between the personal contact model of communi.pdf
barristeressaseren71
 
Volcanic eruptions affect many populated areas. Which of the followi.pdf
Volcanic eruptions affect many populated areas. Which of the followi.pdfVolcanic eruptions affect many populated areas. Which of the followi.pdf
Volcanic eruptions affect many populated areas. Which of the followi.pdf
barristeressaseren71
 
The following information, based on the 123118 Annual Report to Sha.pdf
The following information, based on the 123118 Annual Report to Sha.pdfThe following information, based on the 123118 Annual Report to Sha.pdf
The following information, based on the 123118 Annual Report to Sha.pdf
barristeressaseren71
 
Question 2 Since Gullivers travels is growing rapidly there is a ne.pdf
Question 2 Since Gullivers travels is growing rapidly there is a ne.pdfQuestion 2 Since Gullivers travels is growing rapidly there is a ne.pdf
Question 2 Since Gullivers travels is growing rapidly there is a ne.pdf
barristeressaseren71
 
132017 Genetics Problems 1. Round shape is dominant to wrinkl.pdf
132017 Genetics Problems 1. Round shape is dominant to wrinkl.pdf132017 Genetics Problems 1. Round shape is dominant to wrinkl.pdf
132017 Genetics Problems 1. Round shape is dominant to wrinkl.pdf
barristeressaseren71
 
Name and describe (in your own words) the four sources of variance w.pdf
Name and describe (in your own words) the four sources of variance w.pdfName and describe (in your own words) the four sources of variance w.pdf
Name and describe (in your own words) the four sources of variance w.pdf
barristeressaseren71
 
M2 Discussion Hyperthermophiles “Like It Hot”33 unread replies.44.pdf
M2 Discussion Hyperthermophiles “Like It Hot”33 unread replies.44.pdfM2 Discussion Hyperthermophiles “Like It Hot”33 unread replies.44.pdf
M2 Discussion Hyperthermophiles “Like It Hot”33 unread replies.44.pdf
barristeressaseren71
 
1. Input the data into Minitab system. 2. Summarizing Gender find.pdf
1. Input the data into Minitab system. 2. Summarizing Gender find.pdf1. Input the data into Minitab system. 2. Summarizing Gender find.pdf
1. Input the data into Minitab system. 2. Summarizing Gender find.pdf
barristeressaseren71
 
Label the following figure which shows the evolutionary relationship .pdf
Label the following figure which shows the evolutionary relationship .pdfLabel the following figure which shows the evolutionary relationship .pdf
Label the following figure which shows the evolutionary relationship .pdf
barristeressaseren71
 
Interestingly enough, the Fibonacci numbers appear in quite unexpecte.pdf
Interestingly enough, the Fibonacci numbers appear in quite unexpecte.pdfInterestingly enough, the Fibonacci numbers appear in quite unexpecte.pdf
Interestingly enough, the Fibonacci numbers appear in quite unexpecte.pdf
barristeressaseren71
 
In what order did life progress on EarthSmall protocells; archaea.pdf
In what order did life progress on EarthSmall protocells; archaea.pdfIn what order did life progress on EarthSmall protocells; archaea.pdf
In what order did life progress on EarthSmall protocells; archaea.pdf
barristeressaseren71
 
In regards to the findings of Darwin on the intellectual differences.pdf
In regards to the findings of Darwin on the intellectual differences.pdfIn regards to the findings of Darwin on the intellectual differences.pdf
In regards to the findings of Darwin on the intellectual differences.pdf
barristeressaseren71
 
I know that flavin adenine dinucleotide (FAD) and nicotinamide adeni.pdf
I know that flavin adenine dinucleotide (FAD) and nicotinamide adeni.pdfI know that flavin adenine dinucleotide (FAD) and nicotinamide adeni.pdf
I know that flavin adenine dinucleotide (FAD) and nicotinamide adeni.pdf
barristeressaseren71
 

More from barristeressaseren71 (20)

Create a test case for Euler problem 3The prime factors of 13195 .pdf
Create a test case for Euler problem 3The prime factors of 13195 .pdfCreate a test case for Euler problem 3The prime factors of 13195 .pdf
Create a test case for Euler problem 3The prime factors of 13195 .pdf
 
Construct a program that sorts a list (numbers or strings) then sear.pdf
Construct a program that sorts a list (numbers or strings) then sear.pdfConstruct a program that sorts a list (numbers or strings) then sear.pdf
Construct a program that sorts a list (numbers or strings) then sear.pdf
 
Circular Flow of Economic ActivityYour instructor will assign you .pdf
Circular Flow of Economic ActivityYour instructor will assign you .pdfCircular Flow of Economic ActivityYour instructor will assign you .pdf
Circular Flow of Economic ActivityYour instructor will assign you .pdf
 
b. What construction activities would be regulated under the CWA Why.pdf
b. What construction activities would be regulated under the CWA Why.pdfb. What construction activities would be regulated under the CWA Why.pdf
b. What construction activities would be regulated under the CWA Why.pdf
 
Why are cells growing in a colony on solid media likely to be in many.pdf
Why are cells growing in a colony on solid media likely to be in many.pdfWhy are cells growing in a colony on solid media likely to be in many.pdf
Why are cells growing in a colony on solid media likely to be in many.pdf
 
Which of the following statements is (are) trueI Gross and net .pdf
Which of the following statements is (are) trueI  Gross and net .pdfWhich of the following statements is (are) trueI  Gross and net .pdf
Which of the following statements is (are) trueI Gross and net .pdf
 
Where is [Cl] normally highest, inside or outside of a cell How do.pdf
Where is [Cl] normally highest, inside or outside of a cell How do.pdfWhere is [Cl] normally highest, inside or outside of a cell How do.pdf
Where is [Cl] normally highest, inside or outside of a cell How do.pdf
 
What is the difference between the personal contact model of communi.pdf
What is the difference between the personal contact model of communi.pdfWhat is the difference between the personal contact model of communi.pdf
What is the difference between the personal contact model of communi.pdf
 
Volcanic eruptions affect many populated areas. Which of the followi.pdf
Volcanic eruptions affect many populated areas. Which of the followi.pdfVolcanic eruptions affect many populated areas. Which of the followi.pdf
Volcanic eruptions affect many populated areas. Which of the followi.pdf
 
The following information, based on the 123118 Annual Report to Sha.pdf
The following information, based on the 123118 Annual Report to Sha.pdfThe following information, based on the 123118 Annual Report to Sha.pdf
The following information, based on the 123118 Annual Report to Sha.pdf
 
Question 2 Since Gullivers travels is growing rapidly there is a ne.pdf
Question 2 Since Gullivers travels is growing rapidly there is a ne.pdfQuestion 2 Since Gullivers travels is growing rapidly there is a ne.pdf
Question 2 Since Gullivers travels is growing rapidly there is a ne.pdf
 
132017 Genetics Problems 1. Round shape is dominant to wrinkl.pdf
132017 Genetics Problems 1. Round shape is dominant to wrinkl.pdf132017 Genetics Problems 1. Round shape is dominant to wrinkl.pdf
132017 Genetics Problems 1. Round shape is dominant to wrinkl.pdf
 
Name and describe (in your own words) the four sources of variance w.pdf
Name and describe (in your own words) the four sources of variance w.pdfName and describe (in your own words) the four sources of variance w.pdf
Name and describe (in your own words) the four sources of variance w.pdf
 
M2 Discussion Hyperthermophiles “Like It Hot”33 unread replies.44.pdf
M2 Discussion Hyperthermophiles “Like It Hot”33 unread replies.44.pdfM2 Discussion Hyperthermophiles “Like It Hot”33 unread replies.44.pdf
M2 Discussion Hyperthermophiles “Like It Hot”33 unread replies.44.pdf
 
1. Input the data into Minitab system. 2. Summarizing Gender find.pdf
1. Input the data into Minitab system. 2. Summarizing Gender find.pdf1. Input the data into Minitab system. 2. Summarizing Gender find.pdf
1. Input the data into Minitab system. 2. Summarizing Gender find.pdf
 
Label the following figure which shows the evolutionary relationship .pdf
Label the following figure which shows the evolutionary relationship .pdfLabel the following figure which shows the evolutionary relationship .pdf
Label the following figure which shows the evolutionary relationship .pdf
 
Interestingly enough, the Fibonacci numbers appear in quite unexpecte.pdf
Interestingly enough, the Fibonacci numbers appear in quite unexpecte.pdfInterestingly enough, the Fibonacci numbers appear in quite unexpecte.pdf
Interestingly enough, the Fibonacci numbers appear in quite unexpecte.pdf
 
In what order did life progress on EarthSmall protocells; archaea.pdf
In what order did life progress on EarthSmall protocells; archaea.pdfIn what order did life progress on EarthSmall protocells; archaea.pdf
In what order did life progress on EarthSmall protocells; archaea.pdf
 
In regards to the findings of Darwin on the intellectual differences.pdf
In regards to the findings of Darwin on the intellectual differences.pdfIn regards to the findings of Darwin on the intellectual differences.pdf
In regards to the findings of Darwin on the intellectual differences.pdf
 
I know that flavin adenine dinucleotide (FAD) and nicotinamide adeni.pdf
I know that flavin adenine dinucleotide (FAD) and nicotinamide adeni.pdfI know that flavin adenine dinucleotide (FAD) and nicotinamide adeni.pdf
I know that flavin adenine dinucleotide (FAD) and nicotinamide adeni.pdf
 

Recently uploaded

Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 

Recently uploaded (20)

Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 

Please answer the following questions 1 through 30QUESTION 1The .pdf

  • 1. Please answer the following questions 1 through 30 QUESTION 1 The function ____ returns the absolute value of its double-precision argument. double ceil(double) double fmod(double) double fabs(double) double abs(double) 10 points QUESTION 2 char codes[] = "sample"; sets aside ____ elements in the codes array. 5 6 7 8 10 points QUESTION 3 A ____ is the beginning of a final function that is used as a placeholder for the final function until the function is completed. function header function declarator prototype stub 10 points QUESTION 4 Global variables are only meaningful when used in expressions or statements inside the function that declares them. True False 10 points QUESTION 5 The items enclosed within the parentheses in a function call statement are called ____ of the function. parameters formal parameters arguments
  • 2. formal arguments 10 points QUESTION 6 Each item in an array is called a(n) ____ of the array. subscript variable index element 10 points QUESTION 7 Each C function is a separate and independent entity with its own parameters and variables. True False 10 points QUESTION 8 A(n) ____ is a data type with two main characteristics: (1) its values can be decomposed into individual data elements, and (2) it provides an access scheme for locating individual data elements. data structure scalar data type array atomic data type 10 points QUESTION 9 A variable with a ____ scope is simply one that has had storage locations set aside for it by a declaration statement made within a function body. function module local global 10 points QUESTION 10 The four available storage classes are called auto, static, extern, and ____. stack intern void
  • 3. register 10 points QUESTION 11 ___ is an example of a function header line. float roi(int, double); printf("%f", roi(3, amt)); float roi( int yrs, double rate); float roi( int yrs, double rate) 10 points QUESTION 12 To return a value, a function must use a(n) ____ statement. exit throw break return 10 points QUESTION 13 A(n) ____ variable, is a variable whose value cannot be further subdivided or separated into a built-in data type. data structure scalar array class 10 points QUESTION 14 For one-dimensional arrays, the offset to the element with index i is calculated as ____. Offset = i * the size of the array Offset = i * the size of the subscript Offset = i * the size of a component + 1 Offset = i * the size of an individual element 10 points QUESTION 15 A function that calls another function is referred to as the ____. function prototype called function calling function
  • 4. function declarator 10 points QUESTION 16 As long as a function has not returned control to its calling function, all automatic variables local to the function are “alive”; that is, storage for the variables is available. True False 10 points QUESTION 17 Global variables can be used by all functions in a program that are physically placed after the global variable declaration. True False 10 points QUESTION 18 The scope of a variable can be thought of as the space within the program where the variable is valid. True False 10 points QUESTION 19 The function ____ returns the natural logarithm of its argument. double exp(double) double log(double) double log10(double) double fmod(double) 10 points QUESTION 20 The ____ of a variable defines the location within a program where that variable can be used. storage class time dimension scope data type 10 points QUESTION 21 A basic rule of testing states that each function should only be tested in a program in which all
  • 5. other functions are known to be correct. True False 10 points QUESTION 22 The purpose of the ____ storage class is to extend the scope of a global variable declared in one source code file into another source code file. auto static extern register 10 points QUESTION 23 ___ is an example of a function prototype. float roi(int, double); printf("%f", roi(3, amt)); roi(3, amt); float roi( int yrs, double rate) 10 points QUESTION 24 The parentheses in a return statement are required. True False 10 points QUESTION 25 The purpose of a ____ is to operate on the passed data and return, at most, one value directly back to the calling function. function declarator prototype function body function header 10 points QUESTION 26 All ____ arrays are created and destroyed each time the function they are local to is called and completes its execution. global
  • 6. static auto extern 10 points QUESTION 27 Pass by value is also referred to as pass by reference. True False 10 points QUESTION 28 ____ shows a correct array initialization statement. char codes[6] = ['s', 'a', 'm', 'p', 'l', 'e']; char codes[] = ('s', 'a', 'm', 'p', 'l', 'e'); char codes[] = "sample"; char codes[*] = {'s', 'a', 'm', 'p', 'l', 'e'}; 10 points QUESTION 29 In a one-dimensional array in C, the first element has an index of ____. NULL -1 0 1 10 points QUESTION 30 If no class description is included in the declaration statement of a local variable, the variable is automatically assigned to the ____ class. auto static extern register double ceil(double) double fmod(double) double fabs(double) double abs(double) Solution
  • 7. Question 1: double fabs(double) Question 2: 7 Question 3: Stub Question 4: False Question 5: Arguments