50 CÂU HỎI
What is output?
A. Hey
B. 5
C. 5Hey
D. Complie error
What is output?
A. 1 4
B. 1 2 3 4
C. Syntax error
D. Syntax error
What is output?
\
A. Complie error
B. 3
C. 1
D. 1 3
What is output?
A. loop loop loop
B. Infinite loop
C. Complie error
What is output?
A. True
B. False
C. Complier Error
D. Run time error
What is output?
A. A
B. B
C. ABC
What is output?
A. A
B. B
C. ABC
What is output?
A. FALSE
B. TRUE
C. Default
What is output?
A. 3
B. 5
C. 03
D. 05
What is output?
A. 3
B. 4
C. 5
D. 6
What is output?
A. x = 2
B. x = 6
C. x = 0
What is output?
A. ABC
B. BC
C. B
D. Complier Error
What is output of code?
A. ABC
B. DEF
C. Syntax error
What is output of code?
A. Equal
B. Unequal
C. nothing is printed
What is output of code?
A. True
B. False
C. Complier error
What is output of code?
A. True
B. False
C. Complier error
What is output of code?
A. True
B. False
C. Complier error
What is output of code?
A. 2468101214161820
B. 468101214161820
C. nothing is printed
What is output of code?
A. C/C++ 15
B. Java 15
C. Java 5
D. Complier error
What is output of code?
A. C/C++ 80
B. C/C++ 81
C. Java 80
D. Java 81
What is output of code?
A. 1 12
B. 2 12
C. 2 11
What is output ?
A. hello_World
B. ello_World
C. llo_World
D. lo_World
What is output?
A. hello_World
B. ello_World
C. llo_World
D. lo_World
What is output?
A. 3
B. 4
C. 5
D. 6
What is output?
A. 10#15
B. 10#10
C. 15#15
D. 11#15
What is output of following code?
A. 4#4
B. 4#5
C. 5#6
D. 4#6
What is output of following code?
A. 400 2
B. 400 400
C. 400 401
D. Complier error
What is output?
A. pvpit
B. vpit
C. v
D. Another
What is output?
A. 5
B. 7
C. 9
D. 10
For the code below which lines should be reported as errors by a compiler?
A. 1
B. 2
C. 3
D. None of the lines
What is output?
A. Complier error
B. 6
C. 5
D. Another
What is output?
A. 5
B. 6
C. 8
D. Complier Error
What is output of code?
A. 4
B. 5
C. 6
D. Complier Error
What is output of code?
A. 320
B. 64
C. Complier Error
What will be output of following program?
A. Address of j , Address of i , 3
B. Complier Error
C. 3 , 3 , 3
What will be output of following program?
A. printf("\n%d", ptr2);
B. strcpy(ptr1, "c");
C. strcpy(ptr2, "questions");
D. printf("\n%s %s", ptr1, ptr2);
What will be output of following program?
A. int a = 10;
B. void *p = &a;
C. int *ptr = p;
D. printf("%u\n", *ptr);
What will be output of following program?
A. 3
B. 4
C. 5
D. 6
What will be output of following program?
A. 5 5
B. Complier Error
C. 5 Garbage value
What will be output of following program?
A. Address of i Address of i
B. Garbage value Garbage value
C. Complier Error
What is output?
A. 6
B. 7
C. 8
D. 9
What is output?
A. I
B. E
C. M
D. N
What will be output of following program?
A. 37363534
B. 34353637
C. 45673333
What is output?
A. 11
B. 12
C. Garbage value
D. Complier error
Which of the following statements are correct about an array?
1. The array int num[26]; can store 26 elements
2. The expression num[1] designates the very first element in the array
3. It is necessary to initialize the array at the time of declaration.
4. The declaration num[SIZE] is allowed if SIZE is a macro.
A. 1,4
B. 3
C. 1,2
D. 1
The library function used to find the last occurrence of a character in a string is
A. strnstr()
B. strrchr()
C. laststr()
D. strstr()
What is output? (assuming that the array begins at the location 1002 and size of an integer is 4 bytes)
A. 1006, 2, 2
B. 1006, 4, 4
C. 1002, 5, 5
D. Error
What does the following declaration mean?
A. ptr is array of pointers to 10 integers
B. ptr is a pointer to an array of 10 integers
C. ptr is an array of 10 integers
D. ptr is an pointer to array
What is output?
A. LAPTRINHC++
B. LAPTRINHC++\0\.NET\0
C. LAPTRINHC++\0\.NET
What is output?
A. LAPTRINHC++.NET
B. .NETLAPTRINHC++
C. Address of pstr[0] Address of pstr[1]