SlideShare a Scribd company logo
1 of 1
Download to read offline
What does compile-time type checking do? [6 marks]
a. Allow a single type for each expression
b. Check for type consistency of each operator at compile time
c. Report where in source code the error is found
d. Catch all errors before runtime
Which of the following type errors can be caught at compile time? [6 marks]
a. adding an integer with a string
b. An array being accessed out-of-bound
c. Null pointer dereference
d. A value being casted to an unrelated type
e. Dividing a value by zero

More Related Content

More from amirajsharma

What are the most important issues that an HR team needs to consider.pdf
What are the most important issues that an HR team needs to consider.pdfWhat are the most important issues that an HR team needs to consider.pdf
What are the most important issues that an HR team needs to consider.pdfamirajsharma
 
what if i di t have a partner - Create your own publicprivate keys.pdf
what if i di t have a partner  - Create your own publicprivate keys.pdfwhat if i di t have a partner  - Create your own publicprivate keys.pdf
what if i di t have a partner - Create your own publicprivate keys.pdfamirajsharma
 
What financial statement would you find the following Limited use.pdf
What financial statement would you find the following Limited use.pdfWhat financial statement would you find the following Limited use.pdf
What financial statement would you find the following Limited use.pdfamirajsharma
 
What does HSAM stand forWhat is the range of memory.pdf
What does HSAM stand forWhat is the range of memory.pdfWhat does HSAM stand forWhat is the range of memory.pdf
What does HSAM stand forWhat is the range of memory.pdfamirajsharma
 
What enterprise application integration and Web services are How th.pdf
What enterprise application integration and Web services are How th.pdfWhat enterprise application integration and Web services are How th.pdf
What enterprise application integration and Web services are How th.pdfamirajsharma
 
