Code X Trade

Code X Trade

Professional Development

15 Qs

quiz-placeholder

Similar activities

Manejo de sistemas Operativos <TERCER PARCIAL>  Unidad 4 a 6

Manejo de sistemas Operativos <TERCER PARCIAL> Unidad 4 a 6

Professional Development

17 Qs

Révision HTML, CSS et JavaScript

Révision HTML, CSS et JavaScript

Professional Development

20 Qs

Arrays & Strings using C

Arrays & Strings using C

Professional Development

15 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

Lógica Python Revisão 1º Semestre

Lógica Python Revisão 1º Semestre

Professional Development

20 Qs

GRAND OPENING INTERNSHIP EXERCISE 2024

GRAND OPENING INTERNSHIP EXERCISE 2024

Professional Development

13 Qs

Introduction to Programming in C

Introduction to Programming in C

Professional Development

10 Qs

Kick-Off Posko Rafi 2021

Kick-Off Posko Rafi 2021

Professional Development

10 Qs

Code X Trade

Code X Trade

Assessment

Quiz

Computers

Professional Development

Hard

Created by

AARTHI SELVARAJ

Used 5+ 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

2,1

1,2

2,2

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);

}

1

error

True

2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following python code?

var1 = 1

var2 = 2'

var3 = "3"

print(var1 + var2 + var3)

6

33

123

Error

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?