SlideShare ist ein Scribd-Unternehmen logo
1 von 1
JOJI ILAGAN CAREER CENTER FOUNDATION, INC.
                                                    COLLEGE OF BUSINESS AND TOURISM
                                                             Gov. Chavez St., Davao City
Com Ed 6 – Programming with C++
FINAL EXAMINATION                                                                                                                JEFF REY A. COMIDOY
2nd Sem SY 2012-2013                                                                                                               Com Ed Instructor
75 Points
     I.         Choose the letter of the correct answer.
1.   Used to repeat a block of codes being able to have repeatedly executed block of codes belongs to what structure?
     a. Iteration structures              b. Conditional structures      c. Jump statements                      d. Selective structures
2.   The “if” keyword is used to execute a statement or block only if a condition is fulfilled. What structure do this belong?
     a. Iteration structures            b. Conditional structures           c. Jump statements                          d. Selective structures
3.   Using “break” we can leave a loop even if the condition for its end is not fulfilled. It can be used to end an infinite loop. This structure is called…
     a. Iteration structures             b. Conditional structures                    c. Jump statements                            d. Selective structures
4.   The objective of this structure is to check several possible constant values for an expression. What do you call this structure?
     a. Iteration structures               b. Conditional structures         c. Jump statements                    d. Selective structures
5.   In what structure this syntax belongs: for (initialization; condition; increase) statement;
     a. Iteration structures            b. Conditional structures c. Jump statements        d. Selective structures
6.   In what structure this syntax belongs: if (condition) statement
     a. Iteration structures            b. Conditional structures c. Jump statements                                              d. Selective structures
7.   What structure in C++ does this syntax “break” belongs?
     a. Iteration structures           b. Conditional structures                    c. Jump statements                            d. Selective structures
