āĻāϏ⧠āĻāĻāĻĻāĻŽ zero āĻĨā§āĻā§ âC Constantsâ āĻŦā§āĻā§ āύā§āĻ â super beginnerâfriendly way te, Banglish mix e, many examples āϏāĻš â C Constants â āĻā§ & āĻā§āύ?Âļ Constant = āϝā§āĻāĻžāϰ value program āĻāϞāĻžāϰ āĻŽāϧā§āϝ⧠change āĻšāĻŦā§ āύāĻžāĨ¤ āϝā§āĻŽāύ: exam fee fixed 500 āĻāĻžāĻāĻžāĨ¤ Code āĻ 500 āĻšāĻā§āĻā§ āĻāĻāĻāĻž literal constant. Analogy: Constant āĻŽāĻžāύ⧠āĻŦāĻžāϏā§āϰ ticket price āĻāϰ āĻŽāϤā§âprinting āĻšā§ā§ āĻā§āĻā§, āĻāϞ⧠āϝāĻžāĻā§āĻžāϰ āĻāĻā§ price āĻŦāĻĻāϞāĻžāĻŦā§ āύāĻž â Big Picture (Flowchart đ§)Âļ Start ââ> Number āϞāĻžāĻāĻŦā§? â ââ> Integer? â base (10/8/16) āĻ āĻŋāĻ āĻāϰ⧠â type & suffix (U/L/LL) āĻ āĻŋāĻ āĻāϰ⧠â ââ> Floating? â decimal/scientific â suffix (f / l) āϞāĻžāĻāĻŦā§? ââ> Character āϞāĻžāĻāĻŦā§? â 'A' āĻŦāĻž '\n' āĻŦā§āϝāĻŦāĻšāĻžāϰ ââ> String āϞāĻžāĻāĻŦā§? â "Hello" (null-terminated) ââ> Symbolic name āĻĻāϰāĻāĻžāϰ? â #define / const / enum ââ> Compile-time constant āĻĻāϰāĻāĻžāϰ? â #define āĻŦāĻž enum (best) 1) Numeric ConstantsÂļ 1.1 Integer Constants (decimal, octal, hex)Âļ āϞāĻŋāĻāύ Base Example Meaning Notes decimal 10 42 42 most common â octal 8 052 42 leading 0 āĻŽāĻžāύ⧠octal â ī¸ hex 16 0x2A 42 AâF allowed Suffix (type hint): U â unsigned L â long LL â long long combine: UL, LLU, etc. (order usually doesnât matter) Examples: 123 // int 123U // unsigned int 123L // long 123LL // long long 0xFFU // unsigned hex â ī¸ Common mistakes 08 āĻŦāĻž 09 āϞāĻŋāĻāϞ⧠errorâāĻāĻžāϰāĻŖ leading 0 āĻĻāĻŋāϞ⧠āϤāĻž octal āϧāϰāĻž āĻšā§, āĻāϰ octal-āĻ 8/9 āĻĨāĻžāĻā§ āύāĻž â āĻŦā§ number āϞāĻŋāĻāϞ⧠overflow āĻšāϤ⧠āĻĒāĻžāϰā§; āĻāĻžāĻāĻĒ/suffix āĻŦā§āĻā§ āύāĻžāĻ (LL, U) â 1.2 Floatingâpoint Constants (float/double/long double)Âļ āϞāĻŋāĻāύ Example Type (default) Notes Decimal 3.14, .5, 2. double dot āĻĨāĻžāĻāϞ⧠float family Scientific 1.23e3 = 1230 double e āĻŦāĻž E Suffix 3.14f float āĻā§āĻ āĻŽā§āĻŽāϰāĻŋ āĻĻā§āϰā§āϤ calc Suffix 3.14L long double high precision Examples: 3.0 // double 3.0f // float 6.022e23 // double (Avogadro) 1.0L // long double â ī¸ printf format mismatch āĻĻāĻŋāϞ⧠garbage/undefined output āĻāϏāϤ⧠āĻĒāĻžāϰā§: float/double print â %f long double â %Lf 2) Character & String ConstantsÂļ 2.1 Character Constants: single quotes ' 'Âļ Example Meaning 'A' char 'A' '\n' newline '\t' tab '\0' null (string terminator) '\x41' 'A' in hex '\101' 'A' in octal Escape quickâtable: Escape Effect \\ backslash \' single quote \" double quote \n newline \t tab \0 null â ī¸ 'A' vs "A" 'A' â char (ā§§āĻāĻž character) â "A" â string (char array + '\0') â "A" āĻā§ char āĻ assign āĻāϰāϞ⧠warning/error â 2.2 String Literals: double quotes " "Âļ "Hello" // 'H' 'e' 'l' 'l' 'o' '\0' "Hi" " There" // auto-concatenate â "Hi There" â ī¸ String immutable: literal modify āĻāϰāĻž āϝāĻžā§ āύāĻžāĨ¤ char *s = "Hi"; s[0] = 'B'; // â undefined behavior āĻāĻžāϞ⧠practice: char s[] = "Hi"; // modifiable copy s[0] = 'B'; // â "Bi" 3) Symbolic Constants: #define, const, enumÂļ āĻāĻā§āϞā§āϰ āĻāĻĻā§āĻĻā§āĻļā§āϝ: magic number/char āύāĻž āϞāĻŋāĻā§ meaningful name use āĻāϰāĻž â 3.1 #define (Preprocessor Macro)Âļ #define PI 3.1415926535 #define MAX_STUDENTS 60 #define NEWLINE '\n' compile āĻšāĻāϝāĻŧāĻžāϰ āĻāĻā§āĻ text replace āĻšā§ Compile-time constant āĻšāĻŋāϏā§āĻŦā§ use āĻšā§ (array size, case label āĻāϤā§āϝāĻžāĻĻāĻŋ) āĻāĻžāĻāĻĒ āύā§āĻ (type-less), āϤāĻžāĻ misuse āĻšāϞ⧠bug āĻāϏāϤ⧠āĻĒāĻžāϰ⧠â ī¸ 3.2 const (Readâonly variable)Âļ const int LIMIT = 100; // usually initialize āĻāϰāĻŦā§ const double RATE = 0.05; type āĻāĻā§ (int/doubleâĻ) Block scope āĻ uninitialized const technically allowed, but use āĻāϰāĻž risky â ī¸ Always initialize â Preprocessor āύā§, āϤāĻžāĻ āĻāĻŋāĻā§ āĻāĻžā§āĻāĻžā§ compileâtime constant āύāĻžāĻ āϧāϰāĻž āĻšāϤ⧠āĻĒāĻžāϰ⧠(āĻŦāĻŋāĻļā§āώ āĻāϰ⧠āĻĒā§āϰā§āύ⧠standard/contexts) 3.3 enum (Enumerator constants)Âļ enum { BUF_SIZE = 1024, TIMEOUT_MS = 5000 }; values are integers (constant expressions) Compile-time constant â array size, switch case, āĻāϤā§āϝāĻžāĻĻāĻŋāϤ⧠safe â Quick CompareÂļ Feature #define const enum Type safety â â â (int) Compile-time expr â depends â Debug visibility â (text replace) â â Best for global fixed numbers, feature flags typed readâonly values integer ids, array sizes 4) Format Specifier CheatâSheet (for printf/scanf) đ§žÂļ Type Literal Example printf scanf int 42 %d %d unsigned int 42U %u %u long 42L %ld %ld long long 42LL %lld %lld float 3.14f %f (promoted to double) %f double 3.14 %f %lf long double 3.14L %Lf %Lf char 'A' %c %c string "Hi" %s %s â ī¸ Common trap: scanf āĻ double āĻĒā§āϤ⧠%lf āĻāĻžāĻ; printf āĻ double print āĻāϰāϤ⧠%fāĨ¤ 5) Initial Values (Context āĻ āύā§āϝāĻžā§ā§)Âļ Local nonâstatic variable (including const) â uninitialized = garbage â ī¸ void f(void){ const int x; // allowed, but value indeterminate â // printf("%d", x); // UB } â Always initialize: const int x = 10; Global/static variable â no initializer āĻĻāĻŋāϞ⧠default 0 static const int k; // becomes 0 by default, but better to set explicitly Literal constants (e.g., 42, 3.14) â āĻāĻĻā§āϰ āϤ⧠init āϞāĻžāĻā§ āύāĻž; āĻāϰāĻž direct value â 6) Lots of Tiny Examples (with expected outputs)Âļ #include <stdio.h> int main(void) { // Integer bases printf("%d\n", 052); // 42 (octal) printf("%d\n", 0x2A); // 42 (hex) // printf("%d\n", 08); // â invalid (8 not allowed in octal) // Suffix printf("%u\n", 3000000000U); // unsigned printf("%lld\n", 1234567890123LL); // Floating & scientific printf("%f\n", 3.0); // 3.000000 printf("%f\n", 1.23e3); // 1230.000000 printf("%Lf\n", 3.14L); // needs %Lf // Char & escapes printf("%c\n", 'A'); // A printf("Line1\\nLine2\n"); // prints: Line1\nLine2 printf("Line1\nLine2\n"); // real newline // String & concatenation printf("%s\n", "Hi" " There"); // Hi There // Symbolic constants #define TAX 0.15 const double rate = 0.15; enum { MAXN = 1000 }; printf("%f %f %d\n", TAX, rate, MAXN); return 0; } 7) Quick Summary TablesÂļ Numeric literal quickârefÂļ Need Write like Notes Normal int 123 %d Unsigned 123U %u Long long 123LL %lld Hex 0xFF base 16 Octal 077 leading 0 â ī¸ Float 3.14f %f Double 3.14 %f Long double 3.14L %Lf Scientific 6.02e23 big/small numbers Escape quickârefÂļ You want Use Newline \n Tab \t Quote inside \" or \' Backslash \\ 8) Choosing the Right Kind (Mini Flowchart)Âļ Number? ââ Integer? â big range āϞāĻžāĻāĻŦā§? â ââ No â int (e.g., 100) â ââ Yes â long long (e.g., 100LL) / unsigned if non-negative ââ Floating? â precision āĻĻāϰāĻāĻžāϰ? ââ Normal â double (e.g., 3.14) ââ Very high â long double (e.g., 3.14L) 9) Pro Tips & PitfallsÂļ â ī¸ Leading zero = octal â 010 is 8, not 10! â ī¸ Format mismatch â double print with %f, read with %lf. â ī¸ 'A' vs "A" mix up āĻā§āϰ⧠āύāĻž â char vs string. â Meaningful names use āĻāϰā§: #define MAX_USERS 100 or enum{MAX_USERS=100}; â Array size/case label āĻāϰ āĻāύā§āϝ #define/enum safer than const in some compilers. â Always initialize const (esp. local/block scope). â Readability first: big number āĻ underscore āύā§āĻ C āϤā§âgrouping comments āĻĻāĻžāĻ āĻŦāĻž hex āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻāϰ⧠if helpful. 10) Mini Exercises (Try yourself)Âļ āύāĻŋāĻā§āϰ literals āĻā§āϞā§āĻā§ āϏāĻ āĻŋāĻ format specifier āĻĻāĻŋā§ā§ print āĻāϰā§: 42U, 1234567890123LL, 3.5f, 3.5, 3.5L, 'Z', "Hello" āĻā§āύāĻā§āϞ⧠valid? āĻā§āύ? 08, 0x1F, 'AB', '\x4A', "A\0B" #define, const, enumâ āϤāĻŋāύ āĻāĻžāĻŦā§ BUFFER_SIZE = 256 āϏā§āĻ āĻāϰ⧠code āϞāĻŋāĻā§ āĻāĻāĻāĻŋ array declare āĻāϰā§āĨ¤ 11) Final CheatâCard (copyâpaste friendly)Âļ Integer: 10, 10U, 10L, 10LL, 0xFF, 077 Float family: 3.0f (float), 3.0 (double), 3.0L (long double), 1e-3 Char: 'A', '\n', '\x41' String: "Hello", "Hi" " There" Specifiers: %d %u %ld %lld %f %Lf %c %s Symbolic: #define N 100, const int N=100;, enum{N=100}; Always init const; beware leading 0; match format specifiers. āĻ āĻŋāĻ āĻāĻā§ đ āĻāĻŽāĻŋ āϤā§āĻŽāĻžāϰ āĻāύā§āϝ C Constants āĻāĻĒāĻŋāĻā§āϰ āĻāĻĒāϰ ā§Šā§ĻāĻāĻž MCQ āĻŦāĻžāύāĻŋā§ā§ āĻĻāĻŋāĻā§āĻāĻŋ â āĻāĻāĻĻāĻŽ beginner-friendly āĻĨā§āĻā§ āĻāĻāĻā§ tricky āĻĒāϰā§āϝāύā§āϤ, āϝāĻžāϤ⧠āϤā§āĻŽāĻŋ āϧāĻžāĻĒā§ āϧāĻžāĻĒā§ āĻŦā§āĻā§ āĻļāĻŋāĻāϤ⧠āĻĒāĻžāϰā§āĨ¤ āϏāĻŦāĻā§āϞ⧠MkDocs-MCQ plugin compatible format āĻ āĻĨāĻžāĻāĻŦā§, āϤāĻžāĻ āϤā§āĻŽāĻŋ āϏāϰāĻžāϏāϰāĻŋ .md āĻĢāĻžāĻāϞ⧠paste āĻāϰ⧠āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻāϰāϤ⧠āĻĒāĻžāϰāĻŦā§āĨ¤ āĻāĻŽā§āĻāĻžāϰ! āύāĻŋāĻā§ āϤā§āĻŽāĻžāϰ C Constants MCQâāĻā§āϞā§āĻā§ sectionâwise āĻāĻžāĻ āĻāϰ⧠collapsible accordion (MkDocs Material / Pymdown Admonitions) āĻāĻāĻžāϰ⧠āĻĻāĻŋāϞāĻžāĻŽāĨ¤ Syntax: ??? <type> "Title" â āϤāĻžāϰāĻĒāϰ āĻā§āϤāϰā§āϰ āĻāύā§āĻā§āύā§āĻ ā§Ēâspace indent. āϏāĻŦ MCQ official mcq format āĻāĨ¤ āύā§āĻ: section āĻāĻžāĻāĻĒ āύā§āĻāĨ¤ Common āĻāĻžāĻāĻĒ: note, info, tip, example, question āĻāϤā§āϝāĻžāĻĻāĻŋāĨ¤ āĻāĻŽāĻŋ example āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻāϰā§āĻāĻŋ āϝāĻžāϤ⧠neutral āϞāĻžāĻā§āĨ¤ Easy â C Constants (10 MCQs) C āϤ⧠"constant" āĻŦāϞāϤ⧠āĻā§ āĻŦā§āĻāĻžā§? āĻāĻŽāύ fixed value āϝāĻž program āĻāϞāĻžāĻāĻžāϞ⧠change āĻšā§ āύāĻž āĻāĻŽāύ value āϝāĻž āĻĒā§āϰāϤāĻŋāĻŦāĻžāϰāĻ change āĻšā§ āĻļā§āϧā§āĻ function āĻāϰ āύāĻžāĻŽ āύāĻŋāĻā§āϰ āĻā§āύāĻāĻž decimal integer literal? 123 0123 0x123 Leading 0 āĻĨāĻžāĻāĻž integer literal (āϝā§āĻŽāύ 010) āĻā§āύ base āĻŦā§āĻāĻžā§? Decimal (base 10) Octal (base 8) Hexadecimal (base 16) 0xFF āĻā§āύ base āĻ āϞā§āĻāĻž? Decimal Octal Hexadecimal āĻā§āύ suffix āĻĻāĻŋāϞ⧠unsigned int literal āĻŦā§āĻāĻžā§? U L LL Floating-point literal āĻāϰ default type āĻā§? float double long double āĻā§āύ suffix āĻĻāĻŋāϞ⧠float literal āĻšā§? f L d āĻā§āύ suffix āĻĻāĻŋāϞ⧠long double literal āĻšā§? f L ld Error processing MCQ: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `'A'` āĻāĻŦāĻ `"A"` āĻāϰ āĻŽāϧā§āϝ⧠āĻĒāĻžāϰā§āĻĨāĻā§ ... ^Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/mkdocs_mcq/plugin.py", line 22, in format_mcq config = yaml.safe_load(frontmatter) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 125, in safe_load return load(stream, SafeLoader) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 81, in load return loader.get_single_data() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/constructor.py", line 49, in get_single_data node = self.get_single_node() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 55, in compose_document node = self.compose_node(None, None) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 64, in compose_node if self.check_event(AliasEvent): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 98, in check_event self.current_event = self.state() ~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value if not self.check_token(KeyToken, ValueToken, BlockEndToken): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 116, in check_token self.fetch_more_tokens() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens raise ScannerError("while scanning for the next token", None, "found character %r that cannot start any token" % ch, self.get_mark()) yaml.scanner.ScannerError: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `'A'` āĻāĻŦāĻ `"A"` āĻāϰ āĻŽāϧā§āϝ⧠āĻĒāĻžāϰā§āĻĨāĻā§ ... ^ ```mcqÂļ type: single question: āĻā§āύ escape sequence newline āĻŦā§āĻāĻžā§? [x] \n â NewlineāĨ¤ [ ] \t â āĻāĻāĻž tabāĨ¤ [ ] \0 â āĻāĻāĻž null characterāĨ¤ Medium â Pitfalls & Details (10 MCQs) āύāĻŋāĻā§āϰ āĻā§āύ suffix āĻāĻŽā§āĻŦāĻŋāύā§āĻļāύāĻā§āϞ⧠valid integer suffix? (Select all that apply) UL LLU ULL LUu Error processing MCQ: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `'\x41'` āĻā§āύ character? ^Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/mkdocs_mcq/plugin.py", line 22, in format_mcq config = yaml.safe_load(frontmatter) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 125, in safe_load return load(stream, SafeLoader) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 81, in load return loader.get_single_data() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/constructor.py", line 49, in get_single_data node = self.get_single_node() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 55, in compose_document node = self.compose_node(None, None) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 64, in compose_node if self.check_event(AliasEvent): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 98, in check_event self.current_event = self.state() ~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value if not self.check_token(KeyToken, ValueToken, BlockEndToken): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 116, in check_token self.fetch_more_tokens() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens raise ScannerError("while scanning for the next token", None, "found character %r that cannot start any token" % ch, self.get_mark()) yaml.scanner.ScannerError: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `'\x41'` āĻā§āύ character? ^ āύāĻŋāĻā§āϰ āĻā§āύāĻāĻž invalid integer literal? 077 08 0xABC Error processing MCQ: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `printf("%d", 010);` āĻāĻāĻāĻĒā§āĻ āĻā§ āĻšāĻŦā§? ^Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/mkdocs_mcq/plugin.py", line 22, in format_mcq config = yaml.safe_load(frontmatter) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 125, in safe_load return load(stream, SafeLoader) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 81, in load return loader.get_single_data() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/constructor.py", line 49, in get_single_data node = self.get_single_node() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 55, in compose_document node = self.compose_node(None, None) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 64, in compose_node if self.check_event(AliasEvent): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 98, in check_event self.current_event = self.state() ~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value if not self.check_token(KeyToken, ValueToken, BlockEndToken): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 116, in check_token self.fetch_more_tokens() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens raise ScannerError("while scanning for the next token", None, "found character %r that cannot start any token" % ch, self.get_mark()) yaml.scanner.ScannerError: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `printf("%d", 010);` āĻāĻāĻāĻĒā§āĻ āĻā§ āĻšāĻŦā§? ^ Error processing MCQ: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `1.23e3` āĻāϰ āĻŽāĻžāύ āĻāϤ? ^Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/mkdocs_mcq/plugin.py", line 22, in format_mcq config = yaml.safe_load(frontmatter) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 125, in safe_load return load(stream, SafeLoader) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 81, in load return loader.get_single_data() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/constructor.py", line 49, in get_single_data node = self.get_single_node() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 55, in compose_document node = self.compose_node(None, None) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 64, in compose_node if self.check_event(AliasEvent): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 98, in check_event self.current_event = self.state() ~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value if not self.check_token(KeyToken, ValueToken, BlockEndToken): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 116, in check_token self.fetch_more_tokens() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens raise ScannerError("while scanning for the next token", None, "found character %r that cannot start any token" % ch, self.get_mark()) yaml.scanner.ScannerError: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `1.23e3` āĻāϰ āĻŽāĻžāύ āĻāϤ? ^ C āϤ⧠character constant (āϝā§āĻŽāύ 'A') āĻāϰ type āĻā§? int char string āύāĻŋāĻā§āϰ āĻā§āύāĻā§āϞ⧠compile-time constant āĻšāĻŋāϏā§āĻŦā§ array size/switch label-āĻ āύāĻŋāϰāĻžāĻĒāĻĻā§ use āĻāϰāĻž āϝāĻžā§? (Select all that apply) #define N 100 enum { N = 100 } const int N = 100; Error processing MCQ: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `"Hello"` string literal āĻāĻŋ **mo ... ^Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/mkdocs_mcq/plugin.py", line 22, in format_mcq config = yaml.safe_load(frontmatter) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 125, in safe_load return load(stream, SafeLoader) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 81, in load return loader.get_single_data() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/constructor.py", line 49, in get_single_data node = self.get_single_node() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 55, in compose_document node = self.compose_node(None, None) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 64, in compose_node if self.check_event(AliasEvent): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 98, in check_event self.current_event = self.state() ~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value if not self.check_token(KeyToken, ValueToken, BlockEndToken): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 116, in check_token self.fetch_more_tokens() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens raise ScannerError("while scanning for the next token", None, "found character %r that cannot start any token" % ch, self.get_mark()) yaml.scanner.ScannerError: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `"Hello"` string literal āĻāĻŋ **mo ... ^ Local scope āĻ const int x; (uninitialized) āĻĨāĻžāĻāϞ⧠x āĻāϰ āĻŽāĻžāύ? Garbage/indeterminate 0 Compile error āύāĻŋāĻā§āϰ āĻā§āύāĻāĻŋ valid floating literal? .5 5e .e5 āĻā§āύāĻā§āϞ⧠escape sequence? (Select all that apply) \\ \" \t \y Hard â Tricky & Outputâbased (10 MCQs) Error processing MCQ: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `printf` āĻ **double** print āĻāϰāϤ⧠... ^Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/mkdocs_mcq/plugin.py", line 22, in format_mcq config = yaml.safe_load(frontmatter) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 125, in safe_load return load(stream, SafeLoader) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 81, in load return loader.get_single_data() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/constructor.py", line 49, in get_single_data node = self.get_single_node() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 55, in compose_document node = self.compose_node(None, None) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 64, in compose_node if self.check_event(AliasEvent): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 98, in check_event self.current_event = self.state() ~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value if not self.check_token(KeyToken, ValueToken, BlockEndToken): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 116, in check_token self.fetch_more_tokens() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens raise ScannerError("while scanning for the next token", None, "found character %r that cannot start any token" % ch, self.get_mark()) yaml.scanner.ScannerError: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `printf` āĻ **double** print āĻāϰāϤ⧠... ^ Error processing MCQ: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `scanf` āĻ **double** read āĻāϰāϤ⧠āĻ ... ^Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/mkdocs_mcq/plugin.py", line 22, in format_mcq config = yaml.safe_load(frontmatter) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 125, in safe_load return load(stream, SafeLoader) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 81, in load return loader.get_single_data() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/constructor.py", line 49, in get_single_data node = self.get_single_node() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 55, in compose_document node = self.compose_node(None, None) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 64, in compose_node if self.check_event(AliasEvent): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 98, in check_event self.current_event = self.state() ~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value if not self.check_token(KeyToken, ValueToken, BlockEndToken): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 116, in check_token self.fetch_more_tokens() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens raise ScannerError("while scanning for the next token", None, "found character %r that cannot start any token" % ch, self.get_mark()) yaml.scanner.ScannerError: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `scanf` āĻ **double** read āĻāϰāϤ⧠āĻ ... ^ Error processing MCQ: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `printf("%u", -1);` (32-bit unsi ... ^Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/mkdocs_mcq/plugin.py", line 22, in format_mcq config = yaml.safe_load(frontmatter) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 125, in safe_load return load(stream, SafeLoader) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 81, in load return loader.get_single_data() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/constructor.py", line 49, in get_single_data node = self.get_single_node() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 55, in compose_document node = self.compose_node(None, None) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 64, in compose_node if self.check_event(AliasEvent): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 98, in check_event self.current_event = self.state() ~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value if not self.check_token(KeyToken, ValueToken, BlockEndToken): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 116, in check_token self.fetch_more_tokens() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens raise ScannerError("while scanning for the next token", None, "found character %r that cannot start any token" % ch, self.get_mark()) yaml.scanner.ScannerError: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `printf("%u", -1);` (32-bit unsi ... ^ Error processing MCQ: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `052` (octal) āĻāϰ decimal āĻŽāĻžāύ āĻāϤ? ^Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/mkdocs_mcq/plugin.py", line 22, in format_mcq config = yaml.safe_load(frontmatter) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 125, in safe_load return load(stream, SafeLoader) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/__init__.py", line 81, in load return loader.get_single_data() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/constructor.py", line 49, in get_single_data node = self.get_single_node() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 55, in compose_document node = self.compose_node(None, None) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/composer.py", line 64, in compose_node if self.check_event(AliasEvent): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 98, in check_event self.current_event = self.state() ~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value if not self.check_token(KeyToken, ValueToken, BlockEndToken): ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 116, in check_token self.fetch_more_tokens() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens raise ScannerError("while scanning for the next token", None, "found character %r that cannot start any token" % ch, self.get_mark()) yaml.scanner.ScannerError: while scanning for the next token found character '`' that cannot start any token in "", line 3, column 11: question: `052` (octal) āĻāϰ decimal āĻŽāĻžāύ āĻāϤ? ^ āύāĻŋāĻā§āϰ āĻā§āύāĻāĻŋ valid string literal concatenation? "Hi" " There" 'H' 'i' "Hi" + "There" Constant define āĻāϰāĻžāϰ āĻāĻžāϞ/āύāĻŋāϰāĻžāĻĒāĻĻ āĻāĻĒāĻžā§āĻā§āϞ⧠āĻā§āύāĻā§āϞā§? (Select all that apply) #define MAX 100 enum { MAX = 100 } const int MAX = 100; āύāĻŋāĻā§āϰ āĻā§āύ statement āĻāĻŋ āϏāĻ āĻŋāĻ? "A" modifiable āύ⧠(modify āĻāϰāϞ⧠UB) 'A' modifiable āύ⧠const variable āϏāĻŦāϏāĻŽā§ modify āĻāϰāĻž āϝāĻžā§ char vs string āĻŦāĻŋāώā§ā§ āĻā§āύāĻāĻŋ āĻ āĻŋāĻ? 'A' āĻāĻāĻāĻŋ single character; "A" āĻāĻāĻāĻŋ null-terminated string "A" āĻ 'A' āĻāĻāĻ āĻāĻŋāύāĻŋāϏ "A" āĻā§ char āĻ assign āĻāϰāĻž āϝāĻžā§ warning āĻāĻžā§āĻž Integer literal āĻ base āĻļāύāĻžāĻā§āϤ āĻāϰāĻžāϰ āĻ āĻŋāĻ pair āĻā§āύāĻāĻŋ? 077 â octal, 0xFF â hexadecimal 077 â decimal, 0xFF â octal 077 â hex, 0xFF â decimal Format specifier matchâāϏāĻ āĻŋāĻ āĻā§ā§āĻž āĻŦā§āĻā§ āύāĻžāĻ (Select all that apply) double â %f (printf) double* â %lf (scanf) long double â %Lf (printf/scanf) float â %f (scanf) Submit Quiz Was this page helpful? Thanks for your feedback! Thanks for your feedback! Help us improve this page by using our feedback form.