Social App Builder
Social App Builder
สร้างแอปใหม่
English
Azərbaycan dili
Bahasa Indonesia
Bahasa Melayu
Čeština
Dansk
Deutsch
Español
Français
Hrvatski
Italiano
Lietuvių
Magyar
Nederlands
Polski
Português
Română
Shqip
Slovenčina
Slovenščina
Suomi
Svenska
Tiếng Việt
Türkçe
Ελληνικά
Български
Македонски
Русский
Српски
עברית
العربية
हिन्दी
বাংলা
ภาษาไทย
ქართული
中文
한국어
日本語
Other Languages
สร้างบัญชี
เข้าสู่ระบบ
C Challenge
The Test has been designed by Director of Aspire Institute , Raithatha Yash .This Challenge checks ur fundamentals in C language . This test will be helpful to all the students who are preparing for their placement . In case of any query please fil
เริ่ม
แบ่งปัน
C Challenge
1. main() {
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
printf("\n %c", i[s] );
}//What is o/p?
คำถาม 1 out of 20
(A)man
(B) nam
(C)mmm
(D)compilation error
C Challenge
2. main(){
static int var = 5;
if(--var)
main();
printf("%d ",var++);
}//What is o/p?
คำถาม 2 out of 20
A)0 1 2 3 4
B)1 2 3 4 5
C) compile error
D)0 0 0 0 0
C Challenge
3. main() {
float c[]={1,2.2,3.2};
float i,*p=c,*q=c;
for( i =0; i<3;i++,*q++;)
printf("%2.1f ",*c);
for(i=0 ; i<3 ; i++,(*p)++)
printf("%2.1f ",*p);
}//What is o/p?
คำถาม 3 out of 20
A)1.0 2.2 3.2 1.0 2.2 3.2
B)1.0 1.0 1.0 1.0 2.2 3.2
C)1 2 3 1 2 3
D)1 1 1 1 2 3
C Challenge
4. main() {
printf("\rbba");
printf("\baab");
printf("\raa");
}//What is o/p?
คำถาม 4 out of 20
A) aa
B)aaaab
C)aabab
D)bbaaa
C Challenge
5. main()
{
char str[] = "Hello World";
display(str);
}
void display(char *string)
{
printf("%s",string);
}//What is o/p?
คำถาม 5 out of 20
(A)Hello World
(B) Hello
(C)H
(D)Compilation Error
C Challenge
6. main()
{
int a[3][2][2] = { {1,2,3,4}, {5,6,7,8},{9,10,11,12} };
int *p,*q;
p=&a[3][2][2];
*q=***a;
printf("%d-%d",*p,*q);
}//What is o/p?
คำถาม 6 out of 20
(A)12-1
(B)9-1
(C)1-12
(D)None of these
C Challenge
7. #define f(a,b) a/b
main() {
int x=5,y=6;
printf("\n%d",f(x*6,y*x));
}//What is o/p?
คำถาม 7 out of 20
(A)1
(B)25
(C)30
(D)None of these
C Challenge
8. main() {
char *ch="Computer ";
while(*ch!='\0') {
++*ch;
printf("%c ",*ch); ch ++; }
}//What is o/p?
คำถาม 8 out of 20
(C)Cpmquues
(A)Dpnqvufs
(B)Donpvtfr
(D)None of these
C Challenge
9. main() { static char names[5][7]={"pascal","java","cobol","fortran","perl"}; int i; char *ch; ch=names[3]; names[3]=names[4]; names[4]=ch; printf("%s",names[4]); }
คำถาม 9 out of 20
(C)fortran
(D)perl
(A)Compilation Error : Array index out of Bound
(B)Compilation Error: char Array is constant Pointer
C Challenge
10. enum colors {BLACK,BLUE,GREEN}
main() {
int i=1;
switch(i) {
case BLACK: printf("GOOD");
break;
case BLUE: printf("BAD");
break;
}
}
คำถาม 10 out of 20
(A)compilation Error
(B) GOOD
(C)BAD
(D)runtime error
C Challenge
11. main( ) {
int x=10,y=10,*p1,*p2,k;
p1=&x;
p2=&y;
k=5 + *p1 /*p2;
printf(“%d”,k);
}
คำถาม 11 out of 20
A)6
B)5
c)Compile Error
d)None of these
C Challenge
12. main( ) {
char *q;
int j;
for (j=0; j<3; j++)
scanf(“%s” ,(q+j));
printf(“%s” ,(q));
}//Input are:YASH ,PRIYAM,JAYESH
คำถาม 12 out of 20
(A)YPJAYESH
(B)YASH
(C)JAYESH
(D)None of these
C Challenge
13. main ( ) {
static char *ch[ ] = {"black", "white", "yellow", "violet"};
char **ptr[ ] = {ch+3, ch+2, ch+1, ch}, ***p;
p = ptr;
**++p;
printf(" %s",(*--*--p + 4));
}
คำถาม 13 out of 20
(A)ow
(B)et
(C)k
(D)e
C Challenge
14. main() {
void f1();
void f2();
f1();
}
void f1() {
f2();
printf(“in f1”);
}
void f2() {
printf(“in f2”);
}//what is o/p?
คำถาม 14 out of 20
(A) Compilation Error (D)None of these
(B)in f2
(C) in f2in f1
(C) in f2in f1
C Challenge
15. f2(a,b)
int a;
float b; {
return( a = !(a==b) );
}
main() {
int p1(), f2();
printf("The value is %d \n ",p1(f2,6,6.0));
}
p1(f2,val1,val2)
int (*f2) ();
int val1;
float val2;
{
return((*f2) (val1,val2));
}
คำถาม 15 out of 20
(A) The value is 0
(B) The value is 1
(C) The value is 0.0
(D)Compilation Error
C Challenge
16. main() {
char *p; int *q; long *r;
p=q=r=0;
p++; q++; r++;
printf("%p...%p...%p",p,q++,r++);
}
คำถาม 16 out of 20
A)0001...0004...0008
B)0001...0002...0004
C)0001...0002...0002
D)0002...0004...0008
C Challenge
17. void scan(int* size) {
*size=110;
}
main() {
int array_size;
scan(&array_size);
printf("%d",array_size);
}
คำถาม 17 out of 20
(C)compile Error
(A)110
(B)address of “array size”
(D)None of these
C Challenge
18. f(int n) {
If(n>0) return (n + f(n-1));
}
main() {
printf(“%d”,f(10));
}
คำถาม 18 out of 20
(C)45
(A)55
(B)110
(D)compilation error
C Challenge
19. main() {
Char *ch = “hello”;
printf(ch);
}
คำถาม 19 out of 20
(C)run time error
(A) hello
(B) compilation error
(D) None of these
C Challenge
20. void main(){
int x=1,y=0;
if (++x > 2)
if(++y<5)
y=100;
else
x=100;
printf(“ %d %d”, x,y);
}
คำถาม 20 out of 20
A)100 0
B)100 100
C)100 2
D)None of these
สร้างโดย
Frances_Fisher
สร้างแบบทดสอบของคุณเอง
Online People - ออกเดท แชท และพบปะผู้คนใหม่ๆ
แบบทดสอบที่แนะนำ
คุณคือใครในพี่ๆวงจุ๊บแ จง
คุนคิดว่าคุนจะสอบตกมั้ ยนะเทอมนี้
รู้จักกีฬาสีเวบเลิฟกัน แค่ไหน ?
ในมุมมองของคุณอาจารย์บ ัณฑูรย์เป็นคนแบบไหน??
ใครคือไอดอลคุณใน Dota ?
เค้ามีกิ๊กหรือป่าว
ทดสอบการนอกใจ !!
รู้จักอิงอิง ศศิพิมพ์ดีแค่ไหน
Windows 7 ตัวไหนเหมาะกับคุณ
ขนส่วนใดเยอะที่ซู้ด...
ข้อสอบวัดความสนิทของ Netto
ผู้หญิงกับความรัก
เลือดชมพูน้ำเงินในกายข องคุณเข้มข้นมากแค่ไหน?
ทายนิสัยจากการเลือกอาช ีพในเกมส์
คุณรู้จัก "ดวงกมล สุธรรมโชติ" ดีแค่ไหน
คุณเป็นใครในกนศ.สินสาด
คุณรู้จักเพื่อนๆ หอวังรุ่น 17 ดีแค่ไหน
คุณอยู่ห้อง502จริงรึเป ล่า
เป็นสาวก Monkey เหมือนกันรึป่าว?
เพลงไหนที่คุณมอบให้โกเ บ
คุณคือ Karn Fan Club หรือไม่?
คุณดอกทองมากแค่ไหน
คุณเป็นเด็ก Mm Rsu ถึงกึ๋นหรือไม่
มาสนิทสนมกะน้องแนนดีก่ า กรั๊กๆ
คุณรู้จักพัตมากแค่ไหน
คุณมีความเป็น เฮียปัทมา มากแค่ไหน??
เทอ..จะรักหรือเทอจะร้า ย
Chern
คุณเหมาะสมกับท่อ รถ อะไร
คุณเป็นอาจารย์คนไหน ใน รร. สาธิตมมส.
แบบทดสอบเพิ่มเติม
โพลล์แนะนำ
ใครเป็นหมาในฝูงของเรา! ?
นิสิตทันตะ มศว อยากขึ้นคลินิกใด?
ผลสำรวจความเกลียดชัง 301
คุณอยากให้ Secret Love 0.1.2.3 ออกมาในรูปแบบใด
รางวัล กรรมตามทัน อวอร์ท 2010
Kanokon Kulthep
Idea Poll
3/3 ใครหล่อสุด !!
ผู้ชายพีดีปีสี่ใครเกรี ยนสุด
ใครใน Dent'42 ที่เป็นเกรียน Facebook
แบบสำรวจเพิ่มเติม
แอพที่แนะนำ
คุณจะได้ควงหนวดไหน
คุณจะจบ Comprehensive Clinic มั้ย
คืนนี้เอาข้างหรือข้างห ลังดี
Iqของคุณเมื่อเทียบกับห ฤษิฏ วงษ์ดารา
แฟนของคุณจริงใจกับคุณม ากแค่ไหน
แอพเพิ่มเติม