C Programming Quiz

C Programming Quiz
Test your knowledge of C programming with this comprehensive quiz designed for both beginners and advanced programmers. It covers a wide range of topics from data types to pointer operations.
Key Features:
- Multiple choice and checkbox questions
- Questions focus on practical coding scenarios
- Ideal for self-assessment or review
Az allabbiak kozul melyiknek globalis a hataskore?
Konstansok
Makrok
Formalis parameterek
Lokalis valtozok
Valaszd ki az osszes igaz allitast
A valtozokat hasznalat elott deklaralni kell
A kulcsszavai mas celokra is hasznalhatoak, mint peldaul valtozook nevei
Minden kulcsszo kisbetukbol all
Kis es nagybetu erzekeny
Hany beepitett adattipus letezik C-ben?
9
10
5
7
Melyik kijelentes NEM igaz a union tipusra?
Nem hasznalhatok rogzitett bit hosszusagu mezok
Letezhet pointer ami uniora mutat
Az unui szerepelhet struktruaba
Az unio mezoi kulonbozo meretuek lehetnek
Az allabiak kozul melyik NEM egy C nyelvben letezo kulcsszo?
Register
Type
Extern
Volatile
A & bitmuvelet egy akarmilyen bitet szamma tud alakitani
Igaz
*
&&
||
A C egy ... Szintu programozasi nyelv
Magas
Gepi
Alacsony
Kozepes
Az alabbi deklaralasok kozul melyik helytelen ?
Short a =10;
Long short d=40;
Long double c=30;
Unsigned short b=20;
Az alabbiak kozul mely kijelentes igaz a NULL pointerre?
Deklaralhatunk egy NULL pointer a kovetkezo modon : char *p=(char *) 0
A NULL pointer hasonlo egy nem inicializalt pointerhez
A NULL makro csak az stdio.h header allomanyaban van deklaralva
A sizeof(NULL) visszateritesi erteke 1
Az allabbiak kozul melyik helykitoltot nem resze a C nyelvnek?
%d
%i
%g
%p
Hova helyezzuk az f karakter , hogy a 3.14 double tipusu konstanst float tipusukent definialjuk?
(f)(3.14)
F(3.14)
(float)(3.14)(f)
3.14f
Mit ir ki az alabbi program ?
#include<stdio.h>
int main()
{
char ch;
if(ch=printf(""))
printf("ez\n");
else
printf("az\n");
return 0;
}
Ez
Az
Kompilalasi hiba
Semmit
Melyik allomany kerul bezarasra a kovetkezo programban?
int main()
{
FILE *fs,*ft,*fp;
fp=fopen("ABC","r");
fs=fopen("ACD","r");
ft=fopen("ADF","r");
fclose(fp,fs,ft);
return 0;
}
ACD
ABC
ADF
Kompilalasi hiba
MIt ir ki az alabbi program?
#include <stdio.h>
int main()
{
int y=2;
int z=y+(y=10);
printf("%d\n",z);
return 0;
}
Kompilalasi hiba
2
4
20
MIt ir ki az alabbi kod reszlet?
if(1<2>3<4) printf("igaz");
else
printf("hamis");
Kompilalasi
Hamis
Igaz
Mit ir ki az alabbi kodreszlet?
char str[]="alma";
if(0[str]==str[0]) printf("a");
else printf("hiba");
NULL
Forditasi hiba
Hiba
A
Mit ir ki az alabbi kodreszlet?
printf([%8x]\n",16);
[ 10]
[ 16]
[00000016]
[%8x]
[00000010]
Mit ir ki az alabbi program ?
main()
{char *s="Hello";
while(*s!=NULL)
printf("%c",*s++);
}
Kompilalasi hiba
Helloellolloloo
Ello
Hello
Mit ir ki az alabbi kodreszlet?
#include<stdio.h>
#include<stdbool.h>
int main()
{
bool arr[10]={true,false};
printf("%ld\n",sizeof(bool));
return 0;
}
10
2
1
4
Mit ir ki az alabbi program ?
#include <stdio.h>
main()
{
for(1;2;3)
printf("Hello\n");
}
Ures kimenet
Hello
Vegtelenszer Hello
Kompilalasi hiba
Hanyszor irja ki az 1 karaktert az alabbi kod reszlet?
#define if while
if (1) printf("1");
Vegtelenszer
Forditasi hiba
0
1
Hanyszor irja ki az 1 karaktert az alabbi kod reszlet?
int i=0;
while(1)
{
if(++i==0) break;
if(++i==10) break;
printf("1");
i+=2;
}
2
4
0
10
Mi lesz az a valtozo erteke az alabbi kodreszlet vegrahajtasa utan?
int a=15,b=51;
a=a^b;
b=a^b;
a=a^b;
printf("%d",a);
15
55
51
11
{"name":"C Programming Quiz", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of C programming with this comprehensive quiz designed for both beginners and advanced programmers. It covers a wide range of topics from data types to pointer operations.Key Features:Multiple choice and checkbox questionsQuestions focus on practical coding scenariosIdeal for self-assessment or review","img":"https:/images/course2.png"}
More Quizzes
C# és OOP Kvíz
15835
Dsaasddsa
11620
Alkalmazásfejlesztés I.
34170
Halozatok
1336668
Szamitaselmelet alapjai 2 EA
663333
Testul Insuficientei Cardiace Congestive
158169
Renaissance and Reformation
158253
Inhibitori ai Sintezei de Proteine
158112
Vocabulary Quiz
Common Literary Terms
Abrams, M. H. (1999). A Glossary of Literary Terms. (7nd ed). Heinle & Heinle, a division of Thomson Learning.
10547
Misoginia Quiz: Scopri il tuo livello
105324
¿Qué tipo de minero eres?
10523
���ివిధ అధ్యయన శాస్త్రాలు - different studies
251247