Cs201 Midterm Solved Mcqs by Junaid Malik
Cs201 Midterm Solved Mcqs by Junaid Malik
TO PROGRAMMING
(SOLVED MCQs)
FROM MIDTERM PAPERS
LECTURE (1-22)
ajtechinstitute24@gmail. For More Visit: vujunaid.com JUNAID MALIK (0304-
com 1659294)
ÂL-JÛÑÂÎD TÊCH
JOIN OUR GROUP FOR MORE UPDATE
Click Button
1. Consider the following code segment. What will be the output of following code?
int addValue (int*a)(
int b=(*a)+2;
return b;
)
6,8,6
6,6,8
6,8,8
6,6,6
2. main 0 {
Int x=6
cout<< x <<”,”;
cout << addValue(&x)<<”,”;
cout << x;
}
6,8,6
6,6,8
6,8,8
6,6,6
3. Here the code is given below. You have to identify the problem in the code.
While(i<10)&&(i>24))
The logical operator && cannot be used in a test condition
The while loop is an exit-condition loop
The test condition is always true
The test condition is always false
4. The correct syntax of do-while loop is………
(condition) while; do{statements};
{statements;} do-while ();
While(condition); do {statements};
do {statements;} while (condition);
ÂL-JÛÑÂÎD TÊCH
5. Matrix is defined as…………
Single dimensional array
Multi-dimensional array
Vector product
Scalar product
6. In programming, comments are used to explain the function of the…….
Debugger
Editor
Program
Linker
7. Operating System is a type of a/an………
Application software
System software
Computer software
Interpreter
8. From the options given, you need to choose the option which is true for given code.
for (int I = 1; I > 0; i++) {
/*loop code */
}
The logical operator && cannot be used in a test condition
The while loop is an exit-condition loop
The test condition is always false
The test condition is always true
9. Which of the following values are used in C/C++ to represent true or false?
1 and 0
1 and -1
11 and 00
Any numerical value
10. ‘while’ loop may execute………..or more times.
Three
Zero
Two
One
11. Body of any function is enclosed within……….
{}
()
[]
“”
12. What will be the correct syntax for initialization of a pointer ptr with string
“programming”?
chat ptr=’programming’ ;
chat *ptr=”programming” ;
chat *ptr=’programming’ ;
*ptr=”programming” ;
13. Which one of the given options is not a mode for reading/writing the data from a file?
in
out
ÂL-JÛÑÂÎD TÊCH
trunc
get
14. …………mode allows us to add data or change data anywhere in the file.
ios::ate
ios::app
ios::binary
ios::edit
15. In C/C++……….are the doors through which data can enter and come out of a program.
Streams
Fields
Variables
Header files
16. All structure is elements are………...by default.
Public
Protected
Private
Public and Private
17. The function write() takes………………………as parameter(s).
String of pointer type
String of variable lengths, no of bytes to be read and flags
Pointer array of characters and a delimiter
String and no, of bytes to be written
18. Computers can do………… what we tell them to do.
More than
Less than
Exactly
Similar
19. When the logical operator AND (&&) combines two expressions exp 1 and exp2 then the
result will be true only……………
When both exp1 and exp2 are true
When both exp1 and exp2 are false
When exp1 is true and exp2is false
When exp1 is false and exp2is true
20. Null character is used to indicate the…………of string.
Start
End
Begin
Middle
21. Base address is the memory address of………. element of an array.
1st
2nd
3rd
4th
22. The operators ++ and - -are used to increment and decrement the value of a variable by
………...
3
2
ÂL-JÛÑÂÎD TÊCH
1
4
23. Which of the following operators is used to access the value of variable pointed by a
pointer?
* operator
-> operator
&& operator
& operator
24. In case of single dereferencing the value of the……………is the address of the……….
pointer, variable
pointer, constant
variable, pointer
constant, pointer
25. The reminder (%) operator is a…………..operator.
Logical
Arithmetic
Relational
Conditional
26. What will be the output of following code?
int x= 10;
cout <<”x=” <<x;
10
“x=10”
x=10
10=x
27. The purpose of using cout<< is to…………
Display information on the screen
Read the data from keyboard
Read the data from a file
Write into a file
28. Which of the following data types will be assumed if no data type is specified with
constant?
short
float
int
double
29. When an array element is passed to a function, it is passed by……….
reference
data type
value
data
30. While programming, it is good to provide an easy to understand and easy to use interface;
this programming skill is called…….
Scalability
Usability
Reliability
Sustainability
ÂL-JÛÑÂÎD TÊCH
31. …………..executes all the lines before error and stops at the line which contains the
error.
Interpreter
Compiler
Linker
Debugger
32. Which of the following is the correct syntax to access the value of first element of an
array using pointer ptr?
Ptr[0]
*(ptr=1)
ptr[0]
*ptr[0]
33. C is a/an………….language.
Low level
Object based
Object oriented
Function oriented
34. …………...of a function is also known as signature of a function.
Definition
Declaration
Calling
Invoking
35. ………are very good tools for code reuse.
Operators
Loops
Functions
Variables
36. If any break statement is missed in switch statement, then……….
Compiler will give error
This may cause a logical error
No effect on program
Program stops its execution
37. A 2D array multi [5][10] can be accessed using the array name as **multi, this technique
is called………….
Single referencing
Single dereferencing
Double referencing
Double dereferencing
38. In C/C++, the default command line arguments passed to the main function are………...
float argc, char **argv
int argc, char **argv
int *argc, char *argv
int argc, float **argv
39. A record is a group of related…………….
Files
Bytes
Fields
ÂL-JÛÑÂÎD TÊCH
Data
40. The Microsoft word documents (doc) is a kind of………...
Sequential File
hhjkRandom Access File
Binary Access File
Executable File
41. Null character is used to indicate the…………of string.
Start
End
Begin
Middle
42. How many dimensions does n-dimensional array has?
n-dimensions
2n-dimensions
(n+1) dimensions
(n-1) dimensions
43. Which of the following function call is “call by reference” for the following function
prototype?
void func (int*);
func (int &num);
func (&num);
func (*num);
func (num);
44. The loop which is most suitable to be used when the number of iterations is known is
called…………….
for
while
do-while
all looping processes require that the iterations be known
45. In C/C++, the string constant is enclosed in……………
curly braces {}
parentheses ()
single quotes ‘ ‘
double quotes “ “
46. In order to get the right most digit of a number, we divide this number by 10 and
take…………...
Its reminder
Its quotes
Its divisor
The number
47. What is the correct syntax to declare an array of size 10 to int data type?
int [10] name;
name [10] int ;
int name [10];
int name[];
48. How many bytes of memory are occupied by array ‘str’?
ÂL-JÛÑÂÎD TÊCH
char str[]= “programming”;
10
11
12
13
49. When the if statement consists more than one statement then enclosing these statement in
curly braces is,
Not required
Good programming
Relevant
Must
50. Suppose that an integer type pointer contains a memory address 0x22f230. What will be
the new memory address if we increment this pointer by one?
0x22f231
0x22f234
0x22f226
0x22f238
51. Which of the following if missing would result in infinite recursion in case of recursive
function?
Recursive call
Base case
Function parameters
Local variables
52. Whenever we use a library function or a predefined object or marco, we need to use
a…………...
Source file
Object file
Header file
Exe file
53. Switch statement deals with………..type of data.
Integer
Float
Character
Both Integer and Character
54. Both compiler and……….are used to translate program into machine language code.
Debugger
Linker
Loader
Interpreter
55. TWAIN stands for…………..
Technology With an Interesting Name
Technology Without an Informative Name
Technology Without an Interesting Name
Technology With an Informative Name
56. The parameters passed to isdigit() function is………
A character variable
A Boolean variable
ÂL-JÛÑÂÎD TÊCH
An integer variable
A character string
57. C++ views each file as a sequential stream of…………
Bites
Bytes
Numbers
Words
58. Structure is a collection of…………under a single name.
Only functions
Only variables
Both functions and variables
Only data types
59. The default mode for writing into a file using of stream object is…………
Out
Bin
App
Ate
60. The Microsoft word documents(doc) is a kind of………
Sequential File
Random Access File
Binary Access File
Executable File
61. The memory address of the first element of an array is called
Floor address
Foundation address
First address
Base address
62. We want to access array in random order which of the following approach is better?
Pointers
Array index
Both pointers and array index are better
Matrix
63. The……….. structure is a multiple-selection construct which makes the code more the
code more efficient and easy to read and understand.
Multiple-if
Switch
If-else
Else-if
64. Which of the following is not a reserved word in C/C++?
int
float
double
sum
65. To access rand(), which library is required to be included in program?
conio.h
stdio.h
stdlib.h
ÂL-JÛÑÂÎD TÊCH
iostream.h
66. What is the highest legal index for the following array?
Int arr[4]
4
3
2
1
67. When an array element is passed to a function, it is passed by………..
Reference
Data type
Value
Data
68. While programming, it is good to provide an easy to understand and easy to use interface;
this programming skill is called…………..
Scalability
Usability
Reliability
Sustainability
69. Word processor is a type of a/an………….
Operating system
Application software
Device driver
Utility software
70. The keyword…………….is used to get some value back from a function.
Return
Break
Continue
Goto
71. Identify the correct option which is used for calling the function float area (int).
area (&num);
area (num);
area (int num);
area (*num);
72. The………….statement allows us to select from multiple choices based on a set of fixed
values for a give expression.
Switch
Break
Continue
Goto
73. C is widely known as development language of……………operating sytem.
Windows
Unix
Mac OS
Linux
74. To convert the value of one type into another type using built-in function, we
include…………..header file.
conio.h
ÂL-JÛÑÂÎD TÊCH
stdlib.h
iostream.h
string.h
75. Syntax of a union is identical to………..
Structure
Class
Function
Loop
76. The function seeking() takes……………parameter(s).
0
1
2
3
77. Which one of the symbol is used to represent a decision in flow chart?
7
214. We can say that a pointer is available that hold the………. address.
Memory
Character
Figure
(a) and (b) both
215. By default, the starting index of an array in C++ is………….
2
0
5
3
216. A character is stored in the memory in………..
1 byte
4 bytes
2 bytes
8 bytes
217. Dereferencing operator is represented by…………
*
+
-
/
218. In the case of pointer to pointer or _______________, the first pointer contains
the address of the second pointer, which contains the address of the variable, which
contains the desired value
Double dereferences
Single dereferences
Triple dereferences
None of these
219. In…………, we try to have a precise statement.
Analysis
Design
Shape
All of above
220. suppose we have int y[10]; To access the 4th element of the array we
write_______
y [4];
y [5];
y [3];
ÂL-JÛÑÂÎD TÊCH
y [2];
221. From the following; which one is the range of Random number generator function
rand()?
0-32767
1-32768
2-32769
3-32766
222. The string in the array is terminated by a………..
Null
One
Double
None of these
223. In C/C++; by default, arguments are passed by………. to a function.
Reference
Value
Character
Figure
224. ……………keyword is used to return some value from a function.
Break
Return
Continue
Goto
225. The increment of a pointer depends on its…………
Variable
Data type
Constant
Operator
226. The ASCHI code of null character is…………
000
010
011
012
227. Pointers are a special type of………..in which a memory address is stored.
Variables
Location
Site
Scene
228. Transpose of a matrix means that when we interchange rows and columns………,
The first row becomes the last column
The first row becomes the first column
The first row becomes the second column
The first row becomes the third column
229. Pointers store the………...
Value of variable
Memory address
All of above
Value of constant
ÂL-JÛÑÂÎD TÊCH
230. Which of the following function call is “call by reference” for the following
function prototype?
int add (int *);
add (&x);
add (int x);
add (x);
add int (x);
231. The name of the array is a constant pointer which contains the memory address of
the…………of the array.
First element
Last element
Third element
Second element
232. Array name always contains the memory address of the ___________of the array.
First element
Third element
Last element
None of above
233. At the___________, we try to break up the problem into functional units
Analysis phase
Design phase
Logical phase
None of these
234. ------—- is used for input file or for reading from the file
Tellg ()
Tellm ()
Stidlif ()
Strstr ()
235. Following is the declaration a………..array int arr [2][2][2];
3-dimensional
4-dimensional
2-dimensional
1-dimensional
236. Which of the following option is correct to complete the declaration of the
unction —-
(parameter1, parameter2) {
//code to be executed}
Void function name
Un-void function name
(a) and (b) both
None of these
237. Of stream is used for,
Output file stream
Input file stream
Rational file stream
Irrational file stream
238. ! (x<3) mean in C++ that,
ÂL-JÛÑÂÎD TÊCH
X is greater than 3
X is lesser than 3
X is equal to 3
X is not-equal to 3
239. By default, the starting index of an array in C++ is……….
0
1
2
3
240. How we declare an array of integer data whose size is 20 with array name count
int count [20];
int [20];
count [20];
int [];
241. Which of the following is a reserve word for data types in C/C++.
Int
Cout
Arr
Str
242. C was developed with the help of………. language.
BCPL and B
BCLP and D
BCLD and B
None of these
243. An object of— class can be created for saving the current position of any opened
file before reading from file.
Streampos
Startpos
Dreampos
None of these
244. C++ is a………. language.
Low level
High level
All of above
None these
245. What is the output of the following code if the 3rd case is ture
Switch(var)
{
Case “a”;
Cout <<” apple” <<endl;
}
Mango
Orange
Banana
Grapes
246. ……………characters is used to indicate the end of the string.
Null
ÂL-JÛÑÂÎD TÊCH
Object
All of above
None of these
247. Which one of the following is used to perform bit wise exclusive or operation?
|
!
<
>
248. If x=11, and x%=3, then values of x will be,
2
3
4
1
249. A variable of character data type occupies…………bytes in memory.
1
2
3
4
250. Null character is represented by………C++
/0
1
2
3
251. In computer system there are mainly……..type of software.
2
3
4
1
252. Where is a pointer variable named ptr of type float which type of variable address
can be stored by ptr.
Float
Integer
String
Boolean
253. X is an integer variable what does X++ means,
Add 1 X value
Add 1 X character
Add 1 X attribute
None of these
254. When we call a function its control,
Transfers to its definition
Return to its definition
Continue to its definition
None of these
255. “/0” takes………...space in the memory.
1 byte
2 bytes
ÂL-JÛÑÂÎD TÊCH
3 bytes
4 bytes
256. ………. will be used for enclosing function statement into a block.
{}
[]
()
None of these
257. How can we declare an array of characters whose size is 12 with array name
“country”.
Char country [12];
Cout country [12];
Count country [12];
None of these
258. Following is the declaration of 2D array how many column are declared for this
array int arr[3][2];
2
3
4
1
259. If we assign 2.06721 to an integer variable x, what will be the output if we print x
using cout<< statement.
2
3
4
5
260. We can access a global variable…………
From anywhere in the program
From not anywhere in the program
From without the program
All of above
261. We use — to include all those functions in our program which are located in
different files.
Linker
Logical
Arithmetic
None of these
262. Which is not true regarding structures,
We can declare array of structure
We can’t declare array of structure
All of above
None of these
263. Mr. Ahmad sleep thirty hours every day. this sentence is……….
Grammatically correct but illogical
Grammatically wrong but logical
Grammatically and logically correct
Grammatically and logically wrong
264. ………. will explain the function of a program.
ÂL-JÛÑÂÎD TÊCH
Comments
Uncomments
Constant
Logical
265. Char**argv can be read as………
Pointer to pointer char
Pointer not to pointer char
All of above
Nill
266. What will be output of the following code
String name [4] = {“Ali”,” Bilal”,” Omer”,” Ayeshan”};
Cout<, name [0];
Ali
Bilal
Omer
Ayeshan
267. The data type before a function name represents its,
Goto type
Continue type
Return type
All of above
268. The expression((a+b)==10))||((x+y)==20)is true only if,
Either ((a+b)==10) OR ((x+y)==20)is true
Either ((a+b)==10) OR ((x+y)==20)is false
Either ((a+b)==10) OR ((x+y)==20)is float
Either ((a+b)==10) OR ((x+y)==20)is integer
269. We have opened a file stream my file for reading (getting) myfile tellg() given us
the current get position of file pointer it returns a whole number of type……..
Long
Short
High
Thin
270. = operator is used for……...
Assigning values to variables
Noy assigning values to variables
Assigning character to variables
None of these
271. What is the use of is:: trunk mode
To truncate an existing file to zero
To truncate an existing file to one
To truncate an existing file to two
To truncate an existing file three
272. Structures use…………allocation.
Heap
Head
Hide
None of these
ÂL-JÛÑÂÎD TÊCH
273. What will be the size of the following character array
Char name [] =” Adeel”;
5
6
7
3
274. A— is an array of characters that can store number of characters specified.
String
Object
Integer
Float
275. …………statement is used to terminate the processing of a particular case and
exit from switch structure.
Break
Continue
Goto
None of these
276. If y=20 and z=y++ then the value of z will be……….
23
21
24
22
277. What will be the output of the following code
String grade [3] = {“A”,” B”,”C”};
Grade [2] =” F”;
Cout<<grade [2];
G
H
F
E
278. Declaration of two-dimensional array of integer having 3 rows and 5 column is
following.
In arr [3][5];
In arr[3,5];
In arr [5],[3];
None of these
279. A=a+1; can be written as……
A+=1;
A=+1;
A+==1;
A+!1;
280. A record is a group of related……..
File
Field
Relation
None of these
ÂL-JÛÑÂÎD TÊCH
281. ……………. construct is used to execute a set of instruction when a condition is
true and other set when it is false
If/else
If/elseif
If
Switch
282. What will be the result of arithmetic expression 6+48/4*3?
10
30
42
54
283. If an array has 50 element what is allowable range of subscripts
1-49
0-49
0-50
1-50
284. If int a=50; then the value of a=3; will be
16
26
36
46
285. Which of the following option is/are correct about array?
Only one type of element can store in an array
Only two types of elements can store in an array
Only three types of elements can store in an array
Only four types of elements can store in an array
286. Whenever some number is added in an array name it will jump as many……….
Rows
Columns
Order
Matrix
287. …………returns true if c is a digit or a letter and false otherwise
Int isalnum(int c)
Int isalnum(int)c
Int (isalunm)int c
None of these
288. Which of the following is the default mode of the opening using the of stream
class.
Ios:: trunk
Trunk::ios
Char::ios
289. In which language the compiler of c language is written
C++
C
Python
PHP
290. While loop executes at least
ÂL-JÛÑÂÎD TÊCH
One time
Two times
Three times
Four times
291. String are accessed by variable of type
Char
Cout
Count
Int
292. Which of the following is the correct operator to compare the values of two
variables.
<>
==
++
293. Not operator is a………..
Double output operator
Single input operator
Single output operator
Double input operator
294. Pointer point to a particular
Memory address
Memory location
Memory data
None of these
295. A function is a block of statement that can be defined once and used……..
As many times as user wants
As one time as user want
As two times as user wants
As three times as user wants
296. ……………..function is used to find the number of characters in a string
Ctype()
Strlen()
Stdlid()
None of these
297. != operator is used to check whether the operand on the left-hand side is……..
Not equal to
Equal to
Lesser than
Greater than
298. How we declare an array of integer data whose size is 20 with array name count.
Int count[20];
Int [count20];
Count int[20];
None of these
299. A variable declared within a code block become —– variable for that block.
Local
ÂL-JÛÑÂÎD TÊCH
Global
Legal
illegal
300. If a file is opened with ios::out mode, then………..
We can’t write in this file
We can write in this file
(a) and (b) both
None of these
301. A function prototype is written…….the function call
Before
After
Later
All of above
302. ………..loop is mostly used to perform repetition of a tasks for a known number
of times.
For
Do-while
While
Nested
303. In shifting operations if zero is inserted at the left most bit the negative number
will become a……………..
Negative
Positive
Neutral
Both (a) and (c)
304. It is the job of………..to transfer the executable code from hard disk to main
memory.
Loader
Rider
Hider
Hitter
305. RAID stands for
Redundant array of inexperience device
Redundant array of independent device
Regional array of inexperience device
Rural array of inexperience device
306. Array indexes start from.......
0
2
1
3
307. In call by reference — of a variable is passed to the called function.
Address
Location
Figure
Attribute
308. The name of a location in memory is called………..
ÂL-JÛÑÂÎD TÊCH
Variable
Constant
Operator
(a) and (b) both
309. Which statement is used to close a file.
Myfile.close();
Myfileclose();
Myfile,close();
Myfile.close()
310. while handling files one can have………….option
open
save
delete
all of above
311. which is the correct syntax to define a structure named student
struct student{//variable};
struct student {
int id;
char name[50];
float gpa;
};
typedef struct { int id;
char name[50];
float gpa;
struct student { char name[50];
int age;
} student1;
All of above
312. <and> both are…………operators.
Arithmetic
Logical
Assignment
None of these
313. Identify the logical error in the following if condition
If((i<5)&&(i>15))
Condition is always false
Condition is always equal
Condition is always true
None of these
314. The use of* sign in first and second statements is called
Int*ptr=&x;
Cout<<*ptr
Referencing and dereferencing
Logical and illogical
Global and logical
None of these
315. C is widely known as development language of operating system.
ÂL-JÛÑÂÎD TÊCH
Linux
Unix
Solaris
Windows
316. 9If x is declare as an integer what will be result of the given expression.
4
3
2
1
317. What will be the correct syntax of declaration of the following statement.
Const int*ptr
Cout int*ptr
Count int*ptr
Int cout*ptr
318. After evaluating the expression X=10+3*4/2-1 the value of x will be,
15
16
17
18
319. We can read write and manipulate the same file using,
Fstream.h
Stdlid.h
Strstr.h
Ctype.h
320. Return type of a function that does not return any values must be…….
Void
Un-void
Exclusive
Illegal
321. Pointer store the………..
Memory location
Memory address
Memory data
None of these
322. ……………operator uses the sign^,
Exclusive AND
Exclusive NOR
Exclusive OR
Exclusive NAND
323. Complier translates high level language program into —- language
Code.
Normal
Machine
Human
Animal
324. Each array declaration must provide the information about all these things
except………….
ÂL-JÛÑÂÎD TÊCH
The location of the last element can be stored
The location of the second element can be stored
The location of the third element can be stored
The location of the first element can be stored
325. Eof is used to check for the………of file when a file is being read.
Last
First
End
Start
326. Result of 4%3 will be,
2
3
4
1
327. When the logical operator AND(&&0 combine two expression exp1 and exp2
then the result will be true only
When exp1 is false and exp2 is true
When both exp1 and exp2 are true
When exp1 is true and exp2 is false
None of these
328. Multi [3][3] element can also be accessed by,
*(multi +3) +3
(*multi +3) +3
*(*(multi +3) +3
*(*multi) +3
329. What is output of following code int
data[10]={10,20,30,40,50,60,70,80,90,100};int*xptr=&data[4],
Int*yptr=&data[6];
Cout<<xptr + yptr++;
121
123
120
124
330. We get 12|8=— where “|”is (bit wise OR).
14
13
12
15
331. ………..is a substitute of multiple if statement.
If-else statement
If statement
If-elesif statement
All of above
332. Find out the logical error in following lines of code
If (x=10)
Cout<<”x is 10;
Assignment operator should be used for comparison
ÂL-JÛÑÂÎD TÊCH
Assignment operator should not be used for comparison
All of above
None of these
333. Which is not true regarding structures
We can declare pointers to structure
We can’t declare pointers to structure
We can’t declare attributes to structure
None of these
334. ……….are used to compile the code.
Di-compiler
Compiler
Dimmer
None of these
335. A………..structure specifies that can action is to be repeated while some
condition remains true
Repetition
Regulation
Ir-regulation
None of these
336. A function is a block of statement that can be define once and used
………………….in the program.
As last time are user wants
As many times are user wants
As first time are user want
All of above
337. …………is used for output during the process of writing to the file.
Skeep()
Ctype()
Strstr()
Stdlid()
338. In case of two dimensional array if you add some number in a two dimensional
array name it will jump to the next……………..
Columns
Matrix
Rows
Attributes
339. In while loop the condition is checked — the execution of loop.
After
Before
Later
First
340. Which step is not performed during a program design.
Write details about the performance of program
Don’t write about the performance of program
Both (a) and (b)
None of these
341. We can say that a pointer is a variable that hodles the……..address
ÂL-JÛÑÂÎD TÊCH
Data
Information
Memory
All of above
342. When accessing a structure member, the identifier to the left of the dot operator is
the name of…………
Constant variable
Structure variable
Only variable
All of above
343. Suppose we have a file name myfile.txt what will be the correct syntax of file
opening for input.
Myfile.open(myfile.txt”, ios::in);
Myfile.open(myfiletxt,ios::in);
Myfileopen(myfile.txt” ,ios::on);
None of these
344. Suppose we have int y[10];
To access the 4th element of the array we write…………
Y [3]
Y [3];
[Y]3;
[Y3];
345. Which operator has the highest precedence
(*,-,/,+)
*and/both have the same highest precedence
-and/both have the same highest precedence
/and/both have the same highest precedence
+and/both have the same highest precedence
346. To read command line argument the main() function itself must be given………..
3
2
4
5
347. From the following which one is the range of random number generator function
rand ().
1-32767
0-32767
1-32768
0-32768
348. ………………...variables are those that are defined are outside of main.
Global
Local
Constant
Legal
349. When the compiler overloads the assignment (=) operator by Default then,
Compiler does member wise assignment
Compiler does not member wise assignment
ÂL-JÛÑÂÎD TÊCH
Compiler does member wise arithmetic
All of above