Computer Applications (Commerce) – XII Chapter 3 Functions

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/30

flashcard set

Earn XP

Description and Tags

A set of vocabulary flashcards covering the core concepts of programming functions, predefined C++ library functions, and user-defined function parameters.

Last updated 6:18 AM on 7/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

31 Terms

1
New cards

Modularisation

The process of breaking large programs into smaller sub programs.

2
New cards

Functions

A named unit of statements in a program to perform a specific task, which can be predefined or user-defined.

3
New cards

Parameters (Arguments)

The data required for performing the task given to the function, provided within a pair of parentheses.

4
New cards

Value returned

The result given by a function after performing its task; a function can return only one value or no value.

5
New cards

Predefined functions

Ready-to-use functions available in header files that must be included to use them.

6
New cards

getchar()

A console function in cstdio or stdio.h used to input a character.

7
New cards

putchar()

A console function in cstdio or stdio.h used to display a character.

8
New cards

get()

A stream function in iostream used to input a character or a string of a specific maximum length.

9
New cards

getline()

A stream function in iostream used to input a string of a specified maximum length.

10
New cards

put()

A stream function in iostream used to display a character.

11
New cards

write()

A stream function in iostream used to display a string of a specified maximum length.

12
New cards

strlen()

A string function in cstring or string.h used to find the length of a string.

13
New cards

strcpy()

A string function in cstring or string.h used to copy one string into another.

14
New cards

strcat()

A string function in cstring or string.h used to append (concatenate) one string to another.

15
New cards

strcmp()

A string function that compares two strings; returns 0 if they are the same, a negative value if the first is lower, and a positive value if the first is higher.

16
New cards

strcmpi()

A string function that compares two strings while ignoring the case of the characters.

17
New cards

abs()

A mathematical function in cmath or math.h used to find the absolute value of an integer.

18
New cards

fabs()

A mathematical function in cmath or math.h used to find the absolute value of a floating point number.

19
New cards

sqrt()

A mathematical function in cmath or math.h used to find the square root of a number.

20
New cards

pow()

A mathematical function that takes two arguments xx and yy and returns the value of xyx^y.

21
New cards

isupper()

A character function that returns non-zero if a character is in upper case and 0 otherwise.

22
New cards

islower()

A character function that returns non-zero if a character is in lower case and 0 otherwise.

23
New cards

isalpha()

A character function that returns non-zero if a given character is an alphabet and 0 otherwise.

24
New cards

isdigit()

A character function that returns non-zero if a character is a digit and 0 otherwise.

25
New cards

isalnum()

A character function that returns non-zero if a character is alphanumeric and 0 otherwise.

26
New cards

toupper()

A character function used to convert a given character into its uppercase equivalent.

27
New cards

tolower()

A character function used to convert a given character into its lowercase equivalent.

28
New cards

Function Prototype

The declaration of a function that provides the compiler with names, return types, number and type of arguments, and accessibility.

29
New cards

Formal arguments

The variables used in the function definition as arguments to receive values.

30
New cards

Actual (original) arguments

The constants, variables, or expressions used in the function call to pass values.

31
New cards

Default arguments

Formal arguments that are initialized with values within the function declaration or definition.