العودة   منتديات طلاب الجامعة العربية المفتوحة > منتديات المشرفين والمنتديات المساعدة > أرشيف المواد والمواضيع القديمة > أرشيف الملخصات لمناهج تم تغييرها > MT262A

إضافة رد
 
أدوات الموضوع انواع عرض الموضوع

قديم 08-12-2009, 06:36 PM   #1
مــ الليل ـــلاك مــ الليل ـــلاك غير متصل
طالب نشيط
 
الصورة الرمزية مــ الليل ـــلاك

 











.. - اسئـــــــله ، اختبـاااري - ..


انصصصصحكم بمذأكرره الاكوأد جيداااا .. لان أغلـــب اسئلـتي كآنت اكوأأأد

وهذي الاسئـله اللي جآتني - في اختبــــــــــــــااري اليييوم ! ..

طبعاا الاسئله مو محلولــه علييكم تحلوهآ انتوَ .. لاني مو متآكده من الاجآبآت

واذا تذكرررت شئ أو حصصـلت شئ رأح احطـــه لكم ..


Question 1
Character constants are denoted by enclosing the character in :
Choose one answer.
a. braces
b. brackets
c. double quotes
d. single quotes
Question 2

Consider the following design, in which a character variable Grade and a real variable Target are involved. The design involves two 'if steps', one within the other, as the following layout:
If (Target >1) and (Target <= 50)
then
Grade <-- ‘C’
else
if (Target > 50) and (Target <= 75)
Grade <-- ‘B’
else
Grade <-- ‘A’
ifend
ifend


If Target <--100, then the value of Grade will be:
Choose one answer.
a. 'C'
b. 'A'
c. ‘B’
d. None of the answers is correct.
Question 3
Which of the following is NOT a valid variable identifier in C++
Choose one answer.
a. 3number
b. first_number
c. FirstNumber
d. None of the above
Question 4
When you see the message 'linking...' in Builder, the ____________are being combined to make the executable file.
Choose one answer.
a. object files.
b. builder project file.
c. resource file.
d. header files.
Question 5
The design step increment Stored by 1, is an instruction which will ____________ the value of the identifier Stored by 1.
Choose one answer.
a. increase
b. decrease
c. compare
d. save
Question 6
Assume that str1 = “Rabbit” and Str2 = “Cat”, the expression length(str1) < length(str2) is True.
Answer:
True False
Question 7
Marks: 1

Decide what does the following code do ?

