Year 11 Exam  >  Year 11 Notes  >  Computer for GCSE/IGCSE  >  Library Routines

Library Routines | Computer for GCSE/IGCSE - Year 11 PDF Download

Library Routines

Library routines are preexisting code snippets utilized in programs to execute particular functions.

  • Employing library routines reduces time spent on writing code anew.
  • Library routines are rigorously tested and reliable, minimizing the likelihood of errors.
  • Typical library routines encompass functionalities such as input/output operations and mathematical computations.
  • Integrating libraries into programs involves importing them.
  • The syntax for importing a library may differ based on the programming language.
  • Consulting the library's documentation is crucial to grasp its usage and available functions.

Maths routines

MOD Function

The MOD function returns the remainder when one number is divided by another number.

  • Pseudocode example: x MOD y
  • Python example: x % y
  • Java example: x % y
  • Visual Basic example: x Mod y

DIV Function

The DIV function returns the quotient when one number is divided by another number.

  • Pseudocode example: x DIV y
  • Python example: x // y
  • Java example: x / y
  • Visual Basic example: x \ y

ROUND Function

The ROUND function rounds a number to a specified number of decimal places.

  • Pseudocode example: ROUND(x, n)
  • Python example: round(x, n)
  • Java example: Math.round(x * 10^n) / x;
  • Visual Basic example: Math.Round(x, n)

RANDOM Function

The RANDOM function generates a random number between x and n.

  • Pseudocode example: RANDOM(x, n)
  • Python example: random.randint(x, n)
  • Java example: rand.nextInt(x)
  • Visual Basic example: rand.next(x, n)
The document Library Routines | Computer for GCSE/IGCSE - Year 11 is a part of the Year 11 Course Computer for GCSE/IGCSE.
All you need of Year 11 at this link: Year 11
92 docs|30 tests

Top Courses for Year 11

FAQs on Library Routines - Computer for GCSE/IGCSE - Year 11

1. What are some common library routines that students should follow?
Ans. Some common library routines that students should follow include returning borrowed books on time, maintaining silence in the library, organizing books after use, and utilizing library resources responsibly.
2. How can students effectively manage their time in the library?
Ans. Students can effectively manage their time in the library by setting specific goals for their study session, prioritizing tasks, minimizing distractions, and taking regular breaks to stay focused and productive.
3. What are some tips for maximizing productivity in the library?
Ans. Some tips for maximizing productivity in the library include creating a study schedule, using technology to aid research, collaborating with peers for group study sessions, and seeking assistance from library staff when needed.
4. How can students make the most of library resources for their academic success?
Ans. Students can make the most of library resources for their academic success by familiarizing themselves with the library catalog, utilizing online databases for research, attending library workshops or seminars, and seeking guidance from librarians for research assistance.
5. What are some best practices for maintaining a positive library environment for all users?
Ans. Some best practices for maintaining a positive library environment for all users include respecting others' space and study habits, keeping noise levels to a minimum, cleaning up after oneself, and following library rules and regulations.
92 docs|30 tests
Download as PDF
Explore Courses for Year 11 exam

Top Courses for Year 11

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Extra Questions

,

Important questions

,

Objective type Questions

,

shortcuts and tricks

,

Summary

,

video lectures

,

Library Routines | Computer for GCSE/IGCSE - Year 11

,

mock tests for examination

,

MCQs

,

Library Routines | Computer for GCSE/IGCSE - Year 11

,

Semester Notes

,

Viva Questions

,

Sample Paper

,

study material

,

pdf

,

Free

,

Library Routines | Computer for GCSE/IGCSE - Year 11

,

Exam

,

ppt

,

practice quizzes

,

past year papers

,

Previous Year Questions with Solutions

;