Code Skiller logoCB Logo
Logo LearnLearnLogo PracticePracticeLogo HireHireLogo IDEIDE

Fundamentals - I

Binary Number System

What is it and how is it different from decimal?

The binary number system is a numeral system that uses only two digits, 0 and 1, to represent numbers. It is also known as the base-2 system because it operates with base 2.

In contrast, the deci...

Read more

How is Data Stored?

Explain how data is stored in each of the primitive datatype

Primitive data types in programming languages have fixed sizes and formats for storing data. primitive data types are commonly used

  1. Integer (int): Integers are typical...
Read more

Program to print “Hello World”

Code:

#include

using namespace std;

int main() {

cout << "Hello World";

return 0;

}

Now let's break down each line and explain its purpose:

1. ‘ #include using namespace std;’: This line is a pre...

Read more

Identifiers

What are these and how are they useful, what can they be used on?

An identifier is a name used to identify a variable, function, class, object, or any other entity within a program. Identifiers play a crucial role as they provide a way to refer t...

Read more

Keywords

What are these and how are they useful?

Keywords, also known as reserved words, are predefined words in a programming language that have special meanings and are reserved for specific purposes. These words are part of the language's syntax and ca...

Read more

Data Types in C++

What is it and its relevance with regard to a variable

A data type defines the kind of value that a variable can hold. It specifies the nature of the data, such as numbers, characters, or Boolean values.

Relevance

  • Data Constraints: Data t...
Read more

Primitive Data Types

What are all 7 primitive datatypes in C++?

There are several primitive data types that are built into the language.

1. Boolean (‘bool’): Represents a logical value and can have two possible states: ‘true’ or ‘false’. It is typically used fo...

Read more

Data Type Modifiers

All data type modifiers in C++

Data type modifiers allow you to modify the properties of the basic data types.

1. Signed: The ‘signed’ modifier is used with integer types to indicate that the type can hold both positive and negative value...

Read more

Variables - Fundamentals

What are variables?

Variables are named storage locations in a computer's memory that hold values or data. They allow programmers to store, manipulate, and retrieve data during program execution. Variables have a data type that determines the kin...

Read more

Basic Operators in an Expression

Basic Operators in a Expression

Basic operators are fundamental building blocks in programming that allow you to perform operations on variables and values.

Unary - [ +, - ]

The unary operators ‘+’ and ‘-’ are used to represent positive an...

Read more

Library

WEB DEVELOPMENT

FAANG QUESTIONS