The document contains a 20 question quiz about code design and programming concepts. It covers topics like control structures, flowcharts, variables names, and programming languages. Correct answers are scored and an overall score is calculated at the end of each section.
In this slide I described all control which is used by the Html Form Controls such as checkbox , radio , text , drop down list / select , file upload and html output controls.
PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. As of January 2013, PHP was installed on more than 240 million websites (39% of those sampled) and 2.1 million web servers.[4] Originally created by Rasmus Lerdorf in 1994,[5] the reference implementation of PHP (powered by the Zend Engine) is now produced by The PHP Group.[6] While PHP originally stood for Personal Home Page,[5] it now stands for PHP: Hypertext Preprocessor, which is a recursive backronym
In this slide I described all control which is used by the Html Form Controls such as checkbox , radio , text , drop down list / select , file upload and html output controls.
PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. As of January 2013, PHP was installed on more than 240 million websites (39% of those sampled) and 2.1 million web servers.[4] Originally created by Rasmus Lerdorf in 1994,[5] the reference implementation of PHP (powered by the Zend Engine) is now produced by The PHP Group.[6] While PHP originally stood for Personal Home Page,[5] it now stands for PHP: Hypertext Preprocessor, which is a recursive backronym
Have you heard the words : "Why would anyone hack me?". Security is a serious problem that is often taken for granted and neglected by the product owners in favour of reliability and availability. In addition there are not many developers that are aware of the threats and the long-term harms that a simple attack could do. This session covers the most common web security threats on Web applications like XSS, XSRF, XSI, tampering, leakage, SQL injection and suggests mitigation solutions and coding guidelines.
Aspecte esențiale privitoare la limbajul de marcare HTML5 (o prezentare pentru un hackathon Web destinat elevilor de liceu).
Essential aspects about the HTML5 markup language (a Web hackathon presentation for high-school students).
Have you heard the words : "Why would anyone hack me?". Security is a serious problem that is often taken for granted and neglected by the product owners in favour of reliability and availability. In addition there are not many developers that are aware of the threats and the long-term harms that a simple attack could do. This session covers the most common web security threats on Web applications like XSS, XSRF, XSI, tampering, leakage, SQL injection and suggests mitigation solutions and coding guidelines.
Aspecte esențiale privitoare la limbajul de marcare HTML5 (o prezentare pentru un hackathon Web destinat elevilor de liceu).
Essential aspects about the HTML5 markup language (a Web hackathon presentation for high-school students).
From http://wiki.directi.com/x/AgAa - This is a 24 slide internal presentation covering virtues of Automated Testing vs Manual Testing. Inkeeping with our agile adoption this presentation covers various advantages (11 to be specific) obtained in using TDD and Automated Testing as opposed to Manual Testing
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docxrafbolet0
Spring 2014 CSCI 111 Final exam � of �1 6
1. (2 points) Flip over this test. On the back of this test write your name in the upper, left-hand
corner.
2. (2 points) What are the four parts of the compiling process (just give me 4 words, not a
paragraph).
3. (4 points) Which of the four steps of the compiling process occurs only once, regardless of
the number of source files your application has?
4. (4 points) Write a line of code that causes the preprocessor to generate an error.
5. (4 points) Write a line of code that causes the compiler to generate an error.
6. (5 points) Describe how you could incorrectly compile the joust project to cause the linker to
generate an error.
7. (5 points) Given:
1 float* fp;
2 //...
3 float pi;
4 pi=*(314 + fp);
Rewrite line 4 using array subscript notation.
Spring 2014 CSCI 111 Final exam � of �2 6
8. (5 points) Given:
1 float arr[100];
2 for(int x=0; x<100; ++x)
3 arr[x]=100-x;
What does the following expression print out?
cout << *arr << endl;
9. (14 points) Given:
int a=0;
int b=6;
int x=0;
Circle each if-expression that evaluates to true:
A) if(b)
B) if(x)
C) if(a=b==6)
D) if(a=b==5)
E) if(a=b=5)
F) if(a=x=0)
G) if(a=x==0)
Spring 2014 CSCI 111 Final exam � of �3 6
10. (10 points) Given:
1 #include<iostream>
2 using namespace std;
3
4 int main()
5 {
6 int x;
7 cout << "Enter a number greater than 10" << endl;
8 while ( x < 10 )
9 {
10 cin >> x;
11 }
12 return 0;
13 }
This program compiles just fine, and sometimes it runs as expected. But sometimes when you
run it, it exits immediately after printing "Enter a number greater than 10". That is, the program
doesn't pause for you to enter a number. Why are you getting this inconsistent behavior?
11. (4 points) What is the output of the following:
int x=4;
int y=3;
A) cout << x / y << endl;
B) cout << x % y << endl;
C) cout << x << "%" << y << endl;
D) cout << "x" << '%' << 'y' << endl;
Spring 2014 CSCI 111 Final exam � of �4 6
12. (16 points) What is the type of the expression. That is, what is the kind of thing that each
expression evaluates to. For example:
3 + 4 integer
You may assume that the variable a has been declared as an integer.
A. a + 4
B. a = 4
C. 3.14 + 4.49
D. 3 + 3.14
E. 'a'
F. cout << a
G. new float[30]
H. new float
Spring 2014 CSCI 111 Final exam � of �5 6
13. (5 points) Write a for-loop that prints out the numbers between 1 and 100 that are evenly
divisible by three.
14. (5 points) Write a while-loop that prints out the numbers between 1 and 100 that are evenly
divisible by three.
15. (5 points) Write a do-while-loop that prints out the numbers between 1 and 100 that are
evenly divisible by three.
Spring 2014 CSCI 111 Final exam � of �6 6
16. (10 points) Given:
1 #include<iostream>
2
3 class Willow {
4 publi.
Name _______________________________ Class time __________.docxrosemarybdodson23141
Name: _______________________________ Class time: __________
Prewriting Instructions for Paper 2 (Final Paper due 4/22)
1. Your choices for Paper 2 are posted on blackboard and also listed below.
2. Choose 1 of these paper options. Notice that each choice also mentions the type of paper (comparison, etc.) My paper choice is: _________________________: paper type: _______________.
3. Read the related essay(s) in your Research and Composition textbook.
4. Thursday: write a tentative thesis for paper 2 (one sentence): ______________________________________________________________________________________________________________________________________________________________________________________________________________________.
5. Thursday: write 5 questions that you will need to answer through research to write this paper (for ex. What is the divorce rate for 2012?) Write legibly please.
1.
2.
3.
4.
5.
6. Thursday: go to the library and use the databases to locate at least three sources that will likely give you the information to answer the five questions above. At least one should be a book, at least one should be a database article. In addition, you may use your textbook, internet, or even refer to a film. Write down the all of the information about each source. You will need this information for a works cited page later or to locate the article and book again. You do not need to answer the questions right away, but if you do find the answers, take notes or make a copy of the source.
Source 1: ____________________________________________________________________________________________________________________________________________________________
Source 2: ____________________________________________________________________________________________________________________________________________________________
Source 3: ____________________________________________________________________________________________________________________________________________________________
7. Have any new questions come to mind? What are they? Write them here:
8. Have you revised your thesis? What is it? ___________________________________
_____________________________________________________________________.
9. Write a tentative first paragraph to paper 2 (this includes your thesis):
10. Turn this in Tuesday 3/25 in exchange for your last Q exercise, M&M Color Distribution.
***You need this prewriting exercise completed to receive your instructions and data for this last Q exercise and parts of this exercise will count for your attendance in a week or so.
See next page
Writing Assignment 2 Choices due on or before 4/22
Here are your choices for Writing Assignment 2 due 4/22. Additional research is required for all choices. Two visuals, tables or figures, are required. Your paper will be in MLA format with a works cited page. This paper is approximately 5 pages including a works cited page.
1. Read the essays in Chapter 8. Go .
1 Midterm Preview Time allotted 50 minutes CS 11.docxhoney725342
1
Midterm Preview
Time allotted: 50 minutes
CS 110, Programming Fundamentals I
Central Washington University
Computer Science
Instructions
There are five sections on this exam that contain 24 required questions, a sixth section that contains extra
credit questions, and a last, seventh section, with supplementary information that may be helpful in answering
some of the required questions. This midterm is worth 100 points. Each question in a section is worth the points
indicated at the beginning of the section.
• Pace yourself
• Do not spend too much time on any one question
• Partial credit will be given, if warranted
• Partial credit will NOT be given on the extra credit questions, and points will NOT be taken off for
incorrectly answering an extra credit question
This exam is a closed book, closed notes, no IPhones, no Internet, etc. exam. All that you need is a pen or
pencil.
Name (Print)
Honor Code Statement: I pledge that this submission is solely my work, and that I have neither
given to, nor received help from anyone.
Signature:
Section Question Type Question Numbers Points Possible Points Scored
I True / False 1-10 20
II Multiple Choice 11-15 20
III Find the Error 16 20
IV Short Answer 17-22 30
V One or More Answers 23-24 10
Total 100
VI Extra Credit
Total Including Extra Credit
2
Section I: True/False Each question is worth 2 points; no partial credit given
Circle either True or False.
1. True / False The following is a syntactically correct variable declaration and assignment
statement:
double int = 2.0;
2.
True / False
The diagram in Figure 1a is the decision structure logic of the Java statements in
Figure 1b.
if (Condition_1){
if (Condition_2){
Statement_B;
}else{
Statement_C;
}
}
if (! Condition_1){
Statement_A;
}
Figure 1a Figure 1b
3. True / False Java is a case sensitive programming language.
4. True / False Assuming that letter has been declared as a variable of type char, the below
statement is syntactically correct:
letter = “a”;
5. True / False For the logical AND operator, &&, which connects two boolean expressions, both
expressions must be false for the overall expression to be false.
6. True / False The below two pieces of code output the same thing to the console:
int someVariable = 0;
System.out.println(“Output : “ + someVariable);
int someVar1 = 1, someVar2 = 2;
System.out.println(“Output : “ + someVar1 / someVar2);
7. True / False Syntax errors are mistakes that the programmer has made that violate the rules of the
programming language.
3
8. True / False The following Java code is syntactically incorrect:
Scanner keyBoard = new Scanner(System.in);
int someValue = keyBoard.nextInt();
switch (someValue){
case 1:
case 2:
case 3:
System.out.println("Input is 1 or 2 or 3.");
break;
default:
Syst ...
The aptitude test consisted tricky questions on core subjects of CSE like C , C++, Java ,Data Structures, Database, Computer Networks, Theory of Computation.
Spring Certification Questions and Spring Free test are tests created to demonstrate all the functions of our mock exams. You will be able to access ten full questions and will have ten minutes of time for finishing the test.
There are several components you can interact with when you take our mock exams:
Take a look at the progress bar at the top; it will tell how you are progressing through the exam.
Read the question and select only the answers you think are correct by checking the corresponding check box.
Navigate the spring questions using the "Previous" and "Next" buttons.
Mark the spring questions you wish to review later. All the questions you have marked will be listed on the right in the section "marked questions". You will be able to jump directly to the question from this list.
If you want to take a look at the correct answers for a question, just click the "Solution" button. In the solution section you will be able to check your answers as well as find a full explanation of the question.
Keep an eye on the countdown. This will tell you how much time is remaining. When the countdown expires, the test will be automatically submitted.
Once the test is submitted, the "result" section will expand. Here, you will be able to review all the questions of the test. From here, you can also navigate directly to each question.
Which of the following is not one of the rules cited in class for making e ma...josbuttlewr116
FOR MORE CLASSES VISIT
www.tutorialoutlet.com
Which of the following is not one of the rules cited in class for making e-mail more effective?
A. Include Context B. Ask about one topic at a time
C. Use all capital letters D. Answer a backlog of email in reverse order
2. Which of the following is not an area to protect our computer in?
A. Installing protective systems. B. Tuning the installed protection
one of the rules cited in class for making e-mail more effective Experience T...pinck3125
FOR MORE CLASSES VISIT
www.tutorialoutlet.com
Which of the following is not one of the rules cited in class for making e-mail more effective?
A. Include Context B. Ask about one topic at a time
C. Use all capital letters D. Answer a backlog of email in reverse order
Implicitly or explicitly all competing businesses employ a strategy to select a mix
of marketing resources. Formulating such competitive strategies fundamentally
involves recognizing relationships between elements of the marketing mix (e.g.,
price and product quality), as well as assessing competitive and market conditions
(i.e., industry structure in the language of economics).
Kseniya Leshchenko: Shared development support service model as the way to ma...Lviv Startup Club
Kseniya Leshchenko: Shared development support service model as the way to make small projects with small budgets profitable for the company (UA)
Kyiv PMDay 2024 Summer
Website – www.pmday.org
Youtube – https://www.youtube.com/startuplviv
FB – https://www.facebook.com/pmdayconference
VAT Registration Outlined In UAE: Benefits and Requirementsuae taxgpt
Vat Registration is a legal obligation for businesses meeting the threshold requirement, helping companies avoid fines and ramifications. Contact now!
https://viralsocialtrends.com/vat-registration-outlined-in-uae/
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujarat’s DholeraAvirahi City Dholera
The Tata Group, a titan of Indian industry, is making waves with its advanced talks with Taiwanese chipmakers Powerchip Semiconductor Manufacturing Corporation (PSMC) and UMC Group. The goal? Establishing a cutting-edge semiconductor fabrication unit (fab) in Dholera, Gujarat. This isn’t just any project; it’s a potential game changer for India’s chipmaking aspirations and a boon for investors seeking promising residential projects in dholera sir.
Visit : https://www.avirahi.com/blog/tata-group-dials-taiwan-for-its-chipmaking-ambition-in-gujarats-dholera/
Affordable Stationery Printing Services in Jaipur | Navpack n PrintNavpack & Print
Looking for professional printing services in Jaipur? Navpack n Print offers high-quality and affordable stationery printing for all your business needs. Stand out with custom stationery designs and fast turnaround times. Contact us today for a quote!
"𝑩𝑬𝑮𝑼𝑵 𝑾𝑰𝑻𝑯 𝑻𝑱 𝑰𝑺 𝑯𝑨𝑳𝑭 𝑫𝑶𝑵𝑬"
𝐓𝐉 𝐂𝐨𝐦𝐬 (𝐓𝐉 𝐂𝐨𝐦𝐦𝐮𝐧𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬) is a professional event agency that includes experts in the event-organizing market in Vietnam, Korea, and ASEAN countries. We provide unlimited types of events from Music concerts, Fan meetings, and Culture festivals to Corporate events, Internal company events, Golf tournaments, MICE events, and Exhibitions.
𝐓𝐉 𝐂𝐨𝐦𝐬 provides unlimited package services including such as Event organizing, Event planning, Event production, Manpower, PR marketing, Design 2D/3D, VIP protocols, Interpreter agency, etc.
Sports events - Golf competitions/billiards competitions/company sports events: dynamic and challenging
⭐ 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐝 𝐩𝐫𝐨𝐣𝐞𝐜𝐭𝐬:
➢ 2024 BAEKHYUN [Lonsdaleite] IN HO CHI MINH
➢ SUPER JUNIOR-L.S.S. THE SHOW : Th3ee Guys in HO CHI MINH
➢FreenBecky 1st Fan Meeting in Vietnam
➢CHILDREN ART EXHIBITION 2024: BEYOND BARRIERS
➢ WOW K-Music Festival 2023
➢ Winner [CROSS] Tour in HCM
➢ Super Show 9 in HCM with Super Junior
➢ HCMC - Gyeongsangbuk-do Culture and Tourism Festival
➢ Korean Vietnam Partnership - Fair with LG
➢ Korean President visits Samsung Electronics R&D Center
➢ Vietnam Food Expo with Lotte Wellfood
"𝐄𝐯𝐞𝐫𝐲 𝐞𝐯𝐞𝐧𝐭 𝐢𝐬 𝐚 𝐬𝐭𝐨𝐫𝐲, 𝐚 𝐬𝐩𝐞𝐜𝐢𝐚𝐥 𝐣𝐨𝐮𝐫𝐧𝐞𝐲. 𝐖𝐞 𝐚𝐥𝐰𝐚𝐲𝐬 𝐛𝐞𝐥𝐢𝐞𝐯𝐞 𝐭𝐡𝐚𝐭 𝐬𝐡𝐨𝐫𝐭𝐥𝐲 𝐲𝐨𝐮 𝐰𝐢𝐥𝐥 𝐛𝐞 𝐚 𝐩𝐚𝐫𝐭 𝐨𝐟 𝐨𝐮𝐫 𝐬𝐭𝐨𝐫𝐢𝐞𝐬."
The world of search engine optimization (SEO) is buzzing with discussions after Google confirmed that around 2,500 leaked internal documents related to its Search feature are indeed authentic. The revelation has sparked significant concerns within the SEO community. The leaked documents were initially reported by SEO experts Rand Fishkin and Mike King, igniting widespread analysis and discourse. For More Info:- https://news.arihantwebtech.com/search-disrupted-googles-leaked-documents-rock-the-seo-world/
Business Valuation Principles for EntrepreneursBen Wann
This insightful presentation is designed to equip entrepreneurs with the essential knowledge and tools needed to accurately value their businesses. Understanding business valuation is crucial for making informed decisions, whether you're seeking investment, planning to sell, or simply want to gauge your company's worth.
Putting the SPARK into Virtual Training.pptxCynthia Clay
This 60-minute webinar, sponsored by Adobe, was delivered for the Training Mag Network. It explored the five elements of SPARK: Storytelling, Purpose, Action, Relationships, and Kudos. Knowing how to tell a well-structured story is key to building long-term memory. Stating a clear purpose that doesn't take away from the discovery learning process is critical. Ensuring that people move from theory to practical application is imperative. Creating strong social learning is the key to commitment and engagement. Validating and affirming participants' comments is the way to create a positive learning environment.
[Note: This is a partial preview. To download this presentation, visit:
https://www.oeconsulting.com.sg/training-presentations]
Sustainability has become an increasingly critical topic as the world recognizes the need to protect our planet and its resources for future generations. Sustainability means meeting our current needs without compromising the ability of future generations to meet theirs. It involves long-term planning and consideration of the consequences of our actions. The goal is to create strategies that ensure the long-term viability of People, Planet, and Profit.
Leading companies such as Nike, Toyota, and Siemens are prioritizing sustainable innovation in their business models, setting an example for others to follow. In this Sustainability training presentation, you will learn key concepts, principles, and practices of sustainability applicable across industries. This training aims to create awareness and educate employees, senior executives, consultants, and other key stakeholders, including investors, policymakers, and supply chain partners, on the importance and implementation of sustainability.
LEARNING OBJECTIVES
1. Develop a comprehensive understanding of the fundamental principles and concepts that form the foundation of sustainability within corporate environments.
2. Explore the sustainability implementation model, focusing on effective measures and reporting strategies to track and communicate sustainability efforts.
3. Identify and define best practices and critical success factors essential for achieving sustainability goals within organizations.
CONTENTS
1. Introduction and Key Concepts of Sustainability
2. Principles and Practices of Sustainability
3. Measures and Reporting in Sustainability
4. Sustainability Implementation & Best Practices
To download the complete presentation, visit: https://www.oeconsulting.com.sg/training-presentations
What is the TDS Return Filing Due Date for FY 2024-25.pdfseoforlegalpillers
It is crucial for the taxpayers to understand about the TDS Return Filing Due Date, so that they can fulfill your TDS obligations efficiently. Taxpayers can avoid penalties by sticking to the deadlines and by accurate filing of TDS. Timely filing of TDS will make sure about the availability of tax credits. You can also seek the professional guidance of experts like Legal Pillers for timely filing of the TDS Return.
Discover the innovative and creative projects that highlight my journey throu...dylandmeas
Discover the innovative and creative projects that highlight my journey through Full Sail University. Below, you’ll find a collection of my work showcasing my skills and expertise in digital marketing, event planning, and media production.
LA HUG - Video Testimonials with Chynna Morgan - June 2024Lital Barkan
Have you ever heard that user-generated content or video testimonials can take your brand to the next level? We will explore how you can effectively use video testimonials to leverage and boost your sales, content strategy, and increase your CRM data.🤯
We will dig deeper into:
1. How to capture video testimonials that convert from your audience 🎥
2. How to leverage your testimonials to boost your sales 💲
3. How you can capture more CRM data to understand your audience better through video testimonials. 📊
LA HUG - Video Testimonials with Chynna Morgan - June 2024
Quiz1 tonghop
1. Part 1 of 1 - 95.0/ 100.0 Points
Code Design
Question 1 of 20
5.0/ 5.0 Points
An IF-THEN-ELSE statement is part of the __________ structure
A.sequence
B.selection
C.conditional
D.loop
Question 2 of 20
5.0/ 5.0 Points
Which of the following statements describes the flowchart symbol shown below?
A.Indicates the start and end of a loop
B.Indicates processing such as an operation
C.Indicates input and output of data
D.Indicates the start and end of a flowchart
Question 3 of 20
5.0/ 5.0 Points
Which of the following variable name is the most retable and maintainable
A.employeeLastName
B.lastNameOfTheEmployeeInQuestion
2. C.emlstnam
D.last name
Question 4 of 20
5.0/ 5.0 Points
The following figure is one example of binary-selection structure. Is that correct?
True
False
Question 5 of 20
5.0/ 5.0 Points
Which of the following flowcharts illustrates a “while repetition structure” in the control
structure of programs?
3. A.Image d)
B.Image c)
C.Image b)
D.Image a)
Question 6 of 20
5.0/ 5.0 Points
As much as __________ percent of the total lifetime cost for an application program is for
maintenance
A.50%
B.75%
C.60%
4. D.40%
Question 7 of 20
0.0/ 5.0 Points
When a program repeats a portion of software code as long as a certain condition doesn’t exist,
it’s using a(n) _______ structure
A.do until
B.what-if
C.if-then-else
D.do while
Question 8 of 20
5.0/ 5.0 Points
What are the three control structures for creating programs in structured programming?
A.Repetition, sequence, and selection
B.Recursion, sequence, and selection
C.Repetition, recursion and sequence
D.Repetition, recursion, and selection
Question 9 of 20
5.0/ 5.0 Points
When the expression 1-1/x+1/x^2 -1/x^3 +1/x^4 -…1/x^n is calculated, which of the following
should be inserted in the process box in the flowchart shown below?
5. A.a)
B.b)
C.c)
D.d)
Question 10 of 20
5.0/ 5.0 Points
What is an example of the information-receiving operation of a computer?
A.Read (information from a file)
B.Write (information to a file)
C.Use actual mathematical symbols or the words for the symbols (+, -, *, /)
6. D.Giving data an initial value: Initialize, Set
Question 11 of 20
5.0/ 5.0 Points
Please select the best variable name for an employee's last name
A.empLstNm
B.empLastName
C.emplastname
D.lastNameOfTheEmployeeInQuestion
Question 12 of 20
5.0/ 5.0 Points
Flowcharts and pseudocode are examples of tools used in the program __________ phase.
A.code
B.specification
C.test
D.design
Question 13 of 20
5.0/ 5.0 Points
In below definitions on the global data, which one is incorrect?
A.Variables which are defined within the sub module
B.Every module in the program can access and change data
C.Data that can be used by all the modules in a program
D.Lifetime of a global variable spans the execution of the whole program
7. Question 14 of 20
5.0/ 5.0 Points
In a(n) __________ structure, one statement follows the other with no conditions having to be
met.
A.sequence
B.loop
C.conditional
D.selection
Question 15 of 20
5.0/ 5.0 Points
Which of the following lines of code comes from a first generation computer language?
A.00010 1010 1101 0001 1010
B.this Total=TotalA + TotalC
C.set total to sum of totals
D.ADD255(3,10),02B(4,5)
Question 16 of 20
5.0/ 5.0 Points
The control structure used to perform a series of statements one after the other is called
A.random
B.selection
C.sequential
D.loop
Question 17 of 20
5.0/ 5.0 Points
8. Which is not one of 3 basic structure when design an algorithm?
A.Sequence
B.Iteration
C.Selection
D.Repetition
Question 18 of 20
5.0/ 5.0 Points
Software that helps programmers prepare reports, draw flowcharts, and generate software code
for prototypes is a(n)
A.CLOC (computer licensed operations code) tool
B.CULP (combined users licensed protocols) tool
C.CAUSE (computer assisted Unix software environment) tool
D.CASE (computer aided software engineering) tool
Question 19 of 20
5.0/ 5.0 Points
Machine language is composed only of
A.0s and 1s
B.memory address toggles
C.keyword statements
D.hexadecimal numbers
Question 20 of 20
5.0/ 5.0 Points
"Which of the following is the appropriate basic structure in a flowchart for working out the sum
from 1 to 10 using the sequence below?
9. ①Assign the initial value “0” to x
②Assign the initial value “1” to i
③End when i is greater that 10
④If i is 10 or smaller, add i to x, and substitute that value for x
⑤Add 1 to i, and substitute that value for i
⑥Return to ③"
A.a) Sequence structure
B.b) Selection structure
C.d) Repetition structure
D.c) Conditional branch
Part 1 of 1 - 65.0/ 100.0 Points
Code Design
Question 1 of 20
5.0/ 5.0 Points
Software that helps programmers prepare reports, draw flowcharts, and generate software code
for prototypes is a(n)
A.CAUSE (computer assisted Unix software environment) tool
B.CASE (computer aided software engineering) tool
C.CLOC (computer licensed operations code) tool
D.CULP (combined users licensed protocols) tool
Question 2 of 20
5.0/ 5.0 Points
10. The function f(x) has real arguments and returned values. Consider the procedure consisting of
steps 1 ~5 as shown below using this function. After starting execution and repeating the
procedure a sufficient number of times, y in step 3 stops changing. Which of the following
expressions holds at this point?
A.f(y)=0
B.f(y)=y
C.f(a)=y
D.f(y)=a
Question 3 of 20
0.0/ 5.0 Points
Which of the following statements describes the flowchart symbol shown below?
A.Indicates input and output of data
B.Indicates processing such as an operation
C.Indicates the start and end of a flowchart
D.Indicates the start and end of a loop
Question 4 of 20
5.0/ 5.0 Points
11. What can we do with the Circle symbol when drawing the flowchart to represent the algorithm?
A.Use it to represent a point at which the flowchart connects with another process. The
name or reference for the other process should appear within the symbol
B.Use it to represent a decision point in the process. Typically, the statement in the symbol
will require a `yes' or `no' response and branch to different parts of the flowchart accordingly
C.Use it to represent an event which is controlled within the process. Typically this will be
a step or action which is taken. In most flowcharts this will be the most frequently used
symbol
D.Use it to represent an event which occurs automatically. Such an event will trigger a
subsequent action, for example `receive telephone call’, or describe a new state of affairs.
Question 5 of 20
5.0/ 5.0 Points
Please select the best variable name for an employee's last name
A.empLstNm
B.empLastName
C.emplastname
D.lastNameOfTheEmployeeInQuestion
Question 6 of 20
0.0/ 5.0 Points
The flowchart below shows a binary search algorithm to find the index m of the array element
A(m), such that the equation “A(m) = k” holds, from the array elements A(1), A(2), …, A(n)
already sorted in ascending order. In case of “m= 0” at the end, there is no element such that the
equation “A(m) = k” holds. Which of the following is inserted in the process box X in the
flowchart? Here, the slash ( / ) indicates division that truncates all digits after the decimal point.
12. A.(x+ y) → m
B.(x – y) / 2 → m
C.(y – x) / 2 → m
D.(x+ y) / 2 → m
Question 7 of 20
5.0/ 5.0 Points
Which of the following refers to tools that are used to design, code, and test software?
A.CAD
B.CASE
C.OOP
13. D.XML
Question 8 of 20
5.0/ 5.0 Points
Which is not one of 3 basic structure when design an algorithm?
A.Repetition
B.Sequence
C.Selection
D.Iteration
Question 9 of 20
5.0/ 5.0 Points
OOP languages use
A.combinations of objects
B.natural and nonprocedural statements
C.abbreviations and mnemonic
D.binary coded instructions
Question 10 of 20
0.0/ 5.0 Points
What is incorrect function of the parameter using in communicating between modules?
A."To pass information from a subordinate module to its calling module
"
B.To store the reference data
C.To fulfil a two-way communication role
D."To pass information from a calling module to a subordinate module
14. "
Question 11 of 20
5.0/ 5.0 Points
When the expression 1-1/x+1/x^2 -1/x^3 +1/x^4 -…1/x^n is calculated, which of the following
should be inserted in the process box in the flowchart shown below?
A.d)
B.a)
C.c)
D.b)
Question 12 of 20
5.0/ 5.0 Points
An IF-THEN-ELSE statement is part of the __________ structure
A.sequence
15. B.loop
C.conditional
D.selection
Question 13 of 20
0.0/ 5.0 Points
"Which structure theorem is used n a computer program or algorithm
to determine which particular step or set of steps is to be executed?"
A.Selection
B.Sequence
C.Repetition
D.Subprogram
Question 14 of 20
0.0/ 5.0 Points
"The test data about the part of a program shown in the flowchart is specified by “decision
condition coverage” (branch coverage). If this test data is specified by “multiple condition
coverage,” which of the following is the appropriate data to add? Here, the part enclosed in
parentheses indicates the pair of test data elements. The test
data used by “decision condition coverage” (branch coverage): (A=4, B=1), (A=5, B=0)"
A.(A=3, B=0), (A=7, B=2)
16. B.(A=4, B=0), (A=8, B=0)
C.(A=3, B=2), (A=8, B=0)
D.(A=7, B=0), (A=8, B=2)
Question 15 of 20
5.0/ 5.0 Points
The programming tool that uses linked symbols to show the sequence of steps needed to solve a
programming problem
A.grid table
B.algorithm
C.pseudocode
D.flowchart
Question 16 of 20
0.0/ 5.0 Points
What is an example of the information-receiving operation of a computer?
A.Read (information from a file)
B.Giving data an initial value: Initialize, Set
C.Write (information to a file)
D.Use actual mathematical symbols or the words for the symbols (+, -, *, /)
Question 17 of 20
0.0/ 5.0 Points
17. When a program whose functions are as shown in the flowchart in the Figure 1 was executed
when the contents of array A were as given in Figure 2, array B, whose contents are shown in the
Figure 3, was produced. Which operation should be filled in a of Figure 1? Here, the element of
arrays A and B are represented by A(i, j) and B(i, j), respectively.
A.A (i,j) --> B (7-j, i)
B.A (i,j) --> B (i, 7-j)
C.A (i,j) --> B (7-i, 7-j)
D.A (i,j) --> B (j, 7-i)
Question 18 of 20
5.0/ 5.0 Points
________ language is made up only of binary digits
A.Machine
B.Natural
C.Assembly
D.Procedural
18. Question 19 of 20
5.0/ 5.0 Points
A program error that violates the grammar rules of the programming language is a(n) _______
error
A.modular
B.logic
C.language
D.syntax
Question 20 of 20
5.0/ 5.0 Points
In a(n) __________ structure, one statement follows the other with no conditions having to be
met.
A.selection
B.loop
C.sequence
D.conditional
Part 1 of 1 - 85.0/ 100.0 Points
Code Design
Question 1 of 20
5.0/ 5.0 Points
As much as __________ percent of the total lifetime cost for an application program is for
maintenance
A.60%
B.75%
19. C.50%
D.40%
Question 2 of 20
5.0/ 5.0 Points
When a program repeats a portion of software code as long as a certain condition doesn’t exist,
it’s using a(n) _______ structure
A.do while
B.what-if
C.do until
D.if-then-else
Question 3 of 20
5.0/ 5.0 Points
Machine language is composed only of
A.0s and 1s
B.keyword statements
C.hexadecimal numbers
D.memory address toggles
Question 4 of 20
0.0/ 5.0 Points
Integers are stored in the 1st to N-th elements of an array A(N>1). The flowchart below shows
the process to check which element of the array contains the same value as X. Which of the
following correctly describes the execution result of this process?
20. A.If the same value as X is not in the array, k is set to 1.
B.If the same value as X is not in the array, k is set to N.
C.If the same value as X exists in two places of the array, the 1st and N-th elements, k is
set to 1.
D.If the same value as X exists in two places of the array, the 1st and N-th elements, k is
set to N.
Question 5 of 20
5.0/ 5.0 Points
"Which structure theorem is used n a computer program or algorithm
to determine which particular step or set of steps is to be executed?"
A.Selection
B.Sequence
21. C.Repetition
D.Subprogram
Question 6 of 20
5.0/ 5.0 Points
What is an example of the information-receiving operation of a computer?
A.Read (information from a file)
B.Giving data an initial value: Initialize, Set
C.Write (information to a file)
D.Use actual mathematical symbols or the words for the symbols (+, -, *, /)
Question 7 of 20
5.0/ 5.0 Points
Which of the following flowcharts illustrates a “while repetition structure” in the control
structure of programs?
22. A.Image d)
B.Image c)
C.Image a)
D.Image b)
Question 8 of 20
0.0/ 5.0 Points
Please choose correct definition of the module parameters
A.Reference parameters pass a copy of the value of a parameter from one module to
another
B.Variables and expressions that are passed to a submodule in a particular call are called
formal parameters
C.Formal parameters are the one that appear when a submodule is defined
23. D.Value parameter pass the memory address of a parameter from one module to another
Question 9 of 20
5.0/ 5.0 Points
What can we do with the Circle symbol when drawing the flowchart to represent the algorithm?
A.Use it to represent a point at which the flowchart connects with another process. The
name or reference for the other process should appear within the symbol
B.Use it to represent a decision point in the process. Typically, the statement in the symbol
will require a `yes' or `no' response and branch to different parts of the flowchart accordingly
C.Use it to represent an event which is controlled within the process. Typically this will be
a step or action which is taken. In most flowcharts this will be the most frequently used
symbol
D.Use it to represent an event which occurs automatically. Such an event will trigger a
subsequent action, for example `receive telephone call’, or describe a new state of affairs.
Question 10 of 20
5.0/ 5.0 Points
An IF-THEN-ELSE statement is part of the __________ structure
A.sequence
B.loop
C.conditional
D.selection
Question 11 of 20
5.0/ 5.0 Points
When the expression 1-1/x+1/x^2 -1/x^3 +1/x^4 -…1/x^n is calculated, which of the following
should be inserted in the process box in the flowchart shown below?
24. A.d)
B.a)
C.c)
D.b)
Question 12 of 20
5.0/ 5.0 Points
OOP languages use
A.combinations of objects
B.natural and nonprocedural statements
C.abbreviations and mnemonic
25. D.binary coded instructions
Question 13 of 20
0.0/ 5.0 Points
Which of the following is the correct result produced by executing the program shown below?
Here, the parameter “x” is called by value, and the parameter “y” is called by reference.
A.a= 7, b= 5
B.a= 2, b= 3
C.a= 2, b= 5
D.a= 7, b= 3
Question 14 of 20
5.0/ 5.0 Points
Flowcharts and pseudocode are examples of tools used in the program __________ phase.
A.design
B.test
C.code
D.specification
Question 15 of 20
5.0/ 5.0 Points
Which of the following is not necessary for a good program?
26. A.catches common errors
B.well-documented
C.colorful graphics
D.reliability
Question 16 of 20
5.0/ 5.0 Points
________ language is made up only of binary digits
A.Machine
B.Natural
C.Assembly
D.Procedural
Question 17 of 20
5.0/ 5.0 Points
The programming tool that uses linked symbols to show the sequence of steps needed to solve a
programming problem
A.grid table
B.algorithm
C.pseudocode
D.flowchart
Question 18 of 20
5.0/ 5.0 Points
A program error that violates the grammar rules of the programming language is a(n) _______
error
27. A.modular
B.logic
C.language
D.syntax
Question 19 of 20
5.0/ 5.0 Points
Please select the best variable name for an employee's last name
A.empLstNm
B.empLastName
C.emplastname
D.lastNameOfTheEmployeeInQuestion
Question 20 of 20
5.0/ 5.0 Points
"The test data about the part of a program shown in the flowchart is specified by “decision
condition coverage” (branch coverage). If this test data is specified by “multiple condition
coverage,” which of the following is the appropriate data to add? Here, the part enclosed in
parentheses indicates the pair of test data elements. The test
data used by “decision condition coverage” (branch coverage): (A=4, B=1), (A=5, B=0)"
28. A.(A=3, B=0), (A=7, B=2)
B.(A=4, B=0), (A=8, B=0)
C.(A=3, B=2), (A=8, B=0)
D.(A=7, B=0), (A=8, B=2)
____HCMUT_013_CSD_02_Quiz1_Code Design
Return to Assessment List
Part 1 of 1 - 95.0/ 100.0 Points
Code Design
Question 1 of 20 5.0/ 5.0 Points
What can we do with the Circle symbol when drawing the flowchart to represent the algorithm?
A.Use it to represent a decision point in the process. Typically, the statement in the
symbol will require a `yes' or `no' response and branch to different parts of the flowchart
accordingly
B.Use it to represent an event which occurs automatically. Such an event will trigger a
subsequent action, for example `receive telephone call’, or describe a new state of affairs.
C.Use it to represent a point at which the flowchart connects with another process. The
name or reference for the other process should appear within the symbol
D.Use it to represent an event which is controlled within the process. Typically this will
be a step or action which is taken. In most flowcharts this will be the most frequently used
symbol
Question 2 of 20 5.0/ 5.0 Points
"The test data about the part of a program shown in the flowchart is specified by “decision
29. condition coverage” (branch coverage). If this test data is specified by “multiple condition
coverage,” which of the following is the appropriate data to add? Here, the part enclosed in
parentheses indicates the pair of test data elements. The test
data used by “decision condition coverage” (branch coverage): (A=4, B=1), (A=5, B=0)"
A.(A=3, B=0), (A=7, B=2)
B.(A=4, B=0), (A=8, B=0)
C.(A=3, B=2), (A=8, B=0)
D.(A=7, B=0), (A=8, B=2)
Question 3 of 20 5.0/ 5.0 Points
An IF-THEN-ELSE statement is part of the __________ structure
A.loop
B.selection
C.sequence
D.conditional
Question 4 of 20 5.0/ 5.0 Points
A(n) __________ error could be the result of the programmer making an incorrect calculation
30. A.syntax
B.logic
C.general protection
D.breakpoint
Question 5 of 20 5.0/ 5.0 Points
When a program repeats a portion of software code as long as a certain condition doesn’t exist,
it’s using a(n) _______ structure
A.do until
B.do while
C.what-if
D.if-then-else
Question 6 of 20 5.0/ 5.0 Points
Which of the following statements describes the flowchart symbol shown below?
A.Indicates the start and end of a flowchart
B.Indicates processing such as an operation
C.Indicates the start and end of a loop
D.Indicates input and output of data
Question 7 of 20 0.0/ 5.0 Points
31. The control structure used to perform a series of statements one after the other is called
A.random
B.loop
C.sequential
D.selection
Question 8 of 20 5.0/ 5.0 Points
The flowchart below shows a binary search algorithm to find the index m of the array element
A(m), such that the equation “A(m) = k” holds, from the array elements A(1), A(2), …, A(n)
already sorted in ascending order. In case of “m= 0” at the end, there is no element such that the
equation “A(m) = k” holds. Which of the following is inserted in the process box X in the
flowchart? Here, the slash ( / ) indicates division that truncates all digits after the decimal point.
A.(y – x) / 2 → m
B.(x+ y) / 2 → m
32. C.(x+ y) → m
D.(x – y) / 2 → m
Question 9 of 20 5.0/ 5.0 Points
Flowcharts and pseudocode are examples of tools used in the program __________ phase.
A.code
B.design
C.test
D.specification
Question 10 of 20 5.0/ 5.0 Points
Which of the following is the correct result produced by executing the program shown below?
Here, the parameter “x” is called by value, and the parameter “y” is called by reference.
A.a= 2, b= 5
B.a= 7, b= 5
C.a= 2, b= 3
D.a= 7, b= 3
Question 11 of 20 5.0/ 5.0 Points
33. Which of the following variable name is the most retable and maintainable
A.employeeLastName
B.emlstnam
C.last name
D.lastNameOfTheEmployeeInQuestion
Question 12 of 20 5.0/ 5.0 Points
Which of the following flowcharts illustrates a “while repetition structure” in the control
structure of programs?
A.Image c)
B.Image b)
C.Image a)
34. D.Image d)
Question 13 of 20 5.0/ 5.0 Points
There are two important operations on a stack: PUSH and POP. PUSH adds the new data to the
top of the stack leaving previous data below, and POP removes and returns the current top data
of the stack. When the operations shown below are sequentially executed, which of the
following is the correct combination of the values x and y? Here, the size of the stack is big
enough to hold the entire data. “PUSH(a)” inserts the data a into the stack, and “POP(b)”
removes the data b from the stack.
[Operations] PUSH (5); PUSH (3); PUSH (6); PUSH (1); x= POP ( ); PUSH (7); y= POP ( );
A.x=1, y=6
B.x=1, y=7
C.x=5, y=7
D.x=5, y=3
Question 14 of 20 5.0/ 5.0 Points
What is incorrect function of the parameter using in communicating between modules?
A.To store the reference data
B."To pass information from a subordinate module to its calling module
"
C.To fulfil a two-way communication role
35. D."To pass information from a calling module to a subordinate module
"
Question 15 of 20 5.0/ 5.0 Points
Please select one item which is not a guide when writing pseudo code
A.Structural elements might come separately
B.The names of subprograms are underlined
C.Indenting is used to show structure in the algorithm
D.Keywords are written in CAPITALS
Question 16 of 20 5.0/ 5.0 Points
In a(n) __________ structure, one statement follows the other with no conditions having to be
met.
A.sequence
B.loop
C.selection
D.conditional
Question 17 of 20 5.0/ 5.0 Points
"Which of the following is the appropriate basic structure in a flowchart for working out the
sum from 1 to 10 using the sequence below?
①Assign the initial value “0” to x
②Assign the initial value “1” to i
③End when i is greater that 10
④If i is 10 or smaller, add i to x, and substitute that value for x
⑤Add 1 to i, and substitute that value for i
⑥Return to ③"
A.c) Conditional branch
36. B.a) Sequence structure
C.d) Repetition structure
D.b) Selection structure
Question 18 of 20 5.0/ 5.0 Points
________ language is made up only of binary digits
A.Machine
B.Assembly
C.Procedural
D.Natural
Question 19 of 20 5.0/ 5.0 Points
Which of the following is not necessary for a good program?
A.reliability
B.colorful graphics
C.catches common errors
D.well-documented
Question 20 of 20 5.0/ 5.0 Points
__________ refers to testing by a select group of potential users in the final stage of testing a
program
A.Beta testing
B.Manual testing
37. C.Desk checking
D.Attempt at translation
Part 1 of 1 - 100.0/ 100.0 Points
Code Design
Question 1 of 20
5.0/ 5.0 Points
The following figure is one example of binary-selection structure. Is that correct?
38. True
False
Question 2 of 20
5.0/ 5.0 Points
As much as __________ percent of the total lifetime cost for an application program is for
maintenance
A.50%
B.75%
C.60%
D.40%
Question 3 of 20
5.0/ 5.0 Points
Which of the following statements describes the flowchart symbol shown below?
A.Indicates the start and end of a loop
B.Indicates processing such as an operation
C.Indicates input and output of data
39. D.Indicates the start and end of a flowchart
Question 4 of 20
5.0/ 5.0 Points
The __________ structure involves repeating a sequence until a condition is met.
A.conditional
B.loop
C.sequence
D.selection
Question 5 of 20
5.0/ 5.0 Points
In below definitions on the global data, which one is incorrect?
A.Variables which are defined within the sub module
B.Every module in the program can access and change data
C.Data that can be used by all the modules in a program
D.Lifetime of a global variable spans the execution of the whole program
Question 6 of 20
5.0/ 5.0 Points
What are the three control structures for creating programs in structured programming?
40. A.Repetition, sequence, and selection
B.Recursion, sequence, and selection
C.Repetition, recursion and sequence
D.Repetition, recursion, and selection
Question 7 of 20
5.0/ 5.0 Points
Which item is not a recommendation when writing pseudo codes?
A.Each set of instructions is written from top to bottom, with only one entry and one exit
B.Try to keep each instruction/step as short as possible
C.Keywords and indentation are used to signify particular control structures
D.Each instruction/step is written on a separate line
Question 8 of 20
5.0/ 5.0 Points
When a program repeats a portion of software code as long as a certain condition doesn’t exist, it’s
using a(n) _______ structure
A.do until
B.what-if
41. C.if-then-else
D.do while
Question 9 of 20
5.0/ 5.0 Points
Which of the following flowcharts illustrates a “while repetition structure” in the control structure of
programs?
A.Image d)
B.Image c)
C.Image b)
42. D.Image a)
Question 10 of 20
5.0/ 5.0 Points
Which of the following lines of code comes from a first generation computer language?
A.00010 1010 1101 0001 1010
B.this Total=TotalA + TotalC
C.set total to sum of totals
D.ADD255(3,10),02B(4,5)
Question 11 of 20
5.0/ 5.0 Points
The program’s processing steps are grouped into logically-related programming statements called
A.unit
B.object
C.component
D.Module
Question 12 of 20
5.0/ 5.0 Points
A program error that violates the grammar rules of the programming language is a(n) _______ error
43. A.language
B.logic
C.modular
D.syntax
Question 13 of 20
5.0/ 5.0 Points
What can we do with the Circle symbol when drawing the flowchart to represent the algorithm?
A.Use it to represent an event which occurs automatically. Such an event will trigger a
subsequent action, for example `receive telephone call’, or describe a new state of affairs.
B.Use it to represent a point at which the flowchart connects with another process. The name or
reference for the other process should appear within the symbol
C.Use it to represent a decision point in the process. Typically, the statement in the symbol will
require a `yes' or `no' response and branch to different parts of the flowchart accordingly
D.Use it to represent an event which is controlled within the process. Typically this will be a step
or action which is taken. In most flowcharts this will be the most frequently used symbol
Question 14 of 20
5.0/ 5.0 Points
The programming tool that uses linked symbols to show the sequence of steps needed to solve a
programming problem
A.pseudocode
44. B.algorithm
C.grid table
D.flowchart
Question 15 of 20
5.0/ 5.0 Points
What is an example of the information-receiving operation of a computer?
A.Read (information from a file)
B.Write (information to a file)
C.Use actual mathematical symbols or the words for the symbols (+, -, *, /)
D.Giving data an initial value: Initialize, Set
Question 16 of 20
5.0/ 5.0 Points
Please choose correct definition of the module parameters
A.Value parameter pass the memory address of a parameter from one module to another
B.Formal parameters are the one that appear when a submodule is defined
C.Variables and expressions that are passed to a submodule in a particular call are called formal
parameters
45. D.Reference parameters pass a copy of the value of a parameter from one module to another
Question 17 of 20
5.0/ 5.0 Points
When develop the outline into an algorithm, which tools can we use to represent the solution
algorithm?
A. Flowchart
B. Pseudo code
C. Sequence diagram
Question 18 of 20
5.0/ 5.0 Points
When a program whose functions are as shown in the flowchart in the Figure 1 was executed when the
contents of array A were as given in Figure 2, array B, whose contents are shown in the Figure 3, was
produced. Which operation should be filled in a of Figure 1? Here, the element of arrays A and B are
represented by A(i, j) and B(i, j), respectively.
A.A (i,j) --> B (i, 7-j)
46. B.A (i,j) --> B (7-j, i)
C.A (i,j) --> B (j, 7-i)
D.A (i,j) --> B (7-i, 7-j)
Question 19 of 20
5.0/ 5.0 Points
Please select the best variable name for an employee's last name
A.empLstNm
B.empLastName
C.emplastname
D.lastNameOfTheEmployeeInQuestion
Question 20 of 20
5.0/ 5.0 Points
What is incorrect function of the parameter using in communicating between modules?
A.To fulfil a two-way communication role
B."To pass information from a calling module to a subordinate module
"
C.To store the reference data
47. D."To pass information from a subordinate module to its calling module
"
Question 16 of 20
5.0/ 5.0 Points
As much as __________ percent of the total lifetime cost for an application program is for maintenance
A.75%
B.60%
C.40%
D.50%