Dasturlash I” fanidan 1-oraliq nazorat savollari Kompyuterlar, dasturlar va C++ ga kirish
tarix 12.12.2022 ölçüsü 17,76 Kb. #74124
oraliq
“Dasturlash I” fanidan 1-oraliq nazorat savollari
1. Kompyuterlar, dasturlar va C++ ga kirish
Kompyuter nima (hardware, software )? Protsessor (CPU ).
Bitlar va baytlar. Xotira (RAM ).
Tashqi xotira (storage devices ).
Kiritish va chiqarish qurilmalari (input, output devices ). Aloqa qurilmalari (communication devices ).
Dasturlash tillari (machine language, assembly language, high-level language ).
Operatsion tizimlar (controlling, monitoring , allocating, assigning, scheduling ). C++ tarixi (BCPL, B, C, C++ ).
C++ da eng sodda dastur (console, console input, console output, main, comment ).
Sintaktik xatoliklar (syntax error, compile error ).
Dastur bajarilish vaqtidagi va mantiqiy xatoliklar (runtime error, logic error )
Umumiy xatoliklar (common error1, common error2, common error3, common error4 ).
2. Elementar dasturlash
Sodda dastur yozish (problem, algorithm, pseudocode ). Klaviaturadan o’qish (input, prompt ).
Identifikatorlar (identifier, identifier naming rules, case-sensitive ). O’zgaruvchilar (declare variable, variable naming convention ).
Ta’minlash operatorlari va ta’minlash ifodalari (assignment operator , expression ). Nomlangan konstantalar (constant, const keyword, benefits of constants ).
Sonli ma’lumotlar turlari va amallar (numeric types, int, float ).
Sonli literallar (literal, octal and hexadecimal literals ). Arifmetik amallarni bajaruvchi operatorlar (operator, operands, integer division, modulo ).
Darajaga ko’tarish amallari (pow(a,b) ). Arifmetik ifodalarda amallar bajarilish tartibi (operator precedence rule ).
Inkrement va decrement operatorlari (++, --, postincrement, preincrement ). Sonli ma’lumot turlarni o’zgartirish (numeric type conversions , casting operator ).
Dasturni ishlab chiqishda talablarni aniqlash, tizimli tahlil va loyihalash bosqichlari (requirements specification, system analysis, system design ).
Dasturni ishlab chiqish jarayonida kod yozish va tekshirish bosqichlari (implementation, testing ).
Umumiy xatoliklar (unused variables, integer overflow, round-off errors , unintended integer division, forgetting header files ).
3. Tanlash operatorlari
bool ma’lumot turi (bool data type, Boolean variable, convert numbers to a bool value );
if – shart operatori (if statement,flowchart );
Ikki tarmoqli if-else operatori (two way if-else statement ).
Ichma-ich joylashgan if va ko`p tarmoqli if-else operatorlari (nested if statement, multi way if statement );
Shartli operatorlarda ko`p uchraydigan xatoliklar;
Tasodifiy sonlarni hosil qilish (rand () function, srand (seed) function )
Mantiqiy operatorlar (Logical operators – !, &&, and || );
switch operatori (switch statement );
Shartli ifodalar (conditional expression );
Amallarning bajarilish tartibi va assotsiativligi (operator precedence, operator associativity ).
4. Matematik funksiyalar. Belgilar va satrlar
Matematik funksiyalar (Trigonometric Functions , Exponent Functions );
Matematik funksiyalar (Rounding Functions, min, max, and abs Functions );
Belgili ma’lumot turi, belgilar jadvali, belgini klaviaturadan o`qish va maxsus birikmalar (char type, ASCII, read character, escape sequence );
Belgilar ustida sonli va munosabat amallari (numeric operators on characters, comparing and testing characters );
Satrli ma’lumot turi, satr funksiyalari (instance function, at(index) );
Satrdan belgini ajratib olish. Satrlarni qo`shish (subscript operator, string concatenation );
Satrlarni taqqoslash. Satrni klaviaturadan o`qish (comparing strings, read a string );
Satrli ma’lumotni konsol oynaga chiqarilishini formatlash (format console output );
Fayldan kiritish (stream manipulator, writing to a file );
Faylga chiqarish (stream manipulator, reading from a file );
Dostları ilə paylaş: