
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
15 questions
A2+ 7C Grammar Articles
Quiz
•
University
20 questions
Unit 5 Vocabulary Quiz
Quiz
•
10th Grade - University
20 questions
Հայ Գրականություն
Quiz
•
University
15 questions
Pagsusulit sa GNED 12
Quiz
•
University
15 questions
Chinese Business Vocabularies
Quiz
•
University
20 questions
Osmanlı Türkçesi 2. Kur Sınavı
Quiz
•
University
20 questions
Bài tập số 7 - 1920년대 문학
Quiz
•
University
16 questions
CHRISTMAS MOVIES!!!!!!
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for World Languages
40 questions
Spanish Double Object Pronouns
Quiz
•
10th Grade - University
25 questions
DEFINITE AND INDEFINITE ARTICLES IN SPANISH
Quiz
•
KG - University
10 questions
S3xU4 ESCAPA
Quiz
•
9th Grade - University
10 questions
ESP4 Unidad 3: Adjective clauses
Quiz
•
9th Grade - University
20 questions
Ser y estar
Quiz
•
7th Grade - University
20 questions
Preterito vs. Imperfecto
Quiz
•
KG - University
10 questions
ESP4 Unidad 3: Vocabulario
Quiz
•
9th Grade - University