CBSE 2026 results are out, Mukul scored a perfect 100/100 in Computer ScienceSee all toppers →

KwickClips Cyber Safety and Ethics

Cyber Safety and Ethics: 60 short revision clips

One idea per clip, with the answer written out underneath. Each clip links back to the full Cyber Safety and Ethics lesson it came from.

Table comparing C and C++: year, classes, output printf vs cout.Who made C++?40 secC++ code: #include <iostream>, using namespace std, int main() with cout << "Hi".Which line runs first?41 secC++ code std::cout << "Runs " << 48; output Runs 48.What does std:: mean?41 secFlow: save file, compile with g++, fix errors, run.What does g++ do?41 secTable: int 45 4 bytes, double 3.5 8 bytes, char A 1 byte, bool true 1 byte.Which type stores 3.5?41 secC++ code int runs = 48; const int SIX = 6; cout runs + SIX, output 54.Can a const change later?40 secC++ code std::cout << 2 + 3 * 4; output 14.What is (2 + 3) * 4?43 secC++ code std::cout << (double) 7 / 2; output 3.5.What is implicit conversion?40 secC++ switch (1) with case 1 printing A and case 2 printing B, no break, output AB.What does the switch print?41 secTable: while checks before 0 times, do-while after 1 time, for before 0 times.Which loop always runs once?41 secC++ for loop from 1 to 5 with if (i==3) continue; output 1245.Does continue stop the loop?40 secC++ code int fact = 1; for loop fact *= i; output 120.Why start fact at 1?40 secC++ code int add(int a, int b) returning a + b, called with 15 and 10, output 25.What does return do?39 secC++ code void up(int &m) { m += 5; } called on k = 60, output 65.What does & in a parameter do?41 secC++ code inline int fee(int d, int r=50) returning d * r, fee(4) output 200.What does fee(4) return?41 secC++ code with int area(int s) and int area(int l, int b), area(5) output 25.Can return type alone tell them apart?41 secC++ code arrays r = {45, 64} and m = {{7,8},{6,5}}, output 64 6.Where is the last of five scores?42 secTable comparing char array and std::string: ends with, size, join.Why does Riya need 5 boxes?41 secC++ code int a[]={4,6,5}; for (int x : a) s += x; output 15.What should the sum start at?40 secC++ code void up(int a[]) {a[0] += 5;} called on m = {60}, output 65.Is the array copied?42 secC++ code struct Student with roll and marks, Student r{12,72}, output 72.How do you end a struct definition?43 secC++ code typedef long long Mobile; Mobile n = 9876543210; output 9876543210.Does typedef create a new type?39 secC++ code enum Day {MON, TUE, WED}; std::cout << WED; output 2.Where does an enum start?40 secTable: struct default access public, class private; both can have functions.Which is private by default?40 secTable: class blueprint, object real copy, abstraction hide details, encapsulation wrap in class.Are class and object the same?43 secTable: inheritance reuse a class, Car from Vehicle; polymorphism many forms, area().Which is the base class in Car: Vehicle?41 secSlide: any function could change data, hard to model real things, reuse meant copy and paste.What did C++ add to C?43 secList: data hiding private data, message passing objects call, dynamic binding at run time, reusability.What is dynamic binding?45 secTable: private class only, public anywhere, no label private.Why does obj.bal give a compile error?41 secC++ code struct Box { int len; }; Box a{5}, b{8}; output 13.Does defining a class use memory for data?41 secC++ struct A with A() setting b to 0 and A(int x) setting b to x, output 700.What does a constructor share with the class?42 secC++ struct P with destructor printing c, objects a and b, output BA.Can a destructor take arguments?43 secC++ code struct Person with age 16, struct Kid : Person, output 16.Which is the parent?42 secTable: base public member under public, protected and private modes.What mode does a class use if none is written?41 secTable: single A to B, multiple A and B to C, multilevel A to B to C.What does multiple mean?40 secNumbered list: A() base, B() derived, ~B() derived, ~A() base.Which constructor runs first?43 secTable comparing compile time and run time: binding, uses, speed.Is overloading compile time or run time?40 secC++ struct B with operator+ returning B{a + x.a}, t{10} + v{25} gives 35.What is the function named?41 secC++ code struct Shape with virtual void draw, struct Circle overriding draw, Shape *p = &c; p->draw();Where is virtual written?40 secC++ code struct Shape { virtual int area() = 0; }; Shape s; with an error comment.What makes a class abstract?42 secC++ code int m = 72; int *p = &m; *p = 80; output 80.What does &m give?41 secC++ code int *m = new int[2]{7, 9}; output 16; delete[] m;What pairs with new int[n]?40 secC++ struct S with set(int roll) using this->roll = roll, p->set(12), output 12.What does this hold?39 secTable of pointer bugs: wild, dangling, leak, null.How should a pointer start?42 secTable: ifstream read, ofstream write, fstream read and write.Which one writes?41 secC++ code ofstream out writing Riya 72, ifstream in reading n and m, m is 72.Which operator writes to a file?41 secTable: ios::out erases, ios::app adds at end, ios::in reads, ios::binary raw bytes.How do you keep old data?41 secC++ code f.write((char*)&s, sizeof s); and g.read((char*)&t, sizeof t);Which mode is used?41 sec

Want a plan that actually fits your board dates?

Ask Kajal Ma'am directly, 20+ years teaching computer science. Free demo class first, no payment.

Talk to Kajal Ma'am on WhatsApp

Or see the Class 12 Computer Science course →

Studying outside India?

We coach CBSE, IGCSE & international students across the globe, one-to-one, in your local time zone.

Visit International →