شيئية OOP
282 subscribers
53 photos
10 files
12 links
عمي رحمة لوالديك ولعشيرتك وللعزاز وللعراق وللشرق الأوسط، لا تكعد تحفظ الأكواد
الكود فهم فهم فهم مو حفظ
و السلام
Download Telegram
شيئية OOP
البرمجة : ملزمة دفعة²⁵ + حلول الواجبات: https://t.me/Q_code_cpp/311 شروحات: شرح كامل للغة Cpp من الصفر: https://youtube.com/playlist?list=PLEPx7DrqAqKAJm4wM3r7FvvX7y6tuBOAQ&si=moNpvaL7IPGRFJv8 شرح المتسلسلة سؤال 31: https://t.me/no_zero_any_more/359 طريقة…
البرمجة :
5 فراغات
5 البوابات المنطقية
20 من اول 50 سؤال ( ملف ال75 سؤال )
10 مصفوفات
10 فنكشن

والاسئلة مراح تطلع من اطار ال75 سؤال

كل التوفيق ان شاء الله بحق محمد وآل محمد نشوفكم ناجحين ونفرح بيكم🐧🤍♥️
هذني الي اقصدهن بالبوابات المنطقية
1
اسئلة البرمجة / الدور الأول²⁰²⁵
👎4
شيئية OOP
Photo
Q1/A
1-(X+=Y)=57
2-(X||Y)=1(True)
3-(X!=Y)=1(True)
4-(X^=4)=34
5-(X»=4)=2
Q1/B
1-Instructions
2-logical
3-sizeof
4-continue
5-start

Q2/A
#include<iostream>
using namespace std;
int main () {
for(int i=50;i<=65;++i) {
if (i==57||i==62)continue;
cout<<i<<',';
}
return 0;
}

Q2/B
#include<iostream>
using namespace std;
int main() {
int salary,performance_rating,years_of_service;
float bonus=0;
cin>>salary>>performance_rating>>years_of_service;
if(years_of_service>=5) {
if (performance_rating>8) {
bonus=20;
}else {
bonus=10;
}
}else {
if (performance_rating>8) {
bonus=10;
}else {
bonus=5;
}
}
cout<<"bonus:"<<bonus<<'%'<<endl;

return 0;
}

Q3/A
#include<iostream>
using namespace std;

int main () {
char drink_size;
cin>>drink_size;
switch (drink_size) {
case 's':
cout<<"small";
break;
case'm':
cout<<"medium";
break;
case'l':
cout<<"large";
case'x':
cout<<"extra large";
default:
cout<<"size not available";
}
return 0;
}

Q3/B
#include <iostream> 
using namespace std;

int main() {
int A[3][4]={{3,4,6,1},{4,8,0,9},{5,7,1,2}};
int B[4][3];

for (int i=0; i<3;i++)
{
for (int j=0;j<4;j++)
{
B[j][i]=A[i][j]; // The main idea of the code
}
}
for(int i=0;i<4;i++)
{
for (int j=0;j<3;j++)
{
cout<<B[i][j]<<" ";

}
cout<<endl;
}
return 0;
}

Q4/
#include<iostream>
using namespace std;

int power(int base,int exponent) {
int ans=1;
for (int i=1;i<=exponent;i++) {
ans*=base;
}
return ans;
}
int fact(int n) {
int f=1;
for (int i=1;i<=n;i++) {
f*=i;
}
return f;
}
int main() {
double x,n,sum=0;
cin>>x>>n;
for (int i=0;i<n;i++) {
sum+=power(x,i)/fact(i);
}
cout<<sum;

}

Q5/
#include<iostream>
using namespace std;

int mostf(int a[],int s) {
int m=a[0];
int c=0;
for (int i=0;i<s;i++) {
int counter=0;
for (int j=0;j<s;j++) {
if (a[i]==a[j]) {
counter++;
}
}
if (counter>c) {
c=counter;
m=a[i];
}
}
return m;
}
int main() {
int ar[8]={1,6,3,6,3,4,6,5};
cout<<mostf(ar,8);
}
2
الهياكل OOP - المِد 2025
1👎1
الهياكل OOP - الدور الأول²⁰²⁵
😭42💔1👨‍💻1
اسئلة البرمجة - الدور الثاني²⁰²⁵
👎6👍1💔1
الهياكل OOP - الدور الثاني²⁰²⁵
👎3👍2
Programming and Problem Solving 2025-2026.pdf
1.5 MB
البرمجة لسنة 2025-2026
5
شيئية OOP
Hands-on Activity solution.pdf
هاي حلول التمارين
المفروض نفسهن🥸