Deck 10: Developing Unix-Linux Applications in C and C

ملء الشاشة (f)
exit full mode
سؤال
fgetch()reads a single character from the file and points to it.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The C language was partly developed to resolve the more lengthy requirements of assembly language.
سؤال
Dennis Ritchie and Brian Kernighan rewrote most of UNIX using C++ in the early 1960s.
سؤال
The original UNIX operating system was written in ____.

A)C
B)C++
C)assembly language
D)Awk
سؤال
____ is an example of how you can declare a string in C.

A)string name;
B)string name[20];
C)String name;
D)char name[20];
سؤال
The output of a linker is a(n)____ file.

A)executable
B)binary
C)object
D)source code
سؤال
C++ uses -- to denote a comment line.
سؤال
____ have special meanings,so you cannot use them as names for variables or functions.

A)Labels
B)Tags
C)Constants
D)Keywords
سؤال
A compiler is a program that translates the source code into ____ code,which consists of binary instructions.

A)compiled
B)binary
C)binary
D)object
سؤال
When you represent character data in a program as a character constant,you enclose the character in ____.

A)curly braces
B)angle braces
C)single quotation marks
D)double quotation marks
سؤال
A variable's data type determines the upper and lower limits of its range of values.
سؤال
A(n)____ is a group of characters,such as a name.

A)array
B)string
C)scalar
D)hash
سؤال
When you use string constants in your C program,they must be enclosed in ____.

A)curly braces
B)angle braces
C)single quotation marks
D)double quotation marks
سؤال
____ is a low-level language that provides maximum access to all the computer's devices,both internal and external.

A)C
B)C++
C)Assembly language
D)Awk
سؤال
Unlike many other library input functions,readf()can be used to input values of a variety of data types.
سؤال
The ____ data type occupies a single byte.

A)char
B)int
C)float
D)double
سؤال
The word "null" is used to indicate that a function returns no data.
سؤال
You can use three modifiers with int data types: short,long,and ____.

A)scalar
B)unsigned
C)array
D)double
سؤال
C can be described as a language that uses relatively short,isolated functions to break down large,complex tasks into small and easily resolved subtasks.
سؤال
____ is the language in which UNIX was developed and refined.

A)C
B)C++
C)Perl
D)Awk
سؤال
A C program consists of separate bodies of code,known as ____________________.
سؤال
The ____ format specifier is used to denote a floating point number in decimal notation.

A)%c
B)%d
C)%u
D)%f
سؤال
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
denotes the beginning of a block of code
سؤال
The decrement operator is a(n)____ operator.

A)unary
B)binary
C)primary
D)arbitrary
سؤال
When you ____________________ a function,you declare the function's name and create the lines of code that make up the function's block of code.
سؤال
The ____ utility tracks what needs to be recompiled by using the time stamp field for each source file.

A)compile
B)gcc
C)configure
D)make
سؤال
Automatic variables are ____ to the function in which they are declared.

A)global
B)assigned
C)local
D)unique
سؤال
C provides three looping mechanisms: the for loop,the while loop,and the ____ loop.

A)do-while
B)switch
C)while-do
D)repeat-until
سؤال
The ____ format specifier is used to denote a signed decimal integer.

A)%c
B)%d
C)%f
D)%s
سؤال
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
executable file which,by default,contains a compiled C program
سؤال
____ are continuous streams of data.

A)Arrays
B)Strings
C)Files
D)Pointers
سؤال
The ____ of a variable is the part of the program in which the variable is defined and,therefore,accessible.

A)aim
B)reach
C)length
D)scope
سؤال
C's ____________________ header file contains information the compiler needs to process standard input or output statements.
سؤال
____________________ are names given to variables and functions.
سؤال
C's increment operator is ____.

A)++
B)+
C)+=
D)=+
سؤال
Variables that are declared inside a function are called ____ variables.

A)global
B)automatic
C)scalar
D)independent
سؤال
Many compilers translate source code into assembly code.This requires that a(n)____________________ be called up to translate the assembly code into object code.
سؤال
The ____ scanf()format specifier is used to indicate that scanf()should interpret the input value as a pointer.

A)%p
B)%P
C)%r
D)%R
سؤال
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
every C program must contain this function
سؤال
C++ enables function ____________________,which makes the functions respond to more than one set of criteria and conditions.
سؤال
What is the role of the C preprocessor?
سؤال
What is the role of the control string in the printf()function?
سؤال
What is the role of the if statement?
سؤال
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
command for the C compiler in Linux operating systems
سؤال
Provide at least three rules that should be followed when naming variables in C.
سؤال
What is the scope of a global variable?
سؤال
What is the role of a linker program?
سؤال
What is the difference between the while loop and the do-while loop?
سؤال
What is a daemon?
سؤال
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
denotes the beginning of a comment
سؤال
What is an object?
سؤال
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
is a header file
سؤال
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
is a preprocessor directive
سؤال
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
modulus operator
سؤال
What does the C library contain?
سؤال
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
a single byte in which all bits are set to zero
سؤال
What is the role of a function prototype?
سؤال
What is a source code file?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/58
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 10: Developing Unix-Linux Applications in C and C
1
fgetch()reads a single character from the file and points to it.
False
2
The C language was partly developed to resolve the more lengthy requirements of assembly language.
True
3
Dennis Ritchie and Brian Kernighan rewrote most of UNIX using C++ in the early 1960s.
False
4
The original UNIX operating system was written in ____.

