Problem Solving Techniques – BCA Question Bank

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

1/63

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering logic development, operators, control structures, functions, arrays, strings, storage classes, structures, unions, pointers, and file handling based on BCA syllabus notes.

64 Terms

1
New cards

Problem Solving

The process of finding a solution to a problem using logical steps.

2
New cards

Data Representation

Representing data in a form that a computer can understand and process, such as representing the number 1010 in binary as 10101010.

3
New cards

Flowchart

A graphical representation of the steps of a program or algorithm using specific geometric symbols.

4
New cards

Algorithm

A step-by-step procedure used to solve a problem.

5
New cards

Pseudocode

A simple way of writing program logic using English-like statements.

6
New cards

Decision Tree

A diagram that represents decisions and their possible outcomes.

7
New cards

Character Set

A collection of characters that can be used in a programming language, including letters A–Z, a–z, digits 0–9, and special symbols.

8
New cards

Identifier

The name given to variables, functions, arrays, or other program elements.

9
New cards

Keywords

Reserved words in C that have a predefined meaning, such as int, float, if, else, return, and while.

10
New cards

Variable

A named memory location used to store data that can change during program execution.

11
New cards

Constant

A fixed value that does not change during program execution.

12
New cards

Data Type

Specifies the type of data or value that a variable can store.

13
New cards

Expression

A combination of variables, constants, and operators that produces a value.

14
New cards

Statement

An instruction written in a programming language.

15
New cards

Arithmetic Operators

Operators used to perform mathematical operations: addition (+), subtraction (-), multiplication (*), division (/), and modulus (%).

16
New cards

Relational Operators

Operators used to compare two values, including

17
New cards

Logical Operators

Operators used to combine or reverse conditions, including Logical AND (&&), Logical OR (||), and Logical NOT (!).

18
New cards

Assignment Operator

The operator (=) used to assign a value to a variable.

19
New cards

Unary Operator

An operator that operates on only one operand, such as a++ or a--.

20
New cards

Conditional Operator

A ternary operator used to make decisions using three operands, following the syntax: condition ? expression1 : expression2.

21
New cards

Library Functions

Predefined functions available in C that perform specific tasks, such as printf(), scanf(), sqrt(), and strlen().

22
New cards

Formatted Input

Taking input using specified data formats and format specifiers via functions like scanf().

23
New cards

Formatted Output

Displaying data in a specified format using format specifiers via functions like printf().

24
New cards

Unformatted Input/Output Functions

Functions such as getchar() and putchar() that read or display data without requiring format specifiers.

25
New cards

Control Statement

A statement that controls the flow of execution of a program, such as if, else, switch, while, and for.

26
New cards

If Statement

A control statement that executes a block of code when a specified condition evaluates to true.

27
New cards

If-Else Statement

A control statement that executes one block of code when the condition is true and an alternate block when the condition is false.

28
New cards

Switch Statement

A control structure used to select one option from multiple cases based on the value of an expression.

29
New cards

While Loop

A loop that repeatedly executes statements as long as the condition is true, testing the condition before execution (pre-test).

30
New cards

Do-While Loop

A loop that executes its statements at least once before checking the condition at the end (post-test).

31
New cards

For Loop

A loop used to repeat statements for a specified number of times, combining initialization, condition, and increment in a single statement.

32
New cards

Nested Loop

A loop placed inside another loop, where the outer loop controls the number of repetitions of the inner loop.

33
New cards

Break Statement

A control statement that terminates a loop or switch statement immediately.

34
New cards

Continue Statement

A control statement that skips the current iteration and moves directly to the next iteration of the loop.

35
New cards

Function

A block of code that performs a specific task, providing modularity and reusability.

36
New cards

User-Defined Function

A custom function created by the programmer to perform a specific task.

37
New cards

Function Prototype

A declaration that informs the compiler about the function name, return type, and parameter types before the function is invoked.

38
New cards

Arguments

Values passed to a function during a function call.

39
New cards

Parameters

Variables declared in a function definition used to receive values passed by arguments.

40
New cards

Recursion

A process in which a function calls itself directly or indirectly to solve a problem, requiring a base condition to terminate.

41
New cards

Array

A collection of elements of the same data type stored in continuous memory locations.

42
New cards

One-Dimensional Array

An array that stores elements in a single row or sequential line.

43
New cards

Multidimensional Array

An array that stores data in more than one dimension, such as rows and columns in a two-dimensional array.

44
New cards

String

A collection of characters stored in a character array and terminated by a null character (\0).

45
New cards

strlen()

A library function in that calculates the length of a string, excluding the terminating null character.

46
New cards

strcpy()

A library function in used to copy the contents of one string into another string.

47
New cards

strcat()

A library function in that concatenates or joins two strings together.

48
New cards

strcmp()

A library function in used to compare two strings lexicographically.

49
New cards

Storage Class

A specification that defines the scope, lifetime, and storage properties of a variable.

50
New cards

Automatic Variable

A local variable declared with auto that is created when a block or function starts and exists only while that block is active.

51
New cards

Static Variable

A variable that retains its value between successive function calls rather than being reinitialized.

52
New cards

External Variable

A global variable declared with extern that can be accessed across different functions and source files.

53
New cards

Structure

A user-defined data type that groups different types of data under one name, where each member has its own separate memory space.

54
New cards

Union

A user-defined data type in which all members share the same memory location, meaning only one member's value is stored at a time.

55
New cards

User-Defined Data Type

A custom data type created by the programmer to store data in a specialized form, such as structures, unions, and enumerations.

56
New cards

Pointer

A variable that stores the memory address of another variable.

57
New cards

Address Operator (&)

The unary operator used to retrieve the memory address of a variable.

58
New cards

Dereference Operator (*)

The unary operator used to access or modify the value stored at the memory address held by a pointer.

59
New cards

File Handling

The process of creating, opening, reading, writing, modifying, and closing files using a computer program.

60
New cards

File Pointer

A pointer of type FILE (such as FILE *fp) used by programs to access, track, and manage an active file stream.

61
New cards

fopen()

The standard library function used to open a file in a specified mode (such as read, write, or append).

62
New cards

fclose()

The standard library function used to close an opened file stream.

63
New cards

fprintf()

The file handling function used to write formatted data to a designated file stream.

64
New cards

fscanf()

The file handling function used to read formatted data from a designated file stream.