Code X Trade

Code X Trade

15 Qs

quiz-placeholder

Similar activities

QUIZ EMPRESA NOVIEMBRE 2020

QUIZ EMPRESA NOVIEMBRE 2020

Professional Development

11 Qs

Pre & Post Tes TQM

Pre & Post Tes TQM

Professional Development

10 Qs

Post Test Payfazz 12 Oktober

Post Test Payfazz 12 Oktober

Professional Development

10 Qs

CAPACITACIÓN 1

CAPACITACIÓN 1

1st - 5th Grade

10 Qs

QUIZIZZ BAB 8 ZAKAT

QUIZIZZ BAB 8 ZAKAT

3rd Grade

15 Qs

Petrochina Quiz

Petrochina Quiz

Professional Development

20 Qs

BÀI TẬP_KIỂU DỮ LIỆU VÀ KHAI BÁO BIẾN

BÀI TẬP_KIỂU DỮ LIỆU VÀ KHAI BÁO BIẾN

Professional Development

10 Qs

Niwelacja

Niwelacja

2nd Grade

20 Qs

Code X Trade

Code X Trade

Assessment

Quiz

Professional Development

Practice Problem

Easy

Created by

Aarthi Selvaraj

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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? 

  1.     #include <stdio.h> 

  1.     int main() 

  1.     { 

  1.         int i = 0; 

  1.         while (i < 3) 

  1.             i++; 

  1.         printf("In while loop\n"); 

  1.     } 


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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development