
Quiz1
Authored by SECE IT
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a = 3;
int b = ++a + a++ + --a;
printf("Value of b is %d", b);
}
Value of b is 12
Value of b is 13
Value of b is 10
Undefined behaviour
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not an arithmetic operation?
a * = 10;
a / = 10;
a ! = 10;
a % = 10;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to declare a variable in C?
int 1a = 5;
float a_1 = 5.0;
char a-b = 'c';
double a@ = 3.14;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 5;
printf("%d", x++ + ++x);
}
11
12
10
Undefined behaviour
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators has the highest precedence in C?
+
*
-
/
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int y = 10;
printf("%d", --y + y--);
}
19
18
20
Undefined behaviour
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to define a function in C?
void myFunction() {}
function myFunction() {}
myFunction() void {}
def myFunction() {}
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
14 questions
LA6.C6: Graphics Window
Quiz
•
9th Grade - University
10 questions
Listen in Python
Quiz
•
University
13 questions
Chap 1: What is a program made of?
Quiz
•
University
14 questions
LA7.C7: Turtle Graphics
Quiz
•
9th Grade - University
15 questions
ARKOM 2_INS
Quiz
•
University
11 questions
Arduino - Contador
Quiz
•
9th Grade - University
10 questions
Introduction to NumPy (easy)
Quiz
•
University
10 questions
cp06-01-1D-Array
Quiz
•
University
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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