Submit Search
Upload
N5 Code Efficiency
•
Download as PPTX, PDF
•
0 likes
•
934 views
F
Forrester High School
Follow
National 5 Computing Science Code Efficiency
Read less
Read more
Education
Report
Share
Report
Share
1 of 10
Download now
Recommended
National 5 Computing Science - Testing
National 5 Computing Science - Testing
Forrester High School
SD & D Traversing an Array
SD & D Traversing an Array
Forrester High School
inline function
inline function
imran khan
Asymptotic Notations.pptx
Asymptotic Notations.pptx
SunilWork1
Array in c language
Array in c language
home
Des
Des
Aravindharamanan S
Intermediate code generation1
Intermediate code generation1
Shashwat Shriparv
Data Types - Premetive and Non Premetive
Data Types - Premetive and Non Premetive
Raj Naik
Recommended
National 5 Computing Science - Testing
National 5 Computing Science - Testing
Forrester High School
SD & D Traversing an Array
SD & D Traversing an Array
Forrester High School
inline function
inline function
imran khan
Asymptotic Notations.pptx
Asymptotic Notations.pptx
SunilWork1
Array in c language
Array in c language
home
Des
Des
Aravindharamanan S
Intermediate code generation1
Intermediate code generation1
Shashwat Shriparv
Data Types - Premetive and Non Premetive
Data Types - Premetive and Non Premetive
Raj Naik
How to Share a Secret
How to Share a Secret
Kelum Senanayake
Compiler Design Unit 5
Compiler Design Unit 5
Jena Catherine Bel D
Algorithms - Aaron Bloomfield
Algorithms - Aaron Bloomfield
Reggie Niccolo Santos
Linear Search
Linear Search
SWATHIR72
Type checking compiler construction Chapter #6
Type checking compiler construction Chapter #6
Daniyal Mughal
Intermediate code- generation
Intermediate code- generation
rawan_z
Inner join and outer join
Inner join and outer join
Nargis Ehsan
Sql group functions
Sql group functions
Sumit Tambe
MS Sql Server: Joining Databases
MS Sql Server: Joining Databases
DataminingTools Inc
Intermediate code generation
Intermediate code generation
Akshaya Arunan
Code Generation
Code Generation
PrabuPappuR
Asymptotic analysis
Asymptotic analysis
Soujanya V
Character set in c
Character set in c
polast
Hash tables
Hash tables
International Islamic University
Lecture 12 intermediate code generation
Lecture 12 intermediate code generation
Iffat Anjum
32 shell-programming
32 shell-programming
kayalkarnan
The look up table (LUT)
The look up table (LUT)
Basel Mansour
Calculation of Cyclomatic complexity
Calculation of Cyclomatic complexity
nikshaikh786
Linear Search & Binary Search
Linear Search & Binary Search
Reem Alattas
Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086
Shehrevar Davierwala
DAA Unit 1.pdf
DAA Unit 1.pdf
Nirmalavenkatachalam
13 javascript techniques to improve your code
13 javascript techniques to improve your code
Surendra kumar
More Related Content
What's hot
How to Share a Secret
How to Share a Secret
Kelum Senanayake
Compiler Design Unit 5
Compiler Design Unit 5
Jena Catherine Bel D
Algorithms - Aaron Bloomfield
Algorithms - Aaron Bloomfield
Reggie Niccolo Santos
Linear Search
Linear Search
SWATHIR72
Type checking compiler construction Chapter #6
Type checking compiler construction Chapter #6
Daniyal Mughal
Intermediate code- generation
Intermediate code- generation
rawan_z
Inner join and outer join
Inner join and outer join
Nargis Ehsan
Sql group functions
Sql group functions
Sumit Tambe
MS Sql Server: Joining Databases
MS Sql Server: Joining Databases
DataminingTools Inc
Intermediate code generation
Intermediate code generation
Akshaya Arunan
Code Generation
Code Generation
PrabuPappuR
Asymptotic analysis
Asymptotic analysis
Soujanya V
Character set in c
Character set in c
polast
Hash tables
Hash tables
International Islamic University
Lecture 12 intermediate code generation
Lecture 12 intermediate code generation
Iffat Anjum
32 shell-programming
32 shell-programming
kayalkarnan
The look up table (LUT)
The look up table (LUT)
Basel Mansour
Calculation of Cyclomatic complexity
Calculation of Cyclomatic complexity
nikshaikh786
Linear Search & Binary Search
Linear Search & Binary Search
Reem Alattas
Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086
Shehrevar Davierwala
What's hot
(20)
How to Share a Secret
How to Share a Secret
Compiler Design Unit 5
Compiler Design Unit 5
Algorithms - Aaron Bloomfield
Algorithms - Aaron Bloomfield
Linear Search
Linear Search
Type checking compiler construction Chapter #6
Type checking compiler construction Chapter #6
Intermediate code- generation
Intermediate code- generation
Inner join and outer join
Inner join and outer join
Sql group functions
Sql group functions
MS Sql Server: Joining Databases
MS Sql Server: Joining Databases
Intermediate code generation
Intermediate code generation
Code Generation
Code Generation
Asymptotic analysis
Asymptotic analysis
Character set in c
Character set in c
Hash tables
Hash tables
Lecture 12 intermediate code generation
Lecture 12 intermediate code generation
32 shell-programming
32 shell-programming
The look up table (LUT)
The look up table (LUT)
Calculation of Cyclomatic complexity
Calculation of Cyclomatic complexity
Linear Search & Binary Search
Linear Search & Binary Search
Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086
Similar to N5 Code Efficiency
DAA Unit 1.pdf
DAA Unit 1.pdf
Nirmalavenkatachalam
13 javascript techniques to improve your code
13 javascript techniques to improve your code
Surendra kumar
Writing Readable Code
Writing Readable Code
eddiehaber
C# coding standards, good programming principles & refactoring
C# coding standards, good programming principles & refactoring
Eyob Lube
Designing function families and bundles with java's behaviors parameterisatio...
Designing function families and bundles with java's behaviors parameterisatio...
Alain Lompo
How can JAVA Performance tuning speed up applications.pdf
How can JAVA Performance tuning speed up applications.pdf
Mindfire LLC
Introduction to functional programming
Introduction to functional programming
Thang Mai
The Economics of OptimJ
The Economics of OptimJ
Patrick Viry
Effective Programming In Scala
Effective Programming In Scala
Harsh Sharma
YAGNI Principle and Clean Code
YAGNI Principle and Clean Code
Luan Reffatti
Java and effective programming. Is it possible? - IAESTE Case Week 2016
Java and effective programming. Is it possible? - IAESTE Case Week 2016
Łukasz Koniecki
24 Multithreaded Algorithms
24 Multithreaded Algorithms
Andres Mendez-Vazquez
Quick Intro to Clean Coding
Quick Intro to Clean Coding
Ecommerce Solution Provider SysIQ
Lecture No 13.ppt
Lecture No 13.ppt
AhmadNaeem59
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
Hamad Odhabi
12.6-12.9.pptx
12.6-12.9.pptx
WinterSnow16
Codings Standards
Codings Standards
Philip Johnson
9-Coding.ppt
9-Coding.ppt
KomalSinghGill
9 Tips to write efficient and scalable code.pdf
9 Tips to write efficient and scalable code.pdf
Oprim Solutions
Functional programming is not about complicated things
Functional programming is not about complicated things
Michael Langford
Similar to N5 Code Efficiency
(20)
DAA Unit 1.pdf
DAA Unit 1.pdf
13 javascript techniques to improve your code
13 javascript techniques to improve your code
Writing Readable Code
Writing Readable Code
C# coding standards, good programming principles & refactoring
C# coding standards, good programming principles & refactoring
Designing function families and bundles with java's behaviors parameterisatio...
Designing function families and bundles with java's behaviors parameterisatio...
How can JAVA Performance tuning speed up applications.pdf
How can JAVA Performance tuning speed up applications.pdf
Introduction to functional programming
Introduction to functional programming
The Economics of OptimJ
The Economics of OptimJ
Effective Programming In Scala
Effective Programming In Scala
YAGNI Principle and Clean Code
YAGNI Principle and Clean Code
Java and effective programming. Is it possible? - IAESTE Case Week 2016
Java and effective programming. Is it possible? - IAESTE Case Week 2016
24 Multithreaded Algorithms
24 Multithreaded Algorithms
Quick Intro to Clean Coding
Quick Intro to Clean Coding
Lecture No 13.ppt
Lecture No 13.ppt
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
12.6-12.9.pptx
12.6-12.9.pptx
Codings Standards
Codings Standards
9-Coding.ppt
9-Coding.ppt
9 Tips to write efficient and scalable code.pdf
9 Tips to write efficient and scalable code.pdf
Functional programming is not about complicated things
Functional programming is not about complicated things
More from Forrester High School
Program Design
Program Design
Forrester High School
Database Evaluation
Database Evaluation
Forrester High School
Testing SQL
Testing SQL
Forrester High School
SQL
SQL
Forrester High School
Database Query Design
Database Query Design
Forrester High School
Data Dictionary
Data Dictionary
Forrester High School
Compound Keys
Compound Keys
Forrester High School
Entity Occurrence Diagrams
Entity Occurrence Diagrams
Forrester High School
Entity Relationship Diagrams
Entity Relationship Diagrams
Forrester High School
Database Analysis
Database Analysis
Forrester High School
Software Evaluation
Software Evaluation
Forrester High School
Software Testing
Software Testing
Forrester High School
Standard Algorithms
Standard Algorithms
Forrester High School
File Handling
File Handling
Forrester High School
Python Predefined Functions
Python Predefined Functions
Forrester High School
Python Substrings
Python Substrings
Forrester High School
Variable Scope
Variable Scope
Forrester High School
Sub-programs
Sub-programs
Forrester High School
Records in Python
Records in Python
Forrester High School
Parallel arrays in python
Parallel arrays in python
Forrester High School
More from Forrester High School
(20)
Program Design
Program Design
Database Evaluation
Database Evaluation
Testing SQL
Testing SQL
SQL
SQL
Database Query Design
Database Query Design
Data Dictionary
Data Dictionary
Compound Keys
Compound Keys
Entity Occurrence Diagrams
Entity Occurrence Diagrams
Entity Relationship Diagrams
Entity Relationship Diagrams
Database Analysis
Database Analysis
Software Evaluation
Software Evaluation
Software Testing
Software Testing
Standard Algorithms
Standard Algorithms
File Handling
File Handling
Python Predefined Functions
Python Predefined Functions
Python Substrings
Python Substrings
Variable Scope
Variable Scope
Sub-programs
Sub-programs
Records in Python
Records in Python
Parallel arrays in python
Parallel arrays in python
Recently uploaded
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
Dr. Ravikiran H M Gowda
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
VishalSingh1417
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
Jisc
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
Poonam Aher Patil
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
neillewis46
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
Celine George
Application orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
RamjanShidvankar
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
MaritesTamaniVerdade
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
TechSoup
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
camerronhm
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
Pooky Knightsmith
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
AreebaZafar22
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
Jisc
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
Elizabeth Walsh
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Denish Jangid
Spatium Project Simulation student brief
Spatium Project Simulation student brief
Association for Project Management
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
Celine George
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
jbellavia9
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
Recently uploaded
(20)
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
Application orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Spatium Project Simulation student brief
Spatium Project Simulation student brief
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
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Ă...
N5 Code Efficiency
1.
Code Efficiency
2.
What is efficient code?
A program can be written in may different ways. Although the different solutions achieve the same result, programmers should try and write code that is efficient. Efficient code is best explained in examples...
3.
Repetition This is notefficient code. It
does the same thing 5 times. How could it be made more efficient?
4.
Repetition By using a
loop the code is more efficient. This is especially the case when looping a large number of times.
5.
1DArrays This is notefficient code. It
uses 6 variables to storethenames of 6 users. How could it be made more efficient?
6.
1DArrays A 1D array
can be used to store the 6 names. This makes the code more efficient.
7.
Selection This is notefficient code. It
makes 4 comparisons every time. How could it be made more efficient?
8.
Selection By using elif
and else statements, the code will not always run all 4 comparisons This makes the code more efficient.
9.
Logical Operators Splitting the if statement
into 2 like this is not the best solution. How else might it be done?
10.
Logical Operators It is betterpractice to
use and / or to createa complex if statement. More readable code
Download now