
Quiz1

Quiz
•
Computers
•
University
•
Medium
SECE IT
Used 1+ times
FREE Resource
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() {}
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
C Basics

Quiz
•
University
12 questions
OS with C programming

Quiz
•
University
14 questions
Java Operators

Quiz
•
University
10 questions
Talent Next Java MCQ-1

Quiz
•
University
12 questions
Programming in C by Khushboo Bhardwaj

Quiz
•
University
10 questions
java quiz on Encapsulation and Abstraction

Quiz
•
University
10 questions
Динамические библиотеки

Quiz
•
University
15 questions
C Programming Output Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University