Code X Trade

Quiz
•
Professional Development
•
•
Easy
Aarthi Selvaraj
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times i value is checked in the following C program?
#include <stdio.h>
int main()
{
int i = 0;
while (i < 3)
i++;
printf("In while loop\n");
}
2
3
4
1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output if you will compile and execute the following c code?
#include<stdio.h>
int main(){
int array[3]={5};
int i;
for(i=0;i<=2;i++)
printf("%d ",array[i]);
return 0;
}
5 garbage garbage
5 0 0
5 null null
Compiler Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main(){
int a = 1, b = 1, c;
c = a++ + b;
printf("%d, %d", a, b);
}
1,1
1,2
2,2
2,1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output for the following c code
#include<stdio.h>
void main(){
char s[]="abcd";
for(int i=0;i=<4;++i){
printf("\t%d",i);
}
}
Syntax error
abcd
0123
0 1 2 3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output for the following c code
#include <stdio.h>
void main(){
int result= 1 < 2 ? 2:1;
printf("%d",result);
}
error
True
1
2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
var1 = 1
var2 = 2
var3 = "3"
print(var1 + var2 + var3)
6
33
123
Error. Mixing operators between numbers and strings are not supported
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following python code?
listOne = [20, 40, 60, 80]
listTwo = [20, 40, 60, 80]
print(listOne == listTwo)
print(listOne is listTwo)
True True
True False
False True
False False
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
CPR_Quiz_Chapter4_function

Quiz
•
Professional Development
10 questions
Lesson 10 - Decision control statements

Quiz
•
5th - 8th Grade
13 questions
ทดสอบก่อนเรียนพื้นฐานการเขียนโปรแกรมคอมพิวเตอร์

Quiz
•
9th - 12th Grade
10 questions
AULA06 - BIBLIOTECAS MATEMÁTICAS

Quiz
•
KG
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
20 questions
VCE TalentNext-2021 Quiz-2

Quiz
•
Professional Development
10 questions
DAY 22 MySQL: Constraints, Normalization (9th JULY 24)

Quiz
•
University
10 questions
CPR Quiz_chapter 5_structure

Quiz
•
Professional Development
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 Professional Development
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Soft Skills and Hard Skills Quiz

Quiz
•
12th Grade
10 questions
SMART Goals

Quiz
•
8th - 12th Grade
50 questions
Workplace Readiness Skills - Revival Quizizz

Quiz
•
9th - 12th Grade
15 questions
Essential Skills and Steps for Career Success

Interactive video
•
9th Grade