test <<

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

1/7

encourage image

There's no tags or description

Looks like no tags are added yet.

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

No analytics yet

Send a link to your students to track their progress

8 Terms

1
New cards

comment from <<test>>

cout « “hello” << endl

2
New cards

```
const a = 2

const b = 4

const result = a + b
```

```

#include <iostream> // Required for printing and reading text

#include <string> // Required to use text variables

// A simple dummy function that adds two numbers together

int calculateSum(int number1, int number2) {

return number1 + number2;

}

// The main entry point where the program starts running

int main() {

// 1. Creating dummy variables (data storage)

std::string programmerName = "Alex";

int initialScore = 10;

int bonusPoints = 5;

// 2. Printing basic text output to the screen

std::cout << "Hello, World!" << std::endl;

std::cout << "Welcome to C++, " << programmerName << "!" << std::endl;

// 3. Calling our custom function and saving the result

int totalScore = calculateSum(initialScore, bonusPoints);

std::cout << "Your total starting score is: " << totalScore << std::endl;

// 4. Taking live input from the user

int userAge;

std::cout << "Enter your age: ";

std::cin >> userAge;

// 5. Basic conditional logic (decision making)

if (userAge >= 18) {

std::cout << "You are an adult in this simulation." << std::endl;

} else {

std::cout << "You are a minor in this simulation." << std::endl;

}

return 0; // Signals to the computer that the program completed successfully

}

```

3
New cards

∫abx2dx=b3−a

𝑏𝑎𝑥2𝑑𝑥=𝑏3−𝑎33

x=b±b24ac2aabx2dx=b3a33c=a2+b2abx2+y2=z2yn\begin{array}{l} x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \\\\ \int_{a}^{b} x^2 \,dx = \frac{b^3 - a^3}{3} \\\\ c = \sqrt{a^2 + b^2} \\\\ \frac{a}{b} \\\\ x^2 + y^2 = z^2 \\\\ \sqrt[n]{y} \end{array}

4
New cards

\ce{2H2 + O2 -> 2H2O}

matter (like \(\ce{(g)}\) or \(\ce{(aq)}\)), reversible arrows (\(\ce{\mathnormal{\xrightleftharpoons{}}}\)), or complex organic molecules to this code

5
New cards

<p class="text-styled">This is a paragraph of text.</p>

<p class="text-styled">This is a paragraph of text.</p>

6
New cards

cout<<"First Int "<<1stInt<<endl;

cout<< "Second Int"<< second_Int<<endl;

```

∫ a→b v_vec(t) dt = <∫ a→b f(t) dt, ∫ a→b g(t) dt, ∫ a→b h(t) dt>

∫ v_vec dt = <∫ f(t) dt, ∫ g(t) dt, ∫ h(t) dt>`;

```

7
New cards
8
New cards