What are the three types of flow-control statements?
Click to see answer
Sequential, Selection, and Hydration.
Click to see question
What are the three types of flow-control statements?
Sequential, Selection, and Hydration.
What is functional programming?
A straightforward method of building software that involves using pure functions.
What is variable declaration?
The process of defining a variable in a programming language by specifying its name and characteristics.
What are the rules for declaring a variable?
Variable names are usually alphanumeric (A-Z, 0-9) and can include special characters like underscore (_) and dollar sign ($).
What must be done after declaring a variable?
The variable must be initialized by assigning a value to it.
What does IDE stand for?
Integrated Development Environment.
What is initialization in programming?
The process of assigning a value to a variable after it has been declared.
What is the primary purpose of an IDE?
To write code and organize text groups.
Do all programming languages have the same method for initializing variables?
No, every programming language has its own method of initializing variables.
Name a feature of IDE that helps in identifying errors in code.
Debugging.
What are functions in programming?
Functions are containers that take in a set of inputs and return the output.
What feature of an IDE assists with writing code by suggesting completions?
Code Completion.
What does Object Oriented Programming (OOP) focus on?
OOP focuses on objects and methods.
What does Syntax Highlighting do in an IDE?
It visually distinguishes different elements of code.
What is one principle of Object Oriented Programming?
Class.
Give an example of a commonly used IDE.
Visual Studio Code (VSCode).
What is a data structure?
A collection of data values that includes operations that can be applied to the data.
What is dynamic binding in OOP?
A principle that allows method calls to be resolved at runtime.
Name another example of an IDE.
Eclipse.
Why are data structures important in computer programming?
They help in organizing, managing, and storing data quickly and efficiently.
What is inheritance in OOP?
A principle that allows a class to inherit properties and methods from another class.
What is another IDE example besides Visual Studio Code and Eclipse?
Netbeans.
What is the output of the example program provided?
hello world
What is the basic syntax for variable declaration?
data_type variable_name = value;
What does polymorphism mean in OOP?
The ability to present the same interface for different underlying data types.
What is the purpose of the 'printf' function in the example program?
To print the string stored in the 'greet' variable.
What does 'data_type' represent in variable declaration?
The type of data that the variable can hold.
What is abstraction in OOP?
The concept of hiding the complex reality while exposing only the necessary parts.
What is the correct syntax for declaring a character array in C?
char greet[11] = 'hello world';
What is an identifier in programming?
The name given to a variable.
What is encapsulation in OOP?
The bundling of data with the methods that operate on that data.
What is the return value of the main function in the example program?
0
What are the keywords for data types in programming?
int, char, str, bool, enum, char[].
What is debugging?
Debugging involves detecting and removing existing and potential errors, defects, or loopholes.
What does 'int' represent?
Integer data type.
What does 'char' represent?
Character data type.
What is an example of variable declaration for integers?
int a, b, c; a=10; b=12; c=14;
How do you declare a character array in C?
char str[30];
What is the purpose of the 'bool' data type?
To represent boolean values (true or false).
What does 'enum' represent in programming?
Enumerated type, which defines a variable that can hold a set of predefined constants.