What does ln greater or equal to ft (LL-1 right) mean[lnft(L1L�rig.pdf
What does ln greater or equal to ft (LL-1 right) mean[lnft(L1L�rig.pdfWhat does ln greater or equal to ft (LL-1 right) mean[lnft(L1L�rig.pdf
What does ln greater or equal to ft (LL-1 right) mean[lnft(L1L�rig.pdfamirajsharma
 
Web Server Python Assignment You will develop a web server that ha.pdf
Web Server Python Assignment You will develop a web server that ha.pdfWeb Server Python Assignment You will develop a web server that ha.pdf
Web Server Python Assignment You will develop a web server that ha.pdfamirajsharma
 
What could be the reason for a very faint colorimetric result in two.pdf
What could be the reason for a very faint colorimetric result in two.pdfWhat could be the reason for a very faint colorimetric result in two.pdf
What could be the reason for a very faint colorimetric result in two.pdfamirajsharma
 
What complication arises in degrees of freedom What distribution .pdf
What complication arises in degrees of freedom What distribution .pdfWhat complication arises in degrees of freedom What distribution .pdf
What complication arises in degrees of freedom What distribution .pdfamirajsharma
 
What are the implications of the authors findings How can this info.pdf
What are the implications of the authors findings How can this info.pdfWhat are the implications of the authors findings How can this info.pdf
What are the implications of the authors findings How can this info.pdfamirajsharma
 
What are the strongest arguments for considering fraternal twins wit.pdf
What are the strongest arguments for considering fraternal twins wit.pdfWhat are the strongest arguments for considering fraternal twins wit.pdf
What are the strongest arguments for considering fraternal twins wit.pdfamirajsharma
 
What are the arguments for and against giving money to the people of.pdf
What are the arguments for and against giving money to the people of.pdfWhat are the arguments for and against giving money to the people of.pdf
What are the arguments for and against giving money to the people of.pdfamirajsharma
 
What are the components of health-related physical fitness Select o.pdf
What are the components of health-related physical fitness Select o.pdfWhat are the components of health-related physical fitness Select o.pdf
What are the components of health-related physical fitness Select o.pdfamirajsharma
 
what am i gettingTrying to find account number. but it gives me.pdf
what am i gettingTrying to find account number. but it gives me.pdfwhat am i gettingTrying to find account number. but it gives me.pdf
what am i gettingTrying to find account number. but it gives me.pdfamirajsharma
 
Wendy es una gerente de proyectos a gran escala. Puede dividir un pr.pdf
Wendy es una gerente de proyectos a gran escala. Puede dividir un pr.pdfWendy es una gerente de proyectos a gran escala. Puede dividir un pr.pdf
Wendy es una gerente de proyectos a gran escala. Puede dividir un pr.pdfamirajsharma
 
When facing the budget x1 + 4x2 = 22, Jennas optimal bundle was (14.pdf
When facing the budget x1 + 4x2 = 22, Jennas optimal bundle was (14.pdfWhen facing the budget x1 + 4x2 = 22, Jennas optimal bundle was (14.pdf
When facing the budget x1 + 4x2 = 22, Jennas optimal bundle was (14.pdfamirajsharma
 
Weather Symbols On the next page you�ll find weather symbols for sig.pdf
Weather Symbols On the next page you�ll find weather symbols for sig.pdfWeather Symbols On the next page you�ll find weather symbols for sig.pdf
Weather Symbols On the next page you�ll find weather symbols for sig.pdfamirajsharma
 
When corporations file for bankruptcy assets are distributed to inve.pdf
When corporations file for bankruptcy assets are distributed to inve.pdfWhen corporations file for bankruptcy assets are distributed to inve.pdf
When corporations file for bankruptcy assets are distributed to inve.pdfamirajsharma
 
When configuring Oracle Virtual Box, the system is non responsive an.pdf
When configuring Oracle Virtual Box, the system is non responsive an.pdfWhen configuring Oracle Virtual Box, the system is non responsive an.pdf
When configuring Oracle Virtual Box, the system is non responsive an.pdfamirajsharma
 
When a patient presents to either the Emergency Room or Primary Care.pdf
When a patient presents to either the Emergency Room or Primary Care.pdfWhen a patient presents to either the Emergency Room or Primary Care.pdf
When a patient presents to either the Emergency Room or Primary Care.pdfamirajsharma
 

More from amirajsharma (20)

What are the most important issues that an HR team needs to consider.pdf
What are the most important issues that an HR team needs to consider.pdfWhat are the most important issues that an HR team needs to consider.pdf
What are the most important issues that an HR team needs to consider.pdf
 
what if i di t have a partner - Create your own publicprivate keys.pdf
what if i di t have a partner  - Create your own publicprivate keys.pdfwhat if i di t have a partner  - Create your own publicprivate keys.pdf
what if i di t have a partner - Create your own publicprivate keys.pdf
 
What financial statement would you find the following Limited use.pdf
What financial statement would you find the following Limited use.pdfWhat financial statement would you find the following Limited use.pdf
What financial statement would you find the following Limited use.pdf
 
What does HSAM stand forWhat is the range of memory.pdf
What does HSAM stand forWhat is the range of memory.pdfWhat does HSAM stand forWhat is the range of memory.pdf
What does HSAM stand forWhat is the range of memory.pdf
 
What enterprise application integration and Web services are How th.pdf
What enterprise application integration and Web services are How th.pdfWhat enterprise application integration and Web services are How th.pdf
What enterprise application integration and Web services are How th.pdf
 
What does ln greater or equal to ft (LL-1 right) mean[lnft(L1L�rig.pdf
What does ln greater or equal to ft (LL-1 right) mean[lnft(L1L�rig.pdfWhat does ln greater or equal to ft (LL-1 right) mean[lnft(L1L�rig.pdf
What does ln greater or equal to ft (LL-1 right) mean[lnft(L1L�rig.pdf
 
Web Server Python Assignment You will develop a web server that ha.pdf
Web Server Python Assignment You will develop a web server that ha.pdfWeb Server Python Assignment You will develop a web server that ha.pdf
Web Server Python Assignment You will develop a web server that ha.pdf
 
What could be the reason for a very faint colorimetric result in two.pdf
What could be the reason for a very faint colorimetric result in two.pdfWhat could be the reason for a very faint colorimetric result in two.pdf
What could be the reason for a very faint colorimetric result in two.pdf
 
What complication arises in degrees of freedom What distribution .pdf
What complication arises in degrees of freedom What distribution .pdfWhat complication arises in degrees of freedom What distribution .pdf
What complication arises in degrees of freedom What distribution .pdf
 
What are the implications of the authors findings How can this info.pdf
What are the implications of the authors findings How can this info.pdfWhat are the implications of the authors findings How can this info.pdf
What are the implications of the authors findings How can this info.pdf
 
What are the strongest arguments for considering fraternal twins wit.pdf
What are the strongest arguments for considering fraternal twins wit.pdfWhat are the strongest arguments for considering fraternal twins wit.pdf
What are the strongest arguments for considering fraternal twins wit.pdf
 
What are the arguments for and against giving money to the people of.pdf
What are the arguments for and against giving money to the people of.pdfWhat are the arguments for and against giving money to the people of.pdf
What are the arguments for and against giving money to the people of.pdf
 
What are the components of health-related physical fitness Select o.pdf
What are the components of health-related physical fitness Select o.pdfWhat are the components of health-related physical fitness Select o.pdf
What are the components of health-related physical fitness Select o.pdf
 
what am i gettingTrying to find account number. but it gives me.pdf
what am i gettingTrying to find account number. but it gives me.pdfwhat am i gettingTrying to find account number. but it gives me.pdf
what am i gettingTrying to find account number. but it gives me.pdf
 
Wendy es una gerente de proyectos a gran escala. Puede dividir un pr.pdf
Wendy es una gerente de proyectos a gran escala. Puede dividir un pr.pdfWendy es una gerente de proyectos a gran escala. Puede dividir un pr.pdf
Wendy es una gerente de proyectos a gran escala. Puede dividir un pr.pdf
 
When facing the budget x1 + 4x2 = 22, Jennas optimal bundle was (14.pdf
When facing the budget x1 + 4x2 = 22, Jennas optimal bundle was (14.pdfWhen facing the budget x1 + 4x2 = 22, Jennas optimal bundle was (14.pdf
When facing the budget x1 + 4x2 = 22, Jennas optimal bundle was (14.pdf
 
Weather Symbols On the next page you�ll find weather symbols for sig.pdf
Weather Symbols On the next page you�ll find weather symbols for sig.pdfWeather Symbols On the next page you�ll find weather symbols for sig.pdf
Weather Symbols On the next page you�ll find weather symbols for sig.pdf
 
When corporations file for bankruptcy assets are distributed to inve.pdf
When corporations file for bankruptcy assets are distributed to inve.pdfWhen corporations file for bankruptcy assets are distributed to inve.pdf
When corporations file for bankruptcy assets are distributed to inve.pdf
 
When configuring Oracle Virtual Box, the system is non responsive an.pdf
When configuring Oracle Virtual Box, the system is non responsive an.pdfWhen configuring Oracle Virtual Box, the system is non responsive an.pdf
When configuring Oracle Virtual Box, the system is non responsive an.pdf
 
When a patient presents to either the Emergency Room or Primary Care.pdf
When a patient presents to either the Emergency Room or Primary Care.pdfWhen a patient presents to either the Emergency Room or Primary Care.pdf
When a patient presents to either the Emergency Room or Primary Care.pdf
 

Recently uploaded

Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

What does compile-time type checking do [6 marks] a. Allow a sing.pdf

  • 1. What does compile-time type checking do? [6 marks] a. Allow a single type for each expression b. Check for type consistency of each operator at compile time c. Report where in source code the error is found d. Catch all errors before runtime Which of the following type errors can be caught at compile time? [6 marks] a. adding an integer with a string b. An array being accessed out-of-bound c. Null pointer dereference d. A value being casted to an unrelated type e. Dividing a value by zero