Deck 1: C Programming Language

ملء الشاشة (f)
exit full mode
سؤال
Who is father of C Language?

A)bjarne stroustrup
B)dennis ritchie
C)james a. gosling
D)dr. e.f. codd
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
C Language developed at _____?

A)at & t's bell laboratories of usa in 1972
B)at & t's bell laboratories of usa in 1970
C)sun microsystems in 1973
D)cambridge university in 1972
سؤال
For 16-bit compiler allowable range for integer constants is ______ ?

A)-3.4e38 to 3.4e38
B)-32767 to 32768
C)-32768 to 32767
D)-32668 to 32667
سؤال
C programs are converted into machine language with the help of

A)an editor
B)a compiler
C)an operating system
D)none of the above
سؤال
A C variable cannot start with

A)an alphabet
B)a number
C)a special symbol other than underscore
D)both (b) and (c)
سؤال
Which of the following is allowed in a C Arithmetic instruction

A)[]
B){}
C)()
D)none of the above
سؤال
Which of the following shows the correct hierarchy of arithmetic operations in C

A)/ + * -
B)* - / +
C)+ - / *
D)* / + -
سؤال
What is an array?

A)an array is a collection of variables that are of the dissimilar data type.
B)an array is a collection of variables that are of the same data type.
C)an array is not a collection of variables that are of the same data type.
D)none of the above.
سؤال
What is right way to Initialization array?

A)int num[6] = { 2, 4, 12, 5, 45, 5 } ;
B)int n{} = { 2, 4, 12, 5, 45, 5 } ;
C)int n{6} = { 2, 4, 12 } ;
D)int n(6) = { 2, 4, 12, 5, 45, 5 } ;
سؤال
An array elements are always stored in _________ memory locations.

A)sequential
B)random
C)sequential and random
D)none of the above
سؤال
What is the right way to access value of structure variable book{ price, page }?

A)printf("%d%d", book.price, book.page);
B)printf("%d%d", price.book, page.book);
C)printf("%d%d", price::book, page::book);
D)printf("%d%d", price->book, page->book);
سؤال
perror( ) function used to ?

A)work same as printf()
B)prints the error message specified by the compiler
C)prints the garbage value assigned by the compiler
D)none of the above
سؤال
Bitwise operators can operate upon?

A)double and chars
B)floats and doubles
C)ints and floats
D)ints and chars
سؤال
What is C Tokens?

A)the smallest individual units of c program
B)the basic element recognized by the compiler
C)the largest individual units of program
D)a & b both
سؤال
What is Keywords?

A)keywords have some predefine meanings and these meanings can be changed.
B)keywords have some unknown meanings and these meanings cannot be changed.
C)keywords have some predefine meanings and these meanings cannot be changed.
D)none of the above
سؤال
What is constant?

A)constants have fixed values that do not change during the execution of a program
B)constants have fixed values that change during the execution of a program
C)constants have unknown values that may be change during the execution of a program
D)none of the above
سؤال
Which is the right way to declare constant in C?

A)int constant var =10;
B)int const var = 10;
C)const int var = 10;
D)b & c both
سؤال
Which operators are known as Ternary Operator?

A)::, <strong>Which operators are known as Ternary Operator?</strong> A)::,   B)  , : C)  , ;; D)none of the above <div style=padding-top: 35px>
B)11eec8b1_8eec_bd1d_b236_b5d684621743_MM116_11 , :
C) 11eec8b1_8eec_bd1d_b236_b5d684621743_MM116_11, ;;
D)none of the above
سؤال
In switch statement, each case instance value must be _______?

A)constant
B)variable
C)special symbol
D)none of the above
سؤال
What is the work of break keyword?

A)halt execution of program
B)restart execution of program
C)exit from loop or switch statement
D)none of the above
سؤال
What is function?

A)function is a block of statements that perform some specific task.
B)function is the fundamental modular unit. a function is usually designed to perform a specific task.
C)function is a block of code that performs a specific task. it has a name and it is reusable
D)all the above
سؤال
Which one of the following sentences is true ?

A)the body of a while loop is executed at least once.
B)the body of a do ... while loop is executed at least once.
C)the body of a do ... while loop is executed zero or more times.
D)a for loop can never be used in place of a while loop.
سؤال
A binary tree with 27 nodes has _______ null branches.

A)54
B)27
C)26
D)none of the above
سؤال
Which one of the following is not a linear data structure?

