متغیر کے دائرہ کار سے کیا مراد ہے۔
-
A. accessibility of variable
-
B. length of variable
-
C. none
-
D. name of variable
Explanation
Variable scope refers to the extent of code in which a variable can be referenced.
Variables defined inside a function are called local variables.
The scope of local variables and dummy arguments is limited to the function in which they are defined.
-
A. Java and C++
-
B. Perl
-
C. Java script
-
D. python
Explanation
C++ and Java differ in their platform dependency, memory management, and use of classes.
C++ is platform dependent and needs to be compiled on every platform.
Java is platform-independent.
Once it's compiled into bytecode it can be executed on any platform.
مشروط آپریٹر ______ کا متبادل ہے؟
-
A. None of these
-
B. If-else
-
C. If
-
D. Nested-if
Explanation
The conditional operator (? :) is a shorthand for the if-else statement.
It evaluates a condition and returns one value if true, another if false.
کون سا فرار کی ترتیب موجودہ لائن کے آغاز میں کرسر کو منتقل کرتی ہے؟
-
A. None of these
-
B. \n
-
C. \r
-
D. \b
Explanation
r is the carriage return escape sequence, which moves the cursor to the beginning of the current line.
It does not move to the next line, unlike n (newline).
-
A. Both
-
B. None
-
C. procedural
-
D. object oriented
Explanation
Examples of computer procedural languages are BASIC, C, FORTRAN, Java, and Pascal
✅ Correct: 0 |
❌ Wrong: 0 |
📊 Total Attempted: 0