GMT: Chủ Nhật, ngày 26  tháng 5, năm 2019 . .   
Đăng nhập tạm thời:  

Căn Bản    Văn Phòng    Hệ Thống - Mạng    Phần Mềm Ứng Dụng    Kỹ thuật số    Lập trình    SQL   
 C#     C++     Visual Basic     Visual Foxpro     C     Java     Pascal     Thiết Kế Web     ASP.NET     XML     CSS     PHP   

Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 32
A pointer to a block of memory is effectively same as an array A. True B. False.... Does this mentioning array name gives the base address in all the contexts? A. Yes B. No... Are the expressions arr and &arr same for an array of 10 integers? A. Yes B. No...
Thời gian bắt đầu: Hôm nay lúc 18:41:26(Server time)
Số câu hỏi: 10.   Tổng điểm: 10
Thời gian làm bài: 20 phút.  Thời gian còn lại: 
Cỡ chữ câu hỏi:  Cỡ chữ đáp án:
1-
A pointer to a block of memory is effectively same as an array
A-
True
B-
False
2-
Does this mentioning array name gives the base address in all the contexts?
A-
Yes
B-
No
3-
Are the expressions arr and &arr same for an array of 10 integers?
A-
Yes
B-
No
4-
Which of the following function sets first n characters of a string to a given character?
A-
strinit()
B-
strnset()
C-
strset()
D-
strcset()
5-
If the two strings are identical, then strcmp() function returns
A-
-1
B-
1
C-
0
D-
Yes
6-
How will you print \n on the screen?
A-
printf("\n");
B-
echo "\\n";
C-
printf('\n');
D-
printf("\\n");
7-
The library function used to find the last occurrence of a character in a string is
A-
strnstr()
B-
laststr()
C-
strrchr()
D-
strstr()
8-
Which of the following function is used to find the first occurrence of a given string in another string?
A-
strrchr()
B-
strstr()
C-
strchr()
D-
strnset()
9-
Which of the following function is more appropriate for reading in a multi-word string?
A-
printf();
B-
scanf();
C-
gets();
D-
puts();
10-
Which of the following function is correct that finds the length of a string?
A-
int xstrlen(char *s)
{
    int length=0;
    while(*s!='\0')
    {    length++; s++; }
    return (length);
}
B-
int xstrlen(char s)
{
    int length=0;
    while(*s!='\0')
        length++; s++;
    return (length);
}
C-
int xstrlen(char *s)
{
    int length=0;
    while(*s!='\0')
        length++;
    return (length);
}
D-
int xstrlen(char *s)
{
    int length=0;
    while(*s!='\0')
        s++;
    return (length);
}
[ Thành Lãm - ST ]

Chia sẻ trên Facebook   Google Boomarks   Google Buzz    Xem: 753. Đăng: 14-09-2012.   

Support Link:
Thông tin trang Web. Online since: 2011.
Disclaimer of Liability and Endorsement:
free counters
VNEDU.ORG IS A NON-PROFIT WEBSITE! All contents throughout this website are from Internet and other sources and are posted by users, copyright belongs to its original author. VNEDU.ORG stores for educational purpose only. VNEDU.ORG resumes no responsibility and liability, make no promise, or guarantee for the accuracy or efficiency of any content. If you find any content that is in violation of copyright laws, please notify us and we will immediately remove them. Thank you for visiting VNEDU.ORG