Adv C
Test
Model Test
Ebook
Quiz-2 : Data types and variables, Adv C
Quiz-4 : Control Structure, Adv C
Quiz-10 : Operator, Adv C
Index
Adv C Home
Operator
15
IO
11
Array
5
Data types and variables
69
Control Structure
69
Pointer
10
Function
2
Struct
2
Memory Allocation
4
Library Functions
5
Keywords
4
Basic
5
C Preprocessor
2
Strings
6
Schools
Ebook
Question:
If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?
A
.
B
&
C
*
D
->
Note:
Not available
Show answer
Show Note
Report
Question:
What would be the equivalent pointer expression for referring the array element a[i][j][k][l]
A
((((a+i)+j)+k)+l)
B
*(*(*(*(a+i)+j)+k)+l)
C
(((a+i)+j)+k+l)
D
((a+i)+j+k+l)
Note:
Not available
Show answer
Show Note
Report
Question:
A pointer is
A
A keyword used to create variables
B
A variable that stores address of an instruction
C
A variable that stores address of other variable
D
All of the above
Note:
Not available
Show answer
Show Note
Report
Question:
The operator used to get value at address stored in a pointer variable is
A
*
B
&
C
&&
D
||
Note:
Not available
Show answer
Show Note
Report
Question:
How will you free the allocated memory ?
A
remove(var-name);
B
free(var-name);
C
delete(var-name);
D
dalloc(var-name);
Note:
Not available
Show answer
Show Note
Report
Question:
What is the similarity between a structure, union and enumeration?
A
All of them let you define new values
B
All of them let you define new data types
C
All of them let you define new pointers
D
All of them let you define new structures
Note:
Not available
Show answer
Show Note
Report
Question:
In which numbering system can the binary number 1011011111000101 be easily converted to?
A
Decimal system
B
Hexadecimal system
C
Octal system
D
No need to convert
Note:
Not available
Show answer
Show Note
Report
Question:
Which bitwise operator is suitable for turning off a particular bit in a number?
A
&& operator
B
& operator
C
|| operator
D
! operator
Note:
Not available
Show answer
Show Note
Report
Question:
Which bitwise operator is suitable for turning on a particular bit in a number?
A
&& operator
B
& operator
C
|| operator
D
| operator
Note:
Not available
Show answer
Show Note
Report
Question:
Which bitwise operator is suitable for checking whether a particular bit is on or off?
A
&& operator
B
& operator
C
|| operator
D
! operator
Note:
Not available
Show answer
Show Note
Report
First
Prev
3
4
5
6
7
Next
Last
/21
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd