ETEA PAST PAPERS
فری تیاری کیلے وٹس ایپ
گروپ جوائن کریں
Click here
Show Answers
چار آپشن میں سے کسی ایک پر کلک کرنے سے جواب سرخ ہو جائے گا۔
switch
continue
break
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The break statement , when used inside a loop, immediately exits the loop and transfers control to the statement following the loop.
It does not terminate the entire program, only the current loop.
Compiler will generate error
z will be converted to long and z will be calculated as long
y will be converted to int and z will be calculated as int
z will be converted to long and z will be calculated as int
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In z = z + y;, since z is an int and y is long , y is converted to int (if possible) to match the type of z due to usual type conversion rules.
The result is calculated as an int, and this may cause data loss if y exceeds int range.
سی پروگرامنگ میں ، لوپ جو کم از کم ایک بار انجام دیا جاتا ہے (یہاں تک کہ اگر حالت غلط ہے) کو ______ لوپ کہا جاتا ہے۔
do-while
for
while
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In a do-while loop , the body executes first, and the condition is checked afterward, ensuring it runs at least once.
This differs from for and while loops , which check the condition before executing.
سی زبان میں ، فنکشن گیٹچار () _____؟
Reads a character from the keyboard without echo
Requires pressing the "Enter" key after entering the character
Reads a string until the user presses the "Enter" key
Reads a character from the keyboard with echo
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In C, getchar() reads a single character from standard input but requires pressing "Enter" to submit the input.
The input is buffered, meaning it waits for the newline (n) before processing the character.
مندرجہ ذیل میں سے کون سا متغیر کے لئے صحیح ہے جو مطلوبہ الفاظ کے ساتھ بیان کیا گیا ہے اور سی زبان میں کسی قدر سے شروع کیا گیا ہے؟
Can be overwritten within the scope of the variable
Does not differ from the variable that is declared without const and initialized
Cannot be changed within the scope of the variable during execution of the program
Can be changed within the scope of the variable
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
A variable declared with the const keyword in C becomes read-only and its value cannot be modified after initialization.
Attempting to change a const variable will result in a compile-time error.
مندرجہ ذیل میں سے کون سی زبان میں متغیر کا نام بننے کے اہل نہیں ہے؟
"address"
"name"
"age"
"define"
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
" define " is a reserved keyword in C, used in preprocessor directives (e.g., #define ) and cannot be used as a variable name.
Variable names like " address ", " name ", and " age " are valid as they follow C naming rules and aren't reserved.
سی پروگرامنگ میں ، پری پروسیسر ہدایات _____ کردار سے شروع ہوتی ہیں۔
*
%
#
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In C programming, preprocessor directives (like #include or #define ) begin with the # symbol .
These directives are processed before the actual compilation of code starts.
کمپیوٹر ہارڈ ویئر کے اندرونی ڈھانچے کے بارے میں گہری معلومات ______ میں پروگرام لکھنے کی ضرورت ہے؟
Low–Level Language
Procedural Language
Structured Language
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Low-level languages (like assembly language) are close to machine code and require deep understanding of hardware structure.
They offer more control over hardware but are complex and hardware -specific.
کمپیوٹر کی تمام سرگرمیوں کو مربوط کرنے کے لئے ہدایات پر مشتمل پروگراموں کا ایک مجموعہ ______ کہا جاتا ہے؟
Productivity Software
Application Software
Operating System
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
An Operating System (OS) is a set of programs that manages computer hardware and software resources and coordinates tasks such as running applications.
It provides essential services like memory management, task scheduling, and file management for smooth computer operation.
جب یہ باہر کی طرف سفر کرتا ہے تو سگنل کی توانائی کا نقصان ______ کہلاتا ہے؟
Distortion
Attenuation
Cross talk
None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Attenuation refers to the loss of signal strength as it travels through a medium, causing the signal to weaken over distance.
It is commonly seen in electrical signals , where the energy diminishes due to resistance or interference .