wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

مسابقة العيد

Total questions: 21

Worksheet time: 11mins

Name
Class
Date
1.

ماهو الرد المناسبة لجملة

"كل عام وانت بخير"

a)

وانت بخير وصحه وسلامه

b)

الله يسلمك

c)

شكراً

d)

Thanks

2.

ماهو الرد المناسب لجملة "عاد عيدكم"

a)

الله يسعدك

b)

علينا وعليكم يعود

c)

الله يسلمك

d)

الله يعيدك

3.

ماهو الرد المناسب لجملة

"من العايدين الفايزين"

a)

من الفايزين العايدين

b)

من العايدين السالمين

c)

من السالمين الغانمين

d)

الله يسلمك

4.

ماهو الرد المناسبة لجملة

"من العايدين الفايزين السالمين الغانمين"

a)

الله يسلمك

b)

من السالمين الغانين

c)

اقلط الله يحييك

d)

الله يسعدك

5.

Task 0

What is the output for

_printf("Hello %s! The first letter of your name is %c.\n", "Badr", 'B');

a)

Hello %s! The first letter of your name is %c.

b)

Error

c)

Hello Badr! The first letter of your name is B.

d)

Hello ! The first letter of your name is B.

6.

Task 1

What is the output for

_printf("I have %d apples and %i oranges.\n", 5, 3);

a)

I have %d apples and %i

b)

I have 5 apples and 3 oranges.

c)

I have apples and oranges.

d)

I have 5 apples and %i oranges.

7.

Task 2

What is the purpose of a man page for _printf?

a)

Explain its usage, parameters, and examples.

b)

Test the function with various inputs

c)

Declare the function in a header file

d)

Compile and execute _printf

8.

Task 3

What is the output for

_printf("Binary of %d is %b.\n", 5, 5);

a)

Binary of 5 is 101.

b)

Binary of 5 is 5.

c)

Binary of %d is %b.

d)

Binary of 5 is 0101.

9.

Task 4

What is the output for

_printf("Octal of %d is %o.\n", 10, 10);

a)

Octal of %d is %o.

b)

Octal of 10 is 10.

c)

Octal of 10 is 12.

d)

Octal of 10 is A.

10.

Task 4

What is the difference between %x and %X in _printf?

a)

%x and %X are the same.

b)

%x prints decimal, %X prints octal.

c)

%x prints strings, %X prints characters.

d)

%x prints lowercase hex, %X prints uppercase hex.

11.

Task 5

Why does _printf use a local buffer of 1024 characters?

a)

To store the format string.

b)

To minimize the number of write system calls.

c)

To increase the output size limit.

d)

To handle all conversion specifiers.

12.

Task 7

What is the output for

_printf("%S\n", "Best\nStudents");

a)

Best\nStudents

b)

Best\x0AStudents\n

c)

BestStudents

d)

Best\x0AStudents

13.

Task 6

What is the output for

int num = 42;

_printf("%p\n", &num);

a)

num

b)

42

c)

The memory address of the variable num in hexadecimal format, prefixed with 0x

d)

0x42

14.

Task 8

What is the output for

_printf("%+d\n", 42);

a)

42

b)

“ 42”

c)

+42

d)

#42

15.

Task 9

What is the output for

long int num = 123456;

_printf("%ld\n", num);

a)

0x123456

b)

123456789

c)

123456

d)

#123456

16.

Task 10

What is the output for

_printf("%1d\n", 42);

a)

“42”

b)

“1042”

c)

“ 42”

d)

“1”

17.

Task 11

What is the output for

_printf("%.3f\n", 3.14159);

a)

3.141

b)

3.412

c)

3.14159

d)

0

18.

Task 12

What is the output for

_printf("%03d\n", 98);

a)

98

b)

098

c)

0098

d)

9800

19.

Task 13

What is the output for

_printf("%-5dHello\n", 42);

a)

42   Hello

b)

42Hello

c)

42  hello

d)

42hello

20.

Task 14

What is the output for

_printf("%r\n", "Tuwaiq");

a)

Tuwaiq

b)

qiawut

c)

Tuwaiq\n

d)

TuwaiqTuwaiq

21.

Task 15

What is the output for

_printf("%R\n", "Tuwaiq");

a)

Tuwaiq

b)

Hello, Tuwaiq!

c)

لا تختار الاجابه هذي

d)

Ghjntd