
C LANGUAGE A
Authored by sathwik jilla
World Languages
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many times while loop conditions will execute if i is initialised to 0 in both cases
while(i<n)
i++;
-------
do
i++;
while(i<=n);
n,n
n,n+1
n+1,n
n+1,n+1
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C code?
#define HELLO(a) #a
main()
{
printf(HELLO(good morning));
}
good morning
goodmorning
Option 3
error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the size of the following C structure?
#include <stdio.h>
struct temp
{
int a[10];
char p;
};
5
11
41
44
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
#include<stdio.h>
int foo();
int main()
{
int i=foo();
}
foo()
{
printf("2 ");
return 2;
}
2
compile time error
Depends on the compiler
Depends on the standard
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
#include<stdio.h>
struct test
{
int i;
char j;
};
main()
{
printf("%d",sizeof(struct test));
}
Error
1
4
8
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
#include<stdio.h>
void main(){
int k;
for(k= -3;k<-5;k++)
printf("Hello");
}
Hello
infinite hello
Runtime error
Nothing
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be output of the following code?
#pragma(1)
struct test
{
int i;
char j;
};
main()
{
printf("%d",sizeof(struct test));
}
1
8
Error
4
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
ANTONIM SINONIM
Quiz
•
University
19 questions
Extra-episodio 1
Quiz
•
KG - University
22 questions
Los Utiles Escolares
Quiz
•
KG - University
15 questions
Introduction to Communication
Quiz
•
University
20 questions
Netiquettes (GS quiz 17)
Quiz
•
5th Grade - Professio...
20 questions
Revisão da 2UA - Fonética e Fonologia
Quiz
•
University
15 questions
Mga Teorya ng Wika
Quiz
•
University
20 questions
IT Computer Science Chapter 2 Quiz
Quiz
•
5th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for World Languages
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
27 questions
U6D3 presente progresivo
Quiz
•
9th Grade - University
10 questions
S3xU4 ESCAPA
Quiz
•
9th Grade - University
20 questions
Presente indicativo
Quiz
•
KG - University
20 questions
Preterito vs. Imperfecto
Quiz
•
KG - University