_____________/❤ All Students are Requested to Follow Me On Social Media!! ❤\____________
► Facebook:➜ / digitaleducation101
► Twitter:➜ / shahbaz_ali101
► Instagram:➜ / digitaleducation_101
► Whatsapp:➜ https://chat.whatsapp.com/GqLGyGuZyNp...
► Youtube:➜ https://bit.ly/32hA7C4?sub_confirmati...
How to install and Download Code::Blocks:
https://bit.ly/3HuCBzO
10th Computer Science All Lectures Playlist:
https://bit.ly/3eYGMbb
10th Computer Science All Exercise Playlist:
https://bit.ly/3pMcoqu
10th Computer Science All Example Code Playlist:
https://bit.ly/3pKxxkK
10th Computer Science All Programming Time:
https://bit.ly/3eOmTmJ
10th Computer Science All Activities Playlist:
https://bit.ly/3eFQOh1
10th Computer Science All Programming Exercise Playlist:
https://bit.ly/3zltiQ6
Timestamp
00:00 Intro
00:45 Q1 Multiple Choice Questions
03:55 Q2 Definition
07:58 Q3 Briefly answer
14:10 Q4 Identity errors
19:02 Q5 Write down Output
30:49 Exercise 1
32:38 Exercise 2
34:20 Exercise 3
37:57 Exercise 4
42:13 Exercise 5
44:41 Exercise 6
48:06 Exercise 7
52:03 Outro
Conditional Logic
Exercise
Q2. Define the following.
1. Define Control Statement.
2. Define selection statement.
3. Define sequential control.
4. Define condition.
5. Define nested selection structures.
Q3. Briefly answer the following questions.
1. Why do we need selection statements?
2. Why do we need selection statements?
3. Differentiate between sequential and selection statements.
4. Differentiate between if statement and if else statement with an example.
5. What is the use of nested selection structures?
6. Write the structure of if statement with brief description.
Q4 Identify errors in the following code segments.
Assume that variables have already been declared.
Q5 Write down the output of the following code segment.
Programming Exercise 1
Write a program that takes two integers as input and tells whether first one is a factor of the second one?
Programming Exercise 2
Write a program that takes a number as input and display "YES" if the input number is a multiple of 3, and has 5 in unit's place e.g. 15,75.
Programming Exercise 3
Following is the list of discounts an available in "Grocery Mart"
Total Bill Discount
1000 10%
2500 20%
5000 35%
10000 50%
Write a program that takes total bill as input and tells how much discount the user has got and what the discount price is.
Programming Exercise 4
Write a program that takes as input, the original price and sale price of a product and tells whether the product is sold on profit or loss.
The program should also tell the profit/loss percentage.
Programming Exercise 5
Write a program that takes as input, the lengths of 3 sides of a triangle and tells whether it is a right angle triangle or not. For a right angled triangle,
Programming Exercise 6
Following is the eligibility criteria for admission in an IT university.
At least 60% marks in Matric
At least 65% marks in Intermediate (Pre-Engineering or ICS)
At least 65% marks in in entrance test.
Write a program that takes as input, the obtained and total marks of matric, Intermediate and Entrance Test. The program should tell whether the student is eligible or not.
Programming Exercise 7
Write a program that calculates the bonus an employee can get on the following basis:
Salary Experience with Company Bonus Tasks Bonus
10000 2 years 5 1500
10000 3 years 10 2500
25000 3 years 4 2000
75000 4 years 7 3500
100000 5 years 10 5000
The program should take as input, the salary, experience and number of bonus tasks of the employee. The program should display the bonus on the screen.
#DigitalEducation,
#DigitalEducationlatestnews,
#DigitalEducationShahbazAli,
#10thComputerChapterNo3SolvedExercise,
#ChapterNo3Exercise,
#10thComputerScienceChapter3ExerciseSolution,
#SolvedExercise,
#Chapter1Solution,
#CompleteSolvedExercise,
#ShortQuestionAnswersChapter3,
#Mcq’sChapter3ComputerScience,
#FillInTheBlank,
#ProgrammingExerciseChapter3,
#ProgrammingExercise3,
#CompleteExercise,
#OutputofQuestionno4,
#ErrorsofQuestionno5,
#Controlstatement,
#Selectionstatement,
#Sequentialstatements,
#Sequentialcontrol,
#Condition,
#Nestedselectionstructure,
#computerscienceclass10,
#computerscience10thclassbook3030,
#computersciencebookforclass10,
#10thcomputersciencebook,
#computersciencenewbook10thclass3030,
#computerscience10thclass,
#Class10computersciencebook,
#computerscience10thclassbook,
#class10computerscience,
#10classcomputersciencebook,
#computersciencenewbook10thclass,
#10thcomputerscience,
#computerscienceclass10book,
#computerscience10classbook,
#computerscienceclass10newbook,
Информация по комментариям в разработке