C++ Institute CLA - C Certified Associate Programmer 認定 CLA-11-03 試験問題:
1. What happens if you try to compile and run this program?
#include <stdio.h>
int main (int argc, char *argv[]) {
float f = 1e1 + 2e0 + 3e-1;
printf("%f ",f);
return 0;
}
Choose the right answer:
A) The program outputs 123.00000
B) The program outputs 12.300000
C) The program outputs 1230.0000
D) Compilation fails
E) The program outputs 12300.000
2. What happens if you try to compile and run this program?
#include <stdio.h>
int main (int argc, char *argv[]) {
int i = 1, j = 0;
int 1 = !i + !! j;
printf("%d", 1);
return 0;
}
Choose the right answer:
A) The program outputs 1
B) Compilation fails
C) The program outputs 2
D) The program outputs 3
E) The program outputs 0
3. What happens if you try to compile and run this program?
#include <stdio.h>
int main (int argc, char *argv[]) {
int i = 1;
for(;i > 128;i *= 2);
printf("%d", i) ;
return 0;
}
-
Choose the right answer:
A) The program enters an infinite loop
B) The program outputs a value less than 128
C) The program outputs 128
D) The program outputs a value greater than 128
E) Compilation fails
4. What happens if you try to compile and run this program?
#include <stdio.h>
int *fun(int *t) {
return t + 4;
}
int main (void) {
int arr[] = { 4, 3, 2, 1, 0 };
int *ptr;
ptr = fun (arr - 3);
printf("%d \n", ptr[2]);
return 0;
}
Choose the right answer:
A) The program outputs 4
B) The program outputs 5
C) The program outputs 1
D) The program outputs 2
E) The program outputs 3
5. What happens when you compile and run the following program?
#include <stdio.h>
int fun(void) {
static int i = 1;
i++;
return i;
}
int main (void) {
int k, l;
k = fun ();
l = fun () ;
printf("%d",l + k);
return 0;
}
Choose the right answer:
A) The program outputs 4
B) The program outputs 5
C) The program outputs 1
D) The program outputs 2
E) The program outputs 3
質問と回答:
| 質問 # 1 正解: B | 質問 # 2 正解: B | 質問 # 3 正解: B | 質問 # 4 正解: C | 質問 # 5 正解: B |














832 お客様のコメント
品質保証JPexamはIT認定試験のシラバスに従って、試験問題の範囲を正確に絞って、的中率が99%の最新問題集を捧げます。
1年間の無料更新サービスJPexamは1年以内に問題集の無料更新サービスを提供し、お客様がいつでも最新版の問題集を持つことを保証いたします。もし試験の内容が変更されたら、弊社は直ちにお客様にお知らせします。それに、弊社の問題集が更新されたら、早速メールで最新バージョンを送付いたします。
全額返金JPexamの問題集を利用すると、短時間で勉強しても試験に合格できるのを保証いたします。試験に不合格になってしまった場合、弊社は全額返金いたします。(
ご購入前のお試しJPexamは問題集のサンプルを無料で提供いたします。ご購入前にサンプルを試用して製品の品質を確認することができます。ご遠慮なく利用してください。