A)C
B)C++
C)assembly language
D)Awk
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
5
____ is an example of how you can declare a string in C.

A)string name;
B)string name[20];
C)String name;
D)char name[20];
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
6
The output of a linker is a(n)____ file.

A)executable
B)binary
C)object
D)source code
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
7
C++ uses -- to denote a comment line.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
8
____ have special meanings,so you cannot use them as names for variables or functions.

A)Labels
B)Tags
C)Constants
D)Keywords
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
9
A compiler is a program that translates the source code into ____ code,which consists of binary instructions.

A)compiled
B)binary
C)binary
D)object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
10
When you represent character data in a program as a character constant,you enclose the character in ____.

A)curly braces
B)angle braces
C)single quotation marks
D)double quotation marks
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
11
A variable's data type determines the upper and lower limits of its range of values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
12
A(n)____ is a group of characters,such as a name.

A)array
B)string
C)scalar
D)hash
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
13
When you use string constants in your C program,they must be enclosed in ____.

A)curly braces
B)angle braces
C)single quotation marks
D)double quotation marks
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
14
____ is a low-level language that provides maximum access to all the computer's devices,both internal and external.

A)C
B)C++
C)Assembly language
D)Awk
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
15
Unlike many other library input functions,readf()can be used to input values of a variety of data types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
16
The ____ data type occupies a single byte.

A)char
B)int
C)float
D)double
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
17
The word "null" is used to indicate that a function returns no data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
18
You can use three modifiers with int data types: short,long,and ____.

A)scalar
B)unsigned
C)array
D)double
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
19
C can be described as a language that uses relatively short,isolated functions to break down large,complex tasks into small and easily resolved subtasks.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
20
____ is the language in which UNIX was developed and refined.

A)C
B)C++
C)Perl
D)Awk
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
21
A C program consists of separate bodies of code,known as ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
22
The ____ format specifier is used to denote a floating point number in decimal notation.

A)%c
B)%d
C)%u
D)%f
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
23
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
denotes the beginning of a block of code
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
24
The decrement operator is a(n)____ operator.

A)unary
B)binary
C)primary
D)arbitrary
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
25
When you ____________________ a function,you declare the function's name and create the lines of code that make up the function's block of code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
26
The ____ utility tracks what needs to be recompiled by using the time stamp field for each source file.

A)compile
B)gcc
C)configure
D)make
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
27
Automatic variables are ____ to the function in which they are declared.

A)global
B)assigned
C)local
D)unique
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
28
C provides three looping mechanisms: the for loop,the while loop,and the ____ loop.

A)do-while
B)switch
C)while-do
D)repeat-until
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
29
The ____ format specifier is used to denote a signed decimal integer.

A)%c
B)%d
C)%f
D)%s
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
30
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
executable file which,by default,contains a compiled C program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
31
____ are continuous streams of data.

A)Arrays
B)Strings
C)Files
D)Pointers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
32
The ____ of a variable is the part of the program in which the variable is defined and,therefore,accessible.

A)aim
B)reach
C)length
D)scope
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
33
C's ____________________ header file contains information the compiler needs to process standard input or output statements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
34
____________________ are names given to variables and functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
35
C's increment operator is ____.

A)++
B)+
C)+=
D)=+
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
36
Variables that are declared inside a function are called ____ variables.

A)global
B)automatic
C)scalar
D)independent
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
37
Many compilers translate source code into assembly code.This requires that a(n)____________________ be called up to translate the assembly code into object code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
38
The ____ scanf()format specifier is used to indicate that scanf()should interpret the input value as a pointer.

A)%p
B)%P
C)%r
D)%R
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
39
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
every C program must contain this function
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
40
C++ enables function ____________________,which makes the functions respond to more than one set of criteria and conditions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
41
What is the role of the C preprocessor?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
42
What is the role of the control string in the printf()function?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
43
What is the role of the if statement?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
44
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
command for the C compiler in Linux operating systems
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
45
Provide at least three rules that should be followed when naming variables in C.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
46
What is the scope of a global variable?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
47
What is the role of a linker program?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
48
What is the difference between the while loop and the do-while loop?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
49
What is a daemon?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
50
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
denotes the beginning of a comment
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
51
What is an object?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
52
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
is a header file
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
53
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
is a preprocessor directive
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
54
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
modulus operator
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
55
What does the C library contain?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
56
Match each item with a statement below.
a.main()
f.stdio.h
b.
a.out
g.{
c.null
h.gcc
d.%
i.#include
e./*
a single byte in which all bits are set to zero
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
57
What is the role of a function prototype?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
58
What is a source code file?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.