8. In what structure this syntax belongs: switch (expression){case constant1: group of statements 1;...
     a. Iteration structures                b. Conditional structures               c. Jump statements                            d. Selective structures
9.   In what structure this syntax belongs: do statement while (condition);
     a. Iteration structures            b. Conditional structures c. Jump statements                                              d. Selective structures
10. In what structure does “exit” code in C++ belongs?
    a. Iteration structures             b. Conditional structures                   c. Jump statements                            d. Selective structures

     II.         Fill in the blanks. Answer the following C programming source code. (10 pts)


#1____ <conio.h>
#include <iostream.h>
#include <stdio.h>
using namespace std;

void 2____ ()
{
  int n;
  3____(“Enter the starting number “ );
  4____(“%d”, &5____);

     while (n>0)
     {
       6____(“%d, ”, 7____)8____
       --n;
     }

     9____("FIRE!n");
     getch();
     10____ 0;
}


     III.        Application (30 pts)

            A.   Rewrite the Test II code using for loop. (5 pts)
            B.   Rewrite the Test II code using the do-while loop. (5 pts)
            C.   Write the source code in C++ programming format (10 pts)
            D.   Write the C++ code using for loop. (5 pts)
            E.   Write the C++ code using do-while loop. (5 pts)


     IV.         Hands-on (25 pts). Type your Test III-C source code in C++ and run your program. Debug if necessary.

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to computer programming (C)-CSC1205_Lec5_Flow control
Introduction to computer programming (C)-CSC1205_Lec5_Flow controlIntroduction to computer programming (C)-CSC1205_Lec5_Flow control
Introduction to computer programming (C)-CSC1205_Lec5_Flow controlENGWAU TONNY
 
Chapter 4(1)
Chapter 4(1)Chapter 4(1)
Chapter 4(1)TejaswiB4
 
Chapter 2 : Programming with Java Statements
Chapter 2 : Programming with Java StatementsChapter 2 : Programming with Java Statements
Chapter 2 : Programming with Java StatementsIt Academy
 
Control structures in java
Control structures in javaControl structures in java
Control structures in javaVINOTH R
 
Flow of control by deepak lakhlan
Flow of control by deepak lakhlanFlow of control by deepak lakhlan
Flow of control by deepak lakhlanDeepak Lakhlan
 
java programming- control statements
 java programming- control statements java programming- control statements
java programming- control statementsjyoti_lakhani
 
C language control statements
C language  control statementsC language  control statements
C language control statementssuman Aggarwal
 
C UNIT-2 PREPARED Y M V BRAHMANANDA REDDY
C UNIT-2 PREPARED Y M V BRAHMANANDA REDDYC UNIT-2 PREPARED Y M V BRAHMANANDA REDDY
C UNIT-2 PREPARED Y M V BRAHMANANDA REDDYRajeshkumar Reddy
 
Selection Statements in C Programming
Selection Statements in C ProgrammingSelection Statements in C Programming
Selection Statements in C ProgrammingKamal Acharya
 
Switch statement, break statement, go to statement
Switch statement, break statement, go to statementSwitch statement, break statement, go to statement
Switch statement, break statement, go to statementRaj Parekh
 
Control structures ii
Control structures ii Control structures ii
Control structures ii Ahmad Idrees
 
Control structures i
Control structures i Control structures i
Control structures i Ahmad Idrees
 

Was ist angesagt? (20)

Introduction to computer programming (C)-CSC1205_Lec5_Flow control
Introduction to computer programming (C)-CSC1205_Lec5_Flow controlIntroduction to computer programming (C)-CSC1205_Lec5_Flow control
Introduction to computer programming (C)-CSC1205_Lec5_Flow control
 
Chapter 4(1)
Chapter 4(1)Chapter 4(1)
Chapter 4(1)
 
Lecture04(control structure part i)
Lecture04(control structure part i)Lecture04(control structure part i)
Lecture04(control structure part i)
 
Chapter 2 : Programming with Java Statements
Chapter 2 : Programming with Java StatementsChapter 2 : Programming with Java Statements
Chapter 2 : Programming with Java Statements
 
Control structures in java
Control structures in javaControl structures in java
Control structures in java
 
Flow of Control
Flow of ControlFlow of Control
Flow of Control
 
Flow of control by deepak lakhlan
Flow of control by deepak lakhlanFlow of control by deepak lakhlan
Flow of control by deepak lakhlan
 
Control statement
Control statementControl statement
Control statement
 
9 cm604.13
9 cm604.139 cm604.13
9 cm604.13
 
java programming- control statements
 java programming- control statements java programming- control statements
java programming- control statements
 
C language control statements
C language  control statementsC language  control statements
C language control statements
 
C Constructs (C Statements & Loop)
C Constructs (C Statements & Loop)C Constructs (C Statements & Loop)
C Constructs (C Statements & Loop)
 
Chap 5(decision making-branching)
Chap 5(decision making-branching)Chap 5(decision making-branching)
Chap 5(decision making-branching)
 
C UNIT-2 PREPARED Y M V BRAHMANANDA REDDY
C UNIT-2 PREPARED Y M V BRAHMANANDA REDDYC UNIT-2 PREPARED Y M V BRAHMANANDA REDDY
C UNIT-2 PREPARED Y M V BRAHMANANDA REDDY
 
Selection Statements in C Programming
Selection Statements in C ProgrammingSelection Statements in C Programming
Selection Statements in C Programming
 
Control statement-Selective
Control statement-SelectiveControl statement-Selective
Control statement-Selective
 
Switch statement, break statement, go to statement
Switch statement, break statement, go to statementSwitch statement, break statement, go to statement
Switch statement, break statement, go to statement
 
Control structures ii
Control structures ii Control structures ii
Control structures ii
 
Control structures i
Control structures i Control structures i
Control structures i
 
Control statements in java
Control statements in javaControl statements in java
Control statements in java
 

Andere mochten auch

CIO Niort : l'orientation après la classe de seconde
CIO Niort : l'orientation après la classe de secondeCIO Niort : l'orientation après la classe de seconde
CIO Niort : l'orientation après la classe de secondemrichard79
 
Gerak transalasi, rotasi, & benda tegar
Gerak transalasi, rotasi, & benda tegarGerak transalasi, rotasi, & benda tegar
Gerak transalasi, rotasi, & benda tegarEko Supriyadi
 
Analysis and design of algorithms part 4
Analysis and design of algorithms part 4Analysis and design of algorithms part 4
Analysis and design of algorithms part 4Deepak John
 
Lectins in gene therapy
Lectins in gene therapyLectins in gene therapy
Lectins in gene therapySakar Ahmed
 
Dojo instructor
Dojo instructorDojo instructor
Dojo instructorpramod3399
 
Things builders must know for flats marketing
Things builders must know for flats marketingThings builders must know for flats marketing
Things builders must know for flats marketingRealEstateMktgNashik
 
Lets benefit from Ramadan
Lets benefit from RamadanLets benefit from Ramadan
Lets benefit from RamadanMuQeet
 
хоббит
хоббитхоббит
хоббитannut77
 

Andere mochten auch (11)

CIO Niort : l'orientation après la classe de seconde
CIO Niort : l'orientation après la classe de secondeCIO Niort : l'orientation après la classe de seconde
CIO Niort : l'orientation après la classe de seconde
 
Green computing
Green computingGreen computing
Green computing
 
Manual de psicologia
Manual de psicologiaManual de psicologia
Manual de psicologia
 
Gerak transalasi, rotasi, & benda tegar
Gerak transalasi, rotasi, & benda tegarGerak transalasi, rotasi, & benda tegar
Gerak transalasi, rotasi, & benda tegar
 
Analysis and design of algorithms part 4
Analysis and design of algorithms part 4Analysis and design of algorithms part 4
Analysis and design of algorithms part 4
 
Lectins in gene therapy
Lectins in gene therapyLectins in gene therapy
Lectins in gene therapy
 
Dojo instructor
Dojo instructorDojo instructor
Dojo instructor
 
Go China! - Dr. Ike Sagie
Go China! - Dr. Ike SagieGo China! - Dr. Ike Sagie
Go China! - Dr. Ike Sagie
 
Things builders must know for flats marketing
Things builders must know for flats marketingThings builders must know for flats marketing
Things builders must know for flats marketing
 
Lets benefit from Ramadan
Lets benefit from RamadanLets benefit from Ramadan
Lets benefit from Ramadan
 
хоббит
хоббитхоббит
хоббит
 

Ähnlich wie Joji ilagan career center foundation6final

Ähnlich wie Joji ilagan career center foundation6final (20)

00 Com Ed 6 Midterm
00 Com Ed 6 Midterm00 Com Ed 6 Midterm
00 Com Ed 6 Midterm
 
1z0-808-certification-questions-sample
1z0-808-certification-questions-sample1z0-808-certification-questions-sample
1z0-808-certification-questions-sample
 
java vs C#
java vs C#java vs C#
java vs C#
 
Java Programming.pdf
Java Programming.pdfJava Programming.pdf
Java Programming.pdf
 
Difference between Java and c#
Difference between Java and c#Difference between Java and c#
Difference between Java and c#
 
C#unit4
C#unit4C#unit4
C#unit4
 
Core java
Core javaCore java
Core java
 
c# at f#
c# at f#c# at f#
c# at f#
 
C# AND F#
C# AND F#C# AND F#
C# AND F#
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
E5
E5E5
E5
 
Java Quiz
Java QuizJava Quiz
Java Quiz
 
Absolute Java 5e Savitch Test Bank
Absolute Java 5e Savitch Test BankAbsolute Java 5e Savitch Test Bank
Absolute Java 5e Savitch Test Bank
 
C# interview-questions
C# interview-questionsC# interview-questions
C# interview-questions
 
Claguage 110226222227-phpapp02
Claguage 110226222227-phpapp02Claguage 110226222227-phpapp02
Claguage 110226222227-phpapp02
 
CSharp Presentation
CSharp PresentationCSharp Presentation
CSharp Presentation
 
Repair dagstuhl jan2017
Repair dagstuhl jan2017Repair dagstuhl jan2017
Repair dagstuhl jan2017
 
C++ c#
C++ c#C++ c#
C++ c#
 
Bt0067 c programming and data structures 1
Bt0067 c programming and data structures 1Bt0067 c programming and data structures 1
Bt0067 c programming and data structures 1
 
C# programming constructors
C# programming  constructorsC# programming  constructors
C# programming constructors
 

Mehr von bluejayjunior

Com ed 2 prelim exam
Com ed 2 prelim examCom ed 2 prelim exam
Com ed 2 prelim exambluejayjunior
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3bluejayjunior
 
Com ed 4 prelim exam
Com ed 4 prelim examCom ed 4 prelim exam
Com ed 4 prelim exambluejayjunior
 
Chapter1.0 database management system
Chapter1.0 database management systemChapter1.0 database management system
Chapter1.0 database management systembluejayjunior
 
01 Database Management (re-uploaded)
01 Database Management (re-uploaded)01 Database Management (re-uploaded)
01 Database Management (re-uploaded)bluejayjunior
 
03 using the internet (re-uploaded)
03 using the internet (re-uploaded)03 using the internet (re-uploaded)
03 using the internet (re-uploaded)bluejayjunior
 
03 using the internet b (re-upload)
03 using the internet b (re-upload)03 using the internet b (re-upload)
03 using the internet b (re-upload)bluejayjunior
 
02 internet history and growth (re-upload)
02 internet history and growth (re-upload)02 internet history and growth (re-upload)
02 internet history and growth (re-upload)bluejayjunior
 
01 intro to internet (re-upload)
01 intro to internet (re-upload)01 intro to internet (re-upload)
01 intro to internet (re-upload)bluejayjunior
 
Chapter 02 Computer Languages (re-upload)
Chapter 02 Computer Languages (re-upload)Chapter 02 Computer Languages (re-upload)
Chapter 02 Computer Languages (re-upload)bluejayjunior
 
Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)bluejayjunior
 