int main(int argc, char **argv)
{
AnsiString Date;
float Number;
Date = ReadStringPr("Enter current date (dd/mm/yyyy format) ");
Number = ReadFloatPr("Enter number ");

Number = Number/2;

WriteString(Date);
WriteString(" ");
WriteFloat(Number);

getchar();
return 0;
}
Choose one answer.
a. This program reads a date and a real from the keyboard and prints the date followed by a space then the real divided by 2
b. This program reads a date and a real from the keyboard and prints the real followed by a space then the date divided by 2
c. This program reads a date and a real from the keyboard
d. None of the answers is correct.
Question 8
Marks: 5
A marker to indicate that input has finished.
A combination of software and hardware by which humans and computers interact.
The interfaces provided by the console application in Builder.
Using sample data to trace the steps of the design, keeping track of variable values all the time.
Independent, free-standing pieces of coded design which can be test separately.
Walking through a program.
A pause in the execution of a running program.
Yields the remainder in an integer division.
An expression whose value is either true or false.
The process of repeating a sequence of steps.
Question 9
WriteFloatPr, WriteInt, ReadIntPr are all standard C++ functions.
Answer:
True False
Question 10
Marks: 1
Which of the following Boolean expressions determine if the value of integer y is between 10 and 20, and its an odd number?
Choose one answer.
a. if ((y >= 10) && (y <= 20) && ( y % 2 == 0)
b. if ((y >= 10) || (y <= 20) && ( y % 2 != 0)
c. if ((y >= 10) && (y <= 20) && ( y % 2 != 0)
d. if ((y >= 10) || (y <= 20) || ( y % 2 != 0)
Question 11
Marks: 1

Assume you Run the following code, what output should you expect to see ?


puts(“Hello word.”);
puts(“Press Enter to close the program.”);
return 0;
Choose one answer.
a. A black screen will appear and the cursor is blinking waiting for input
b. A black screen will appear then quickly disappear
c. Nothing will be displayed.
d. Error message "undefined function" will be displayed
Question 12
Marks: 1
The loop condition can be:
Choose one answer.
a. Integer expression
b. String
c. Only Boolean expression
d. Only sentinel value
e. Boolean expression or sentinel value
Question 13
The top-down methodology involves starting with a solution in very broad terms.
Answer:
True False
Question 14
The result of Boolean variable x is true for the following code :
int y=10;
bool x;
if((y <= 10)&&(y >= 10))
x=0;
Answer:
True False
Question 15
Marks: 1
The size of memory block for a given type of data depends on both the computer system involved and the particular compiler, even for the same language.
Answer:
True False
Question 16
Marks: 1
Variables that are declared, but not initialized, contain
Choose one answer.
a. blank spaces
b. zeros
c. "garbage" values
d. nothing - they are empty
Question 17
Marks: 1
What error is found in the following C++ code and what type is it?
include <iostream.h>
int main(...)
{
int x = 7
if ( x!=7);
x++;
return 0;
}
Choose one answer.
a. ; is missing after main(...) Syntax error
b. ; is missing after main(...) Symantec error
c. ; shouldn’t exist at the end of an if statement Syntax error
d. ; is missing after declaration line (Syntax error)
Question 18
Marks: 1
In the following design, AmountInDollar must be of type Integer:
Rate <-- 3.75
Amount <-- 100
AmountInDollar <-- Amount * Rate
Answer:
True False

التعديل الأخير تم بواسطة مــ الليل ـــلاك ; 08-12-2009 الساعة 06:52 PM
مــ الليل ـــلاك غير متصل   رد مع اقتباس
قديم 08-12-2009, 06:41 PM   #2
مــ الليل ـــلاك مــ الليل ـــلاك غير متصل
طالب نشيط
 
الصورة الرمزية مــ الليل ـــلاك

 











افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..


Question 19
Marks: 1

Executing the following code where Next has the value 50, will give the value ________ for Result.

Result = 0;
if (Next = = 1)
Next = 3 * Next ;
else
{
Result = Next/2;
WriteInt(Result);
}
Choose one answer.
a. 25
b. 10
c. 0
Question 20
Marks: 1
Consider the following C++ code :
char val = ’z’;
while ( val !=’x’)
{ val=’x’;}
the while loop will be processed how many times?
Choose one answer.
a. 2 times
b. 1 time
c. 3 times
d. 0 times
Question 21
Marks: 1
In the following code, if the user enter the value 60 the output will be 'YOU Win'.
int a;
a= ReadIntPr("Type an integer : ");
if ( (a <= 56) || (a >= 78) )
WriteStringPr("YOU WIN") ;
else
WriteStringPr("YOU LOSE") ;
Answer:
True False
Question 22
Marks: 1
The function WriteCharPrCr(AnsiString Prompt, char Ch); prints out on the screen a constant string followed by a character variable, then ends with a new line.
Answer:
True False
Question 23
Marks: 1
The operations 'div' and % are not applicable to real numbers.
Answer:
True False
Question 24
Marks: 1
int x= A76; The value of x is
Choose one answer.
a. 'A'
b. 76
c. 0
d. 176
Question 25
Marks: 1
The selection control structure is represented in C++ by the
Choose one answer.
a. While statement
b. Do statement
c. If and switch statements
Question 26
Marks: 1
The de******ion of what a piece of code does:
Choose one answer.
a. Code specification
b. Implementation
c. Documentation
d. Source Code
e. None is correct
مــ الليل ـــلاك غير متصل   رد مع اقتباس
قديم 08-12-2009, 06:50 PM   #3
مــ الليل ـــلاك مــ الليل ـــلاك غير متصل
طالب نشيط
 
الصورة الرمزية مــ الليل ـــلاك

 











افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..


هذاا بعـد الاسئله مهمممممه جداا! ..



An expression, such as a boolean expression, is a combination of:
Choose one answer.
a. Constants
b. Variables.
c. Operations.
d. All of the above.
e. None of the above.

The following 2 sets of program code are the same
1)
int main ()
{
cout << " Hello World ";
return 0;
}

2)

int main () { cout << "Hello World";

return 0; }
Answer:
True False



Consider the following design. What does it do?
1.1 MaxSoFar ¬ -2
1.2 write out "Enter first number, -1 to stop"
1.3 read in NextNumber
2.1 loop while NextNumber ¹ -1
3.1.1 if NextNumber > MaxSoFar
3.1.2 MaxSoFar ¬ NextNumber
3.1.3 ifend
3.2.1 write out "Enter next number, -1 to stop"
3.2.2 read in NextNumber
4.1 loopend
5.1 if MaxSoFar ¹ -2
5.2.1 write out "maximum of numbers "
5.2.2 write out MaxSoFar
5.3 else
5.4 write out "No numbers entered."
5.5 ifend
Choose one answer.
a. This design finds the maximum from a list of numbers entered by the user. A minimum of 2 input numbers must be available, you stop the program by pressing -1.
b. This design finds the maximum from a list of numbers entered by the user. A minimum of 2 input numbers must be available, after inputing 50 numbers, the program stops.
c. This design finds the smallest number in a list of numbers entered by the user. A minimum of 2 input numbers must be available, you stop the program by pressing -1.
d. None of the answers is correct.

The method getchar(...) is a C++ method that returns an integer value.
Answer:
True False

Which answer will complete the following C++ code, if you knew that the code is used to add all numbers entered that are less than 8 or greater than 18?
int number;
int sum = 0;
for (int I = 0; I < 10; I++)
{
number= ReadIntPr(“Please enter an integer number”);
if ((number < 8)…….
Sum=………………
}
Choose one answer.
a. && (number > 18))
b. || (number > 18))
sum + number;
c. || (number > 18))
sum++;
d. && (number > 18))
number++;