A)array
B)binary tree
C)queue
D)stack
سؤال
Recursive functions are executed in a?

A)first in first out order
B)load balancing
C)parallel fashion
D)last in first out order
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 1: C Programming Language
1
Who is father of C Language?

A)bjarne stroustrup
B)dennis ritchie
C)james a. gosling
D)dr. e.f. codd
dennis ritchie
2
C Language developed at _____?

A)at & t's bell laboratories of usa in 1972
B)at & t's bell laboratories of usa in 1970
C)sun microsystems in 1973
D)cambridge university in 1972
at & t's bell laboratories of usa in 1972
3
For 16-bit compiler allowable range for integer constants is ______ ?

A)-3.4e38 to 3.4e38
B)-32767 to 32768
C)-32768 to 32767
D)-32668 to 32667
-32768 to 32767
4
C programs are converted into machine language with the help of

A)an editor
B)a compiler
C)an operating system
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
A C variable cannot start with

A)an alphabet
B)a number
C)a special symbol other than underscore
D)both (b) and (c)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
Which of the following is allowed in a C Arithmetic instruction

A)[]
B){}
C)()
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which of the following shows the correct hierarchy of arithmetic operations in C

A)/ + * -
B)* - / +
C)+ - / *
D)* / + -
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
What is an array?

A)an array is a collection of variables that are of the dissimilar data type.
B)an array is a collection of variables that are of the same data type.
C)an array is not a collection of variables that are of the same data type.
D)none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
What is right way to Initialization array?

A)int num[6] = { 2, 4, 12, 5, 45, 5 } ;
B)int n{} = { 2, 4, 12, 5, 45, 5 } ;
C)int n{6} = { 2, 4, 12 } ;
D)int n(6) = { 2, 4, 12, 5, 45, 5 } ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
An array elements are always stored in _________ memory locations.

A)sequential
B)random
C)sequential and random
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
What is the right way to access value of structure variable book{ price, page }?

A)printf("%d%d", book.price, book.page);
B)printf("%d%d", price.book, page.book);
C)printf("%d%d", price::book, page::book);
D)printf("%d%d", price->book, page->book);
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
perror( ) function used to ?

A)work same as printf()
B)prints the error message specified by the compiler
C)prints the garbage value assigned by the compiler
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
Bitwise operators can operate upon?

A)double and chars
B)floats and doubles
C)ints and floats
D)ints and chars
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
What is C Tokens?

A)the smallest individual units of c program
B)the basic element recognized by the compiler
C)the largest individual units of program
D)a & b both
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
What is Keywords?

A)keywords have some predefine meanings and these meanings can be changed.
B)keywords have some unknown meanings and these meanings cannot be changed.
C)keywords have some predefine meanings and these meanings cannot be changed.
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
What is constant?

A)constants have fixed values that do not change during the execution of a program
B)constants have fixed values that change during the execution of a program
C)constants have unknown values that may be change during the execution of a program
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which is the right way to declare constant in C?

A)int constant var =10;
B)int const var = 10;
C)const int var = 10;
D)b & c both
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which operators are known as Ternary Operator?

A)::, <strong>Which operators are known as Ternary Operator?</strong> A)::,   B)  , : C)  , ;; D)none of the above
B)11eec8b1_8eec_bd1d_b236_b5d684621743_MM116_11 , :
C) 11eec8b1_8eec_bd1d_b236_b5d684621743_MM116_11, ;;
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
In switch statement, each case instance value must be _______?

A)constant
B)variable
C)special symbol
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
What is the work of break keyword?

A)halt execution of program
B)restart execution of program
C)exit from loop or switch statement
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
What is function?

A)function is a block of statements that perform some specific task.
B)function is the fundamental modular unit. a function is usually designed to perform a specific task.
C)function is a block of code that performs a specific task. it has a name and it is reusable
D)all the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
Which one of the following sentences is true ?

A)the body of a while loop is executed at least once.
B)the body of a do ... while loop is executed at least once.
C)the body of a do ... while loop is executed zero or more times.
D)a for loop can never be used in place of a while loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
A binary tree with 27 nodes has _______ null branches.

A)54
B)27
C)26
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which one of the following is not a linear data structure?

A)array
B)binary tree
C)queue
D)stack
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
Recursive functions are executed in a?

A)first in first out order
B)load balancing
C)parallel fashion
D)last in first out order
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.