
Testing
Authored by CCC info@ccc.training
English
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the prototype of scanf function?
scanf("controlstring",arg1,arg2,arg3,….,argn);
scanf("control string", variable list);
scanf(" varible list,", control string);
scanf("arg1,arg2,arg3,….,argn", control string);
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h> int main() { int i = 10, j = 2; printf("%d\n", printf("%d %d ", i, j)); }
Compile time error
10 2 4
10 2 2
10 2 5
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h> int main() { int i = 10, j = 3; printf("%d %d %d", i, j); }
Compile time error
10 3
10 3 some garbage value
Undefined behaviour
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h> int main() { int i = 10, j = 3, k = 3; printf("%d %d ", i, j, k); }
Compile time error
10 3 3
10 3
10 3 some garbage value
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Escape sequences are prefixed with ________
%
/
"
none of the mentioned
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
printf(“%10s”, state);
10 spaces before the string state is printed
Print empty spaces if the string state is less than 10 characters
Print the last 10 characters of the string
None of the mentioned
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h> int main() { int i = 10, j = 2; printf("%d\n", printf("%d %d ", i, j)); }
Compile time error
10 2 4
10 2 2
10 2 5
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?