The design that has been refined to a stage that is ready for coding in the chosen programming language
Choose one answer.
a. Top-level design
b. Source code
c. Final design
d. Execution file



A header file contains the de******ion of a library file. Once it is added in the #include statement, it makes the library available.
Answer:
True False



In the following code segement, assume that CH is a variable of type char

while (CH != 'A')
The value 'A' is going to work as _____________ in the while loop
Choose one answer.
a. senitnel value
b. character value
c. counter
d. assignment value



The country A has 50M inhabitants and its population grows 3% a year, the country B, 70M and grows 2% a year. Tell in how many years will A surpass B. The correct code for this case:

Choose one answer.
a. int years; float a,b;
a=5000000;
b=7000000;
while(a<=b)
{a=a*1.03; b=b*1.02; years=years+1;}
WriteIntPr(The country A will surpass the population of the B after ",years);
b. int years; float a,b;
a=5000000;
b=7000000;
years=0;
while(a<=b)
{a=a*1.03; b=b*1.02; years=years+1;}
WriteIntPr(The country A will surpass the population of the B after ",years);
c. int years; float a,b;
a=5000000;
b=7000000;
years=1;
while(b<=a)
{a=a*1.03; b=b*1.02; years=years+1;}
WriteIntPr(The country A will surpass the population of the B after ",years);
d. int years; float a,b;
a=5000000;
b=7000000;
years=1;
while(a<=b)
{a=a*1.03; b=b*1.02; years=years+1;}
WriteIntPr(The country A will surpass the population of the B after ",years);



Decide what does the following code segement do?

int main(int argc, char **argv)
{
int MaxSoFar;
int NextNumber;
MaxSoFar=-2;
NextNumber=ReadIntPr("Enter first number, -1 to stop: ");
while(NextNumber!=-1)
{
if (MaxSoFar<NextNumber)
MaxSoFar=NextNumber;
NextNumber=ReadIntPr("Enter next number, -1 to stop: ");
}
if (MaxSoFar!=-2)
WriteIntPr("Maximum of given numbers is ",MaxSoFar);
else
WriteStringCr("No numbers entered.");
getchar();
return 0;
}

Choose one answer.
a. The program finds the maximum from a list of numbers entered by the user. A minimum of 2 numbers must be entered. Press -1 to quit.
b. The program finds the maximum from a list of numbers entered by the user. A minimum of 2 numbers must be entered. The program stops after 50 numbers are input.
c. The program finds the smallest number in a list of numbers entered by the user. A minimum of 2 numbers must be entered. Press -1 to quit.
d. None of the answers is correct.


The process of verifying that a piece of software performs according to the given problem specification is called validation of software.
Answer:
True False


The statement getchar() is to await input from the user and is short for get character.
Answer:
True False



After tracing the following C++ loop, what will be the last values x and I hold?
int x=1;
int I=1;
while (I<=3)
{
x++;
I++;
}
return 0;
}
Choose one answer.
a. x=4, I=4
b. x=4, I=3
c. x=4, I=1
d. x=1, I=4



A data table for a design:
Choose one answer.
a. Is a list of all the variables used in a design
b. Includes a column that describes the type of each variable.
c. Includes the identifier which names the variable
d. Includes the purpose of each variable.
e. All of the answers are correct


for(int I = 0; I <= 10; I++) this loop will run 10 times.
Answer:
True False
Time Remaining
مــ الليل ـــلاك غير متصل   رد مع اقتباس
قديم 08-12-2009, 07:01 PM   #4
النائش النائش غير متصل
طالب مميز
 
الصورة الرمزية النائش
افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..


شكرا ملاك الليل

وهذا حل بعض الاسئله



اقتباس:
المشاركة الأصلية كتبت بواسطة مــ الليل ـــلاك مشاهدة المشاركة
انصصصصحكم بمذأكرره الاكوأد جيداااا .. لان أغلـــب اسئلـتي كآنت اكوأأأد

وهذي الاسئـله اللي جآتني -

طبعاا الاسئله مو محلولــه علييكم تحلوهآ انتوَ .. لاني مو متآكده من الاجآبآت

واذا تذكرررت شئ أو حصصـلت شئ رأح احطـــه لكم ..


question 1
character constants are denoted by enclosing the character in :
Choose one answer.
A. Braces
b. Brackets
c. Double quotes
d. Single quotes
question 2

consider the following design, in which a character variable grade and a real variable target are involved. The design involves two 'if steps', one within the other, as the following layout:
If (target >1) and (target <= 50)
then
grade <-- ‘c’
else
if (target > 50) and (target <= 75)
grade <-- ‘b’
else
grade <-- ‘a’
ifend
ifend


if target <--100, then the value of grade will be:
Choose one answer.
A. 'c'
b. 'a'
c. ‘b’
d. None of the answers is correct.
Question 3
which of the following is not a valid variable identifier in c++
choose one answer.
a. 3number
b. First_number
c. Firstnumber
d. None of the above
question 4
when you see the message 'linking...' in builder, the ____________are being combined to make the executable file.
Choose one answer.
A. Object files.
b. Builder project file. الحل ماني متأكد منه
c. Resource file.
D. Header files.
Question 5
the design step increment stored by 1, is an instruction which will ____________ the value of the identifier stored by 1.
Choose one answer.
a. Increase
b. Decrease
c. Compare
d. Save
question 6
assume that str1 = “rabbit” and str2 = “cat”, the expression length(str1) < length(str2) is true.
Answer:
True false
question 7
marks: 1

decide what does the following code do ?

Int main(int argc, char **argv)
{
ansistring date;
float number;
date = readstringpr("enter current date (dd/mm/yyyy format) ");
number = readfloatpr("enter number ");

number = number/2;

writestring(date);
writestring(" ");
writefloat(number);

getchar();
return 0;
}
choose one answer.
a. This program reads a date and a real from the keyboard and prints the date followed by a space then the real divided by 2
b. This program reads a date and a real from the keyboard and prints the real followed by a space then the date divided by 2
c. This program reads a date and a real from the keyboard
d. None of the answers is correct.
Question 8
marks: 5
a marker to indicate that input has finished.
A combination of software and hardware by which humans and computers interact.
The interfaces provided by the console application in builder.
Using sample data to trace the steps of the design, keeping track of variable values all the time.
Independent, free-standing pieces of coded design which can be test separately.
Walking through a program.
A pause in the execution of a running program.
Yields the remainder in an integer division.
An expression whose value is either true or false.
The process of repeating a sequence of steps.
Question 9
writefloatpr, writeint, readintpr are all standard c++ functions.
Answer:
true false
question 10
marks: 1
which of the following boolean expressions determine if the value of integer y is between 10 and 20, and its an odd number?
Choose one answer.
A. If ((y >= 10) && (y <= 20) && ( y % 2 == 0)
b. If ((y >= 10) || (y <= 20) && ( y % 2 != 0)
c. If ((y >= 10) && (y <= 20) && ( y % 2 != 0)
d. If ((y >= 10) || (y <= 20) || ( y % 2 != 0)
question 11
marks: 1

assume you run the following code, what output should you expect to see ?


Puts(“hello word.”);
puts(“press enter to close the program.”);
return 0;
choose one answer.
A. A black screen will appear and the cursor is blinking waiting for input
b. A black screen will appear then quickly disappear
c. Nothing will be displayed.
D. Error message "undefined function" will be displayed
question 12
marks: 1
the loop condition can be:
Choose one answer.
A. Integer expression
b. String
c. Only boolean expression
d. Only sentinel value
e. Boolean expression or sentinel value
question 13
the top-down methodology involves starting with a solution in very broad terms.
Answer:
True false
question 14
the result of boolean variable x is true for the following code :
Int y=10;
bool x;
if((y <= 10)&&(y >= 10))
x=0;
answer:
True false
question 15
marks: 1
the size of memory block for a given type of data depends on both the computer system involved and the particular compiler, even for the same language.
Answer:
True false
question 16
marks: 1
variables that are declared, but not initialized, contain
choose one answer.
A. Blank spaces
b. Zeros
c. "garbage" values
d. Nothing - they are empty
question 17
marks: 1
what error is found in the following c++ code and what type is it?
Include <iostream.h>
int main(...)
{
int x = 7
if ( x!=7);
x++;
return 0;
}
choose one answer.
A. ; is missing after main(...) syntax error
b. ; is missing after main(...) symantec error
c. ; shouldn’t exist at the end of an if statement syntax error
d. ; is missing after declaration line (syntax error)
question 18
marks: 1
in the following design, amountindollar must be of type integer:
Rate <-- 3.75
amount <-- 100
amountindollar <-- amount * rate
answer:
true false
النائش غير متصل   رد مع اقتباس
قديم 08-12-2009, 07:27 PM   #5
مــ الليل ـــلاك مــ الليل ـــلاك غير متصل
طالب نشيط
 
الصورة الرمزية مــ الليل ـــلاك

 











ناجح رد: .. - اسئـــــــله ، اختبـاااري - ..


اقتباس:
المشاركة الأصلية كتبت بواسطة النائش مشاهدة المشاركة
شكرا ملاك الليل

وهذا حل بعض الاسئله


العفــــــوااً ، اخي الناائش ..
مــ الليل ـــلاك غير متصل   رد مع اقتباس
قديم 08-12-2009, 07:30 PM   #6
rawaili rawaili غير متصل
طالب جديد

 










افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..


جزاك الله خير
rawaili غير متصل   رد مع اقتباس
قديم 08-12-2009, 07:32 PM   #7
ـألرحألـ ـألرحألـ غير متصل
طالب فضي
 
الصورة الرمزية ـألرحألـ

 











افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..


.


شكرآ


الله يعوضك بالفاينل والواجب وفالك a
ـألرحألـ غير متصل   رد مع اقتباس
قديم 08-12-2009, 07:35 PM   #8
انا الحساوي انا الحساوي غير متصل
طالب فعال
 
الصورة الرمزية انا الحساوي

 











افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..


مشكورين على هذا الجهد وياريت يا النائش تكمل جميلك وتحل باجي الاسئلة
انا الحساوي غير متصل   رد مع اقتباس
قديم 08-12-2009, 07:44 PM   #9
حكيم 911 حكيم 911 غير متصل
طالب مميز

 











افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..


كفو والله

بيض الله وجهك
حكيم 911 غير متصل   رد مع اقتباس
قديم 08-12-2009, 07:46 PM   #10
البلسم البلسم غير متصل
طالب فضي
 
الصورة الرمزية البلسم
افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..





الف شكر لكـ

والله يوفقنا ويوفقكمـ

البلسم غير متصل   رد مع اقتباس
قديم 08-12-2009, 07:47 PM   #11
مــ الليل ـــلاك مــ الليل ـــلاك غير متصل
طالب نشيط
 
الصورة الرمزية مــ الليل ـــلاك

 











افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..


A marker to indicate that input has finished.
A combination of software and hardware by which humans and computers interact.
The interfaces provided by the console application in Builder.
Using sample data to trace the steps of the design, keeping track of variable values all the time.
Independent, free-standing pieces of coded design which can be test separately.
Walking through a program.
A pause in the execution of a running program.
Yields the remainder in an integer division.
An expression whose value is either true or false.
The process of repeating a sequence of steps.
Question 9
WriteFloatPr, WriteInt, ReadIntPr are all standard C++ functions.



طبعـاا هذي كلهـاا تعااريف تجي اختيـاارات وأنت تختـاار لهاا الخياار المنااسب ..
مــ الليل ـــلاك غير متصل   رد مع اقتباس
قديم 08-12-2009, 07:49 PM   #12
مــ الليل ـــلاك مــ الليل ـــلاك غير متصل
طالب نشيط
 
الصورة الرمزية مــ الليل ـــلاك

 











افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..


العفــــــوااً ، تسسلمون جميعـاا ً ، مآسويت غيرر الوأجب ،


بالتوفيييييييييييق للكل ..
مــ الليل ـــلاك غير متصل   رد مع اقتباس
قديم 08-12-2009, 07:52 PM   #13
Stone Stone غير متصل
طالب فعال
 
الصورة الرمزية Stone
افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..


جزاك الله خيرا النائش وياريت لو فيه تكملة للحل
Stone غير متصل   رد مع اقتباس
قديم 08-12-2009, 08:01 PM   #14
محمدي محمدي غير متصل
طالب جديد

 











افتراضي رد: .. - اسئـــــــله ، اختبـاااري - ..


ماشاء الله الاسئلة مقاربة جدا لاختباري
من وين حصلتيها اختي ملاك ؟
لانها ما كانت من ضمن اسئلة السيلف اسيسمينت
على كل اختبرنا وخصلنا الحمد الله
وهذي فرصة للي باقي بيختبر
مشكورين
محمدي غير متصل   رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)

أدوات الموضوع
انواع عرض الموضوع

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع


الساعة الآن 11:08 AM.


Powered by vBulletin® Version 3.8.1, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd. TranZ By Almuhajir
جميع المواضيع والمشاركات تعبر عن وجهة نظر أصحابها
ولا تعبر باي شكل من الاشكال عن وجهة نظر منتديات AOUA
تصميم وتطوير : التكنولوجيا الماسية