C++ control structure
C++ control structureC++ control structure
C++ control structurebluejayjunior
 
reference for finals
reference for finalsreference for finals
reference for finalsbluejayjunior
 
Joji ilagan career center foundation8mid
Joji ilagan career center foundation8midJoji ilagan career center foundation8mid
Joji ilagan career center foundation8midbluejayjunior
 
Joji ilagan career center foundation8pre2
Joji ilagan career center foundation8pre2Joji ilagan career center foundation8pre2
Joji ilagan career center foundation8pre2bluejayjunior
 

Mehr von bluejayjunior (20)

Com ed 2 prelim exam
Com ed 2 prelim examCom ed 2 prelim exam
Com ed 2 prelim exam
 
Introhtml 2
Introhtml 2Introhtml 2
Introhtml 2
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
Com ed 4 prelim exam
Com ed 4 prelim examCom ed 4 prelim exam
Com ed 4 prelim exam
 
Chapter1.0 database management system
Chapter1.0 database management systemChapter1.0 database management system
Chapter1.0 database management system
 
01 Database Management (re-uploaded)
01 Database Management (re-uploaded)01 Database Management (re-uploaded)
01 Database Management (re-uploaded)
 
03 using the internet (re-uploaded)
03 using the internet (re-uploaded)03 using the internet (re-uploaded)
03 using the internet (re-uploaded)
 
