NEW
Font size
Worksheetsمسابقة العيد
Total questions: 21
Worksheet time: 11mins
ماهو الرد المناسبة لجملة
"كل عام وانت بخير"
وانت بخير وصحه وسلامه
الله يسلمك
شكراً
Thanks
ماهو الرد المناسب لجملة "عاد عيدكم"
الله يسعدك
علينا وعليكم يعود
الله يسلمك
الله يعيدك
ماهو الرد المناسب لجملة
"من العايدين الفايزين"
من الفايزين العايدين
من العايدين السالمين
من السالمين الغانمين
الله يسلمك
ماهو الرد المناسبة لجملة
"من العايدين الفايزين السالمين الغانمين"
الله يسلمك
من السالمين الغانين
اقلط الله يحييك
الله يسعدك
Task 0
What is the output for
_printf("Hello %s! The first letter of your name is %c.\n", "Badr", 'B');
Hello %s! The first letter of your name is %c.
Error
Hello Badr! The first letter of your name is B.
Hello ! The first letter of your name is B.
Task 1
What is the output for
_printf("I have %d apples and %i oranges.\n", 5, 3);
I have %d apples and %i
I have 5 apples and 3 oranges.
I have apples and oranges.
I have 5 apples and %i oranges.
Task 2
What is the purpose of a man page for _printf?
Explain its usage, parameters, and examples.
Test the function with various inputs
Declare the function in a header file
Compile and execute _printf
Task 3
What is the output for
_printf("Binary of %d is %b.\n", 5, 5);
Binary of 5 is 101.
Binary of 5 is 5.
Binary of %d is %b.
Binary of 5 is 0101.
Task 4
What is the output for
_printf("Octal of %d is %o.\n", 10, 10);
Octal of %d is %o.
Octal of 10 is 10.
Octal of 10 is 12.
Octal of 10 is A.
Task 4
What is the difference between %x and %X in _printf?
%x and %X are the same.
%x prints decimal, %X prints octal.
%x prints strings, %X prints characters.
%x prints lowercase hex, %X prints uppercase hex.
Task 5
Why does _printf use a local buffer of 1024 characters?
To store the format string.
To minimize the number of write system calls.
To increase the output size limit.
To handle all conversion specifiers.
Task 7
What is the output for
_printf("%S\n", "Best\nStudents");
Best\nStudents
Best\x0AStudents\n
BestStudents
Best\x0AStudents
Task 6
What is the output for
int num = 42;
_printf("%p\n", &num);
num
42
The memory address of the variable num in hexadecimal format, prefixed with 0x
0x42
Task 8
What is the output for
_printf("%+d\n", 42);
42
“ 42”
+42
#42
Task 9
What is the output for
long int num = 123456;
_printf("%ld\n", num);
0x123456
123456789
123456
#123456
Task 10
What is the output for
_printf("%1d\n", 42);
“42”
“1042”
“ 42”
“1”
Task 11
What is the output for
_printf("%.3f\n", 3.14159);
3.141
3.412
3.14159
0
Task 12
What is the output for
_printf("%03d\n", 98);
98
098
0098
9800
Task 13
What is the output for
_printf("%-5dHello\n", 42);
42 Hello
42Hello
42 hello
42hello
Task 14
What is the output for
_printf("%r\n", "Tuwaiq");
Tuwaiq
qiawut
Tuwaiq\n
TuwaiqTuwaiq
Task 15
What is the output for
_printf("%R\n", "Tuwaiq");
Tuwaiq
Hello, Tuwaiq!
لا تختار الاجابه هذي
Ghjntd