03 using the internet b (re-upload)
03 using the internet b (re-upload)03 using the internet b (re-upload)
03 using the internet b (re-upload)
 
02 internet history and growth (re-upload)
02 internet history and growth (re-upload)02 internet history and growth (re-upload)
02 internet history and growth (re-upload)
 
01 intro to internet (re-upload)
01 intro to internet (re-upload)01 intro to internet (re-upload)
01 intro to internet (re-upload)
 
Chapter 02 Computer Languages (re-upload)
Chapter 02 Computer Languages (re-upload)Chapter 02 Computer Languages (re-upload)
Chapter 02 Computer Languages (re-upload)
 
Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)
 
C++ control structure
C++ control structureC++ control structure
C++ control structure
 
internet security 2
internet security 2internet security 2
internet security 2
 
reference for finals
reference for finalsreference for finals
reference for finals
 
Internet Secutiry
Internet SecutiryInternet Secutiry
Internet Secutiry
 
Com Ed 8 Finals
Com Ed 8 FinalsCom Ed 8 Finals
Com Ed 8 Finals
 
Joji ilagan career center foundation8mid
Joji ilagan career center foundation8midJoji ilagan career center foundation8mid
Joji ilagan career center foundation8mid
 
Joji ilagan career center foundation8pre2
Joji ilagan career center foundation8pre2Joji ilagan career center foundation8pre2
Joji ilagan career center foundation8pre2
 
Com Ed 6 Prelim
Com Ed 6 PrelimCom Ed 6 Prelim
Com Ed 6 Prelim
 

Kürzlich hochgeladen

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 

Kürzlich hochgeladen (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 

Joji ilagan career center foundation6final

  • 1. JOJI ILAGAN CAREER CENTER FOUNDATION, INC. COLLEGE OF BUSINESS AND TOURISM Gov. Chavez St., Davao City Com Ed 6 – Programming with C++ FINAL EXAMINATION JEFF REY A. COMIDOY 2nd Sem SY 2012-2013 Com Ed Instructor 75 Points I. Choose the letter of the correct answer. 1. Used to repeat a block of codes being able to have repeatedly executed block of codes belongs to what structure? a. Iteration structures b. Conditional structures c. Jump statements d. Selective structures 2. The “if” keyword is used to execute a statement or block only if a condition is fulfilled. What structure do this belong? a. Iteration structures b. Conditional structures c. Jump statements d. Selective structures 3. Using “break” we can leave a loop even if the condition for its end is not fulfilled. It can be used to end an infinite loop. This structure is called… a. Iteration structures b. Conditional structures c. Jump statements d. Selective structures 4. The objective of this structure is to check several possible constant values for an expression. What do you call this structure? a. Iteration structures b. Conditional structures c. Jump statements d. Selective structures 5. In what structure this syntax belongs: for (initialization; condition; increase) statement; a. Iteration structures b. Conditional structures c. Jump statements d. Selective structures 6. In what structure this syntax belongs: if (condition) statement a. Iteration structures b. Conditional structures c. Jump statements d. Selective structures 7. What structure in C++ does this syntax “break” belongs? a. Iteration structures b. Conditional structures c. Jump statements d. Selective structures 8. In what structure this syntax belongs: switch (expression){case constant1: group of statements 1;... a. Iteration structures b. Conditional structures c. Jump statements d. Selective structures 9. In what structure this syntax belongs: do statement while (condition); a. Iteration structures b. Conditional structures c. Jump statements d. Selective structures 10. In what structure does “exit” code in C++ belongs? a. Iteration structures b. Conditional structures c. Jump statements d. Selective structures II. Fill in the blanks. Answer the following C programming source code. (10 pts) #1____ <conio.h> #include <iostream.h> #include <stdio.h> using namespace std; void 2____ () { int n; 3____(“Enter the starting number “ ); 4____(“%d”, &5____); while (n>0) { 6____(“%d, ”, 7____)8____ --n; } 9____("FIRE!n"); getch(); 10____ 0; } III. Application (30 pts) A. Rewrite the Test II code using for loop. (5 pts) B. Rewrite the Test II code using the do-while loop. (5 pts) C. Write the source code in C++ programming format (10 pts) D. Write the C++ code using for loop. (5 pts) E. Write the C++ code using do-while loop. (5 pts) IV. Hands-on (25 pts). Type your Test III-C source code in C++ and run your program. Debug if